pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jodi Kanter <jkanter@virginia.edu>
To: Postgres Admin List <pgsql-admin@postgresql.org>
Subject: table dump
Date: Tue, 9 Apr 2002 10:10:19 -0400
Message-ID: <00a001c1dfd0$4818a1d0$de138f80@virginia.edu> (raw)

I just completed a data only dump of a table by using the following command:

pg_dump genex -Rau -t species > species.sql

I noticed that the first line of the file seems to be disabling some postgres trigger. It reads:

UPDATE "pg_class" SET "reltriggers" = 0 WHERE "relname" = 'species';

Then all the data is listed.

At the end of the file the triggers are enabled again with the following command:

UPDATE pg_class SET reltriggers = (SELECT count(*) FROM pg_trigger where pg_class.oid = tgrelid) WHERE relname = 'species';

Can someone explain why this is happening? The problem is that I am coping this dump into another schema creation file that I have. I want the data from this particular file included in with my new database. However, I am creating this database with a user account so that all tables will be owned by that user. I think the problem here is that this trigger stuff requires that you be signed in as postgres in order to do anything with the pg_class table. correct?

Any assistane would be greatly appreciated.
thanks,
Jodi




_______________________________
Jodi L Kanter
BioInformatics Database Administrator
University of Virginia
(434) 924-2846
jkanter@virginia.edu



 

 

 

view thread (3+ messages)  latest in thread

Message-ID: <00a001c1dfd0$4818a1d0$de138f80@virginia.edu>
Permalink:  ../00a001c1dfd0$4818a1d0$de138f80@virginia.edu/
Also on:    postgresql.org/message-id/00a001c1dfd0$4818a1d0$de138f80@virginia.edu

 · 

reply

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: jkanter@virginia.edu
  Subject: Re: table dump
  In-Reply-To: <00a001c1dfd0$4818a1d0$de138f80@virginia.edu>
  References: <00a001c1dfd0$4818a1d0$de138f80@virginia.edu>

* 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