Postgresql – Declaring a `RECORD[]` variable gets `variable "…" has pseudo-type record[]` error
I tried to declare the local variable value with RECORD[] type in a DO statement as shown below: DO $$ DECLARE value RECORD[]; BEGIN END $$; But, I got the error below: ERROR: variable "value" has pseudo-type record[] I referred…