Re: Out of memory error
От | Thomas Kellerer |
---|---|
Тема | Re: Out of memory error |
Дата | |
Msg-id | a772e833-1c0f-4cae-4d08-04bfdfb2fb5e@gmx.net обсуждение исходный текст |
Ответ на | Re: Out of memory error (aditya desai <admad123@gmail.com>) |
Ответы |
Re: Out of memory error
|
Список | pgsql-performance |
aditya desai schrieb am 24.11.2021 um 08:35: > Hi Thomas, > v_message is of composite data type r_log_message and it's definition is as shown below. > > postgres=# \d r_log_message; > Composite type "public.r_log_message" > Column | Type | Collation | Nullable | Default > -------------+-------------------------+-----------+----------+--------- > column_name | character varying(30) | | | > oldvalue | character varying(4000) | | | > newvalue | character varying(4000) | | | > > Regards, > Aditya. Sorry, didn't see that. Then you need to create records of that type in the array: v_message := array[('empName', old.empname, new.empname)::r_log_message, ('location', old.location, new.location)::r_log_message]; or an array of that type: v_message := array[('empName', old.empname, new.empname), ('location', old.location, new.location)]::r_log_message[]; Btw: why don't you use `text` instead of varchar(4000).
В списке pgsql-performance по дате отправления: