Altering metadata to add inheritance

Поиск
Список
Период
Сортировка
От jboes@nexcerpt.com (Jeff Boes)
Тема Altering metadata to add inheritance
Дата
Msg-id d40a65a1.0201310912.2bacd597@posting.google.com
обсуждение исходный текст
Ответы Re: Altering metadata to add inheritance  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
As an experiement, I want to turn a number of identically structured
tables into "child" tables of a template.  That is, I want to do
something like:

alter table foo_01 rename to foo_01_old;
create table foo_01 () inherits (foo_template);
insert into foo_01 select * from foo_01_old;
drop table foo_01_old;

a whole lotta times, for different values of 'foo_01'.  I suspect
there's a way to do this directly in the pg_class table.  Does anyone
have a tried and safe approach?

В списке pgsql-general по дате отправления:

Предыдущее
От: Jim Martinez
Дата:
Сообщение: Re: Function to Pivot data
Следующее
От: Tom Lane
Дата:
Сообщение: Re: process exited with status 11 after XLogFlush: request is not satisfied