Re: UPDATE: pg_dump fails due to invalid memory request
От | Morgan Kita |
---|---|
Тема | Re: UPDATE: pg_dump fails due to invalid memory request |
Дата | |
Msg-id | 08B420FF5BF7BC42A064212C2EB7688017E518@neutron.verseon.com обсуждение исходный текст |
Ответы |
Re: UPDATE: pg_dump fails due to invalid memory request
|
Список | pgsql-novice |
Hehe, funny thing is I realized that after I went home last night... For some reason I took out my calls to PG_DETOAST_DATUM at some point... I havn't a clue as to why, but oh well. I need to go test this to verify, but I am 90% sure that is the problem. Can someone explain to me why one works and not the other without PG_DETOAST_DATUM? Also can someone tell me how to easily tell how much data for a particular table is being toasted? Thanks guys! Morgan -----Original Message----- From: Michael Fuhr [mailto:mike@fuhr.org] Sent: Saturday, September 03, 2005 1:05 PM To: Morgan Kita Cc: Tom Lane; pgsql-novice@postgresql.org Subject: Re: [NOVICE] UPDATE: pg_dump fails due to invalid memory request On Sat, Sep 03, 2005 at 10:52:44AM -0600, Michael Fuhr wrote: > On Fri, Sep 02, 2005 at 08:48:34PM -0700, Morgan Kita wrote: > > Obviously I will need to do more testing and try to debug, > > but isn't it odd that I can select the data but not copy from it? > > That seems odd to me; maybe Tom or somebody else who knows PostgreSQL > internals can explain why that might happen. In tests I see different behavior between SELECT and COPY if the type's output function doesn't call PG_DETOAST_DATUM on its argument: SELECT returns the correct data but COPY doesn't. Have you neglected to call PG_DETOAST_DATUM? -- Michael Fuhr
В списке pgsql-novice по дате отправления: