pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedpg_dumap not include foreign key...
2+ messages / 2 participants
[nested] [flat]
* pg_dumap not include foreign key...
@ 2000-12-24 16:57 xyzii <xyzii@kimo.com.tw>
0 siblings, 1 reply; 2+ messages in thread
From: xyzii @ 2000-12-24 16:57 UTC (permalink / raw)
To: pgsql-admin
me datastru ,try pg_dumpall > aa.out what not include foreign key......
CREATE TABLE "purcsub" (
"trn_no" char(14) NOT NULL,
"seq" int4 DEFAULT nextval('seq'::text),
"pmrc_no" varchar(14),
"item_no" char(20) NOT NULL,
"item_na1" varchar(120),
"color_na" varchar(20),
"ware_no" char(4),
"unit" varchar(4),
"trn_qty" int2,
"qty" float8 default 0,
"sqty" float8 default 0,
"price" float8 default 0,
"sprice" float8 default 0,
"discount" float8 default 0,
"amount" float8 default 0,
"memo" varchar(20),
"trn_type" varchar(2),
"trn_date" date,
"fact_no" char(20),
"giveaway" varchar(1),
foreign key (trn_no) references purc (trn_no)
ON DELETE CASCADE ON UPDATE CASCADE
);
¥¼©R¦W¤å¥ó^ °ê «O ¸Û ¤H ¹Ø ·~°È¥D¥ô¡G¶À §µ ¦tªA°È±M½u¡G0932-535772
mailto:msee@kimo.com.tw
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_dumap not include foreign key...
@ 2000-12-29 23:15 Stephan Szabo <sszabo@megazone23.bigpanda.com>
parent: xyzii <xyzii@kimo.com.tw>
0 siblings, 0 replies; 2+ messages in thread
From: Stephan Szabo @ 2000-12-29 23:15 UTC (permalink / raw)
To: xyzii <xyzii@kimo.com.tw>; +Cc: pgsql-admin
You should have another lines later in the dump that start
with CREATE CONSTRAINT TRIGGER
These are the internal representation of the foreign key
constraint and is how pg_dump[all] currently should be
dumping those constraints out. They probably are near
the bottom of the dump.
On Mon, 25 Dec 2000, xyzii wrote:
> me datastru ,try pg_dumpall > aa.out what not include foreign key......
>
> CREATE TABLE "purcsub" (
> "trn_no" char(14) NOT NULL,
> "seq" int4 DEFAULT nextval('seq'::text),
> "pmrc_no" varchar(14),
> "item_no" char(20) NOT NULL,
> "item_na1" varchar(120),
> "color_na" varchar(20),
> "ware_no" char(4),
> "unit" varchar(4),
> "trn_qty" int2,
> "qty" float8 default 0,
> "sqty" float8 default 0,
> "price" float8 default 0,
> "sprice" float8 default 0,
> "discount" float8 default 0,
> "amount" float8 default 0,
> "memo" varchar(20),
> "trn_type" varchar(2),
> "trn_date" date,
> "fact_no" char(20),
> "giveaway" varchar(1),
> foreign key (trn_no) references purc (trn_no)
> ON DELETE CASCADE ON UPDATE CASCADE
>
> );
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2000-12-29 23:15 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-12-24 16:57 pg_dumap not include foreign key... xyzii <xyzii@kimo.com.tw>
2000-12-29 23:15 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
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