Skip site navigation (1) Skip section navigation (2)

pg_dump problem

From: "Paulo Roberto Siqueira" <paulo(dot)siqueira(at)usa(dot)net>
To: "PGSQL Novice" <pgsql-novice(at)postgresql(dot)org>, "PGSQL Admin" <pgsql-admin(at)postgresql(dot)org>, <pgsql-bugs(at)postgresql(dot)org>
Subject: pg_dump problem
Date: 2000-08-04 01:05:28
Message-ID: NEBBLMEAPMNMMCFDDILOKEOLCBAA.paulo.siqueira@usa.net (view raw or flat)
Thread:
Lists: pgsql-bugs
	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(dot)siqueira(at)usa(dot)net
Database Administrator
Goiania - GO - Brazil


Responses

pgsql-bugs by date

Next:From: Roland RobertsDate: 2000-08-04 01:36:49
Subject: RH 6.1, PostgreSQL 7.0.2, ipcclean madness
Previous:From: Stephan SzaboDate: 2000-08-03 20:08:56
Subject: Re: [BUGS] ALTER TABLE

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group