| From: | Oleg Bartunov <oleg(at)sai(dot)msu(dot)su> |
|---|---|
| To: | Richard Huxton <dev(at)archonet(dot)com> |
| Cc: | David Pradier <dpradier(at)apartia(dot)fr>, pgsql-general(at)postgresql(dot)org |
| Subject: | Re: How to add an INHERITS to an already populated table |
| Date: | 2005-05-31 12:33:39 |
| Message-ID: | Pine.GSO.4.62.0505311630390.16737@ra.sai.msu.su |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
look on pg_inherits table and pg_class.relhassubclass.
More info http://www.pgsql.ru/db/mw/msg.html?mid=2044343
On Tue, 31 May 2005, Richard Huxton wrote:
> David Pradier wrote:
>> Hi everybody,
>>
>> is it possible to add some inheritance lively, without doing a
>> dump/restore ?
>
> Not AFAIK. Easiest solution is probably to script some ALTER TABLE ADD COLUMN
> commands.
>
>
Regards,
Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg(at)sai(dot)msu(dot)su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Oleg Bartunov | 2005-05-31 12:53:46 | Re: How to add an INHERITS to an already populated table |
| Previous Message | Timothy Perrigo | 2005-05-31 12:20:24 | pg_get_serial_sequence and table inheritence |