Re: Reverting from subtables to no subtables.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gan Uesli Starling <alias(at)starling(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Reverting from subtables to no subtables.
Date: 2006-02-02 02:06:49
Message-ID: 7411.1138846009@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Gan Uesli Starling <alias(at)starling(dot)us> writes:
> If I DROP the subtable, will I lose all its rows?

Yes.

> How best should I do this?

Something like
INSERT INTO parent SELECT appropriate-columns FROM ONLY child;

regards, tom lane

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Pradeep Parmar 2006-02-02 07:07:32 Stress Testing
Previous Message operationsengineer1 2006-02-02 01:13:03 Re: Swappng Filds