Re: unable to dump database, toast errors

From: Manfred Koizar <mkoi-pg(at)aon(dot)at>
To: Lonni Friedman <lfriedman(at)vasoftware(dot)com>
Cc: Jan Wieck <JanWieck(at)Yahoo(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org
Subject: Re: unable to dump database, toast errors
Date: 2003-04-07 13:29:17
Message-ID: 1ku29vo2n800j83751bjnirtvu5ipbapr1@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 07 Apr 2003 07:34:47 -0400, Jan Wieck <JanWieck(at)Yahoo(dot)com>
wrote:
>Is there any of those other columns that could identify a single row
>uniquely? If so, that could work as a key for this purpose.
>
>If you have that, let's call it <keycolumn>.

Lonni,

let me add that if there is no such *user* column, you can always use
the system column ctid:

SELECT ctid FROM artifact_file LIMIT 1 OFFSET 694;

ctid
--------
(42,7)

Now check whether this is really your broken tuple:

SELECT length(bin_data) FROM artifact_file
WHERE ctid = '(42,7)'; -- should give an ERROR

... and that all other tuples are ok as suggested by Jan:

SELECT sum(length(bin_data)) FROM artifact_file
WHERE NOT ctid = '(42,7)'; -- should work

Note that you have to use 'NOT ctid =', because operator '!=' is not
defined for datatype tid.

Servus
Manfred

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Nils O. Selåsdal 2003-04-07 14:03:17 Re: Enum in PostgreSQL - How to
Previous Message Dan Langille 2003-04-07 13:11:40 Re: Enum in PostgreSQL - How to