pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tore Halvorsen <tore.halvorsen@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: pg_dump and pg_restore and foreign keys
Date: Wed, 27 Oct 2021 10:04:26 -0400
Message-ID: <239443.1635343466@sss.pgh.pa.us> (raw)
In-Reply-To: <CADGw-Se5ZuSTfW5NXKpgJPkuiLNWskbb21oJG_gJpiK=prZa=A@mail.gmail.com>
References: <CADGw-Sc7dKvR1j6efmXxUJc6ePWpfvKGACcfw30Pytv-7Da6JA@mail.gmail.com>
	<237198.1635341271@sss.pgh.pa.us>
	<CADGw-Se5ZuSTfW5NXKpgJPkuiLNWskbb21oJG_gJpiK=prZa=A@mail.gmail.com>

Tore Halvorsen <tore.halvorsen@gmail.com> writes:
> That would be appending it for "pg_catalog.pg_get_constraintdef(oid) AS
> condef"  in getConstraints in pg_dump.c?

No, you want to mess with the text printed by dumpConstraint().

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <239443.1635343466@sss.pgh.pa.us>
Permalink:  ../239443.1635343466@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/239443.1635343466@sss.pgh.pa.us

 · 

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, tore.halvorsen@gmail.com
  Subject: Re: pg_dump and pg_restore and foreign keys
  In-Reply-To: <239443.1635343466@sss.pgh.pa.us>
  References: <CADGw-Sc7dKvR1j6efmXxUJc6ePWpfvKGACcfw30Pytv-7Da6JA@mail.gmail.com> <237198.1635341271@sss.pgh.pa.us> <CADGw-Se5ZuSTfW5NXKpgJPkuiLNWskbb21oJG_gJpiK=prZa=A@mail.gmail.com> <239443.1635343466@sss.pgh.pa.us>

* 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