pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: David Durham <ddurham@vailsys.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: create table like syntax
Date: Wed, 5 Oct 2005 23:36:36 -0400
Message-ID: <20051006033636.GA12593@surnet.cl> (raw)
In-Reply-To: <4344942A.3040506@vailsys.com>
References: <4344942A.3040506@vailsys.com>

On Wed, Oct 05, 2005 at 10:04:10PM -0500, David Durham wrote:
> is there a syntax that would look something like:
> 
>     create table newTable like oldTable without indexes || records || 
> constraints with indexes || records || constraints
> 
> built into postgres?

What do you want to do with it?  If I understand what you want to do, it
is supported as long as you use ; in place of your ||.

-- 
Alvaro Herrera                         Architect, http://www.EnterpriseDB.com
"La fuerza no está en los medios físicos
sino que reside en una voluntad indomable" (Gandhi)



view thread (4+ messages)  latest in thread

Message-ID: <20051006033636.GA12593@surnet.cl>
Permalink:  ../20051006033636.GA12593@surnet.cl/
Also on:    postgresql.org/message-id/20051006033636.GA12593@surnet.cl

 · 

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: alvherre@alvh.no-ip.org, ddurham@vailsys.com
  Subject: Re: create table like syntax
  In-Reply-To: <20051006033636.GA12593@surnet.cl>
  References: <4344942A.3040506@vailsys.com> <20051006033636.GA12593@surnet.cl>

* 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