| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | jboes(at)nexcerpt(dot)com (Jeff Boes) |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Altering metadata to add inheritance |
| Date: | 2002-01-31 18:29:28 |
| Message-ID: | 4096.1012501768@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
jboes(at)nexcerpt(dot)com (Jeff Boes) writes:
> As an experiement, I want to turn a number of identically structured
> tables into "child" tables of a template. ... I suspect
> there's a way to do this directly in the pg_class table.
pg_class doesn't show inheritance. I *think* all you'd have to do is
insert rows into pg_inherits, see
http://developer.postgresql.org/docs/postgres/catalog-pg-inherits.html
Oh, and you'd have to set pg_class.relhassubclass true for the parent
table.
But I've not tried to do this by hand myself. Better experiment on
a test database ;-)
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bjoern Metzdorf | 2002-01-31 18:32:30 | Re: process exited with status 11 after XLogFlush: request is not satisfied |
| Previous Message | Keith G. Murphy | 2002-01-31 17:36:21 | Re: transactions outside the database... |