Re: Reverting from subtables to no subtables. - Mailing list pgsql-novice

From Tom Lane
Subject Re: Reverting from subtables to no subtables.
Date
Msg-id 7411.1138846009@sss.pgh.pa.us
Whole thread Raw
In response to Reverting from subtables to no subtables.  (Gan Uesli Starling <alias@starling.us>)
List pgsql-novice
Gan Uesli Starling <alias@starling.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

pgsql-novice by date:

Previous
From:
Date:
Subject: Re: Swappng Filds
Next
From: Pradeep Parmar
Date:
Subject: Stress Testing