pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Paulo Roberto Siqueira <paulo.siqueira@usa.net>
To: PGSQL Admin <pgsql-admin@postgresql.org>
Subject: pg_dump problem
Date: Tue, 1 Aug 2000 22:20:40 -0300
Message-ID: <NEBBLMEAPMNMMCFDDILOKENPCBAA.paulo.siqueira@usa.net> (raw)

	PgSQL 7.0.2

	I used pg_dump to dump the schema of a db. I created table part_presencial
with this command

create table part_presencial(
login char(15) not null,
id_curso_polo int4 not null,
data_encontro date not null,
nota numeric(2,2) null,
foreign key(login,id_curso_polo) references matricula,
foreign key(id_curso_polo,data_encontro) references presencial,
primary key(login,id_curso_polo,data_encontro));

	But pg_dump gives me this:

CREATE TABLE "part_presencial" (
   "login" char(15) NOT NULL,
   "id_curso_polo" int4 NOT NULL,
   "data_encontro" date NOT NULL,
   "nota" numeric(2,2),
   PRIMARY KEY ("login", "id_curso_polo", "data_encontro")
);

Why doesn't pg_dump give me foreign keys constraints? It happens to all the
tables with foreign keys.


-----
Paulo Roberto Siqueira
paulo.siqueira@usa.net
Database Administrator
Goiania - GO - Brazil




view thread (18+ messages)  latest in thread

Message-ID: <NEBBLMEAPMNMMCFDDILOKENPCBAA.paulo.siqueira@usa.net>
Permalink:  ../NEBBLMEAPMNMMCFDDILOKENPCBAA.paulo.siqueira@usa.net/
Also on:    postgresql.org/message-id/NEBBLMEAPMNMMCFDDILOKENPCBAA.paulo.siqueira@usa.net

 · 

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: paulo.siqueira@usa.net
  Subject: Re: pg_dump problem
  In-Reply-To: <NEBBLMEAPMNMMCFDDILOKENPCBAA.paulo.siqueira@usa.net>
  References: <NEBBLMEAPMNMMCFDDILOKENPCBAA.paulo.siqueira@usa.net>

* 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