pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Sidar López Cruz <sidarlopez@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: truncate error
Date: Tue, 4 Oct 2005 11:21:42 -0400
Message-ID: <20051004152142.GC6925@surnet.cl> (raw)
In-Reply-To: <BAY23-F21C21669B6CF0E33B4659ACE830@phx.gbl>
References: <BAY23-F21C21669B6CF0E33B4659ACE830@phx.gbl>

On Tue, Oct 04, 2005 at 08:40:31AM -0600, Sidar López Cruz wrote:
> PostgreSQL 8.1 beta 2 raise error on truncating tables with foreign keys, 
> try this to see !!!

Hum, what were you trying to show us?  Truncating tables with foreign
keys is supposed to work as long as you truncate the referenced table at
the same time.

-- 
Alvaro Herrera       Valdivia, Chile   ICBM: S 39º 49' 17.7", W 73º 14' 26.8"
"La felicidad no es mañana. La felicidad es ahora"



view thread (4+ messages)  latest in thread

Message-ID: <20051004152142.GC6925@surnet.cl>
Permalink:  ../20051004152142.GC6925@surnet.cl/
Also on:    postgresql.org/message-id/20051004152142.GC6925@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, sidarlopez@hotmail.com
  Subject: Re: truncate error
  In-Reply-To: <20051004152142.GC6925@surnet.cl>
  References: <BAY23-F21C21669B6CF0E33B4659ACE830@phx.gbl> <20051004152142.GC6925@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