From: Mike Nolan <nolan@gw.tssi.com>
To: neilc@samurai.com
Cc: pg@rbt.ca
Cc: josh@agliodbs.com
Cc: wmoran@potentialtech.com
Cc: threshar@torgo.978.org
Cc: pgsql-performance@postgresql.org
Subject: Re: Fixed width rows faster?
Date: Sat, 6 Mar 2004 20:26:30 -0600 (CST)
Message-ID: <200403070226.i272QUE8006569@gw.tssi.com> (raw)
In-Reply-To: <404A7B98.7090401@samurai.com>
> Mike Nolan wrote:
> > Is there a way to copy a table INCLUDING the check constraints? If not,
> > then that information is lost, unlike varchar(n).
>
> "pg_dump -t" should work fine, unless I'm misunderstanding you.
I was specifically referring to doing it in SQL.
The COPY command goes from table to file or file to table, the
CREATE TABLE ... SELECT loses the check constraints.
Is there no SQL command that allows me to clone a table, including check
constraints?
Something like COPY TABLE xxx TO TABLE yyy WITH CHECK CONSTRAINTS.
--
Mike Nolan
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-performance@postgresql.org
Cc: nolan@gw.tssi.com, neilc@samurai.com, pg@rbt.ca, josh@agliodbs.com, wmoran@potentialtech.com, threshar@torgo.978.org
Subject: Re: Fixed width rows faster?
In-Reply-To: <200403070226.i272QUE8006569@gw.tssi.com>
References: <404A7B98.7090401@samurai.com> <200403070226.i272QUE8006569@gw.tssi.com>
* 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