From: Sandy Spence <axs@aber.ac.uk>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: 'Rajesh Kumar Mallah' <mallah.rajesh@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Trigger trouble
Date: Wed, 3 Jan 2007 15:51:04 -0000
Message-ID: <009301c72f4e$f9bfce40$520b3cc1@pc2axs> (raw)
In-Reply-To: <5247.1167838774@sss.pgh.pa.us>
Hi Tom,
when I run the select query I get the following output,
ltt=> select * from pg_type where typname='trigger';
typname | typowner | typlen | typprtlen | typbyval | typtype | typisdefined
| typdelim | typrelid | typelem | typinput | typoutput
| typreceive | typsend | typalign | typstorage | typdefault
---------+----------+--------+-----------+----------+---------+-------------
-+----------+----------+---------+----------+----------
-+------------+---------+----------+------------+------------
trigger | 0 | 0 | 0 | f | | f
| | 0 | 0 | - | -
| - | - | i | p | trigger
(1 row)
I have a feeling that the database owner (ltt) has created their own type
'trigger' and am guessing that at some other time dropped an item (table
maybe) that uses or used an instance of the type trigger. I have about 100
plus users databases on the same system and it only appears that this user
is causing the pg_dump warning message.
Cheers,
Sandy
Computer Officer, RA Certification Manager
Department of Computer Science - UWA
Llandinam Building
Penglais Campus
Aberystwyth
Ceredigion
Wales - UK
SY23 3DB
Tel: (01970)-622433
Fax: (01970)-628536
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: 03 January 2007 15:40
To: Sandy Spence
Cc: 'Rajesh Kumar Mallah'; pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Trigger trouble
"Sandy Spence" <axs@aber.ac.uk> writes:
> The version of postgres we are currently running is PostgreSQL 7.2.3
You sure it's not something newer? There wasn't any built-in type named
"trigger" in 7.2 --- there is in 7.3 and up.
Assuming it is 7.3, dropping the type would be a really bad idea. Could we
see the results of "select * from pg_type where typname = 'trigger'"?
I'm guessing that either that row is corrupt, or you dropped the original
superuser account (in which case the gripe about type trigger is just the
tip of the iceberg).
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: axs@aber.ac.uk, tgl@sss.pgh.pa.us, mallah.rajesh@gmail.com
Subject: Re: Trigger trouble
In-Reply-To: <009301c72f4e$f9bfce40$520b3cc1@pc2axs>
References: <5247.1167838774@sss.pgh.pa.us> <009301c72f4e$f9bfce40$520b3cc1@pc2axs>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox