Fixing PKs and Uniques in tablespaces

Поиск
Список
Период
Сортировка
От Christopher Kings-Lynne
Тема Fixing PKs and Uniques in tablespaces
Дата
Msg-id 40FF648E.6050109@familyhealth.com.au
обсуждение исходный текст
Ответы Re: Fixing PKs and Uniques in tablespaces
Список pgsql-hackers
Does anyone object to extending the grammar to allow this?

ALTER TABLE test ADD PRIMARY KEY (a) TABLESPACE foo;

ALTER TABLE test ADD UNIQUE (a) TABLESPACE foo;

CREATE TABLE test (a INTEGER PRIMARY KEY TABLESPACE foo);

CREATE TABLE test (a INTEGER UNIQUE TABLESPACE foo);

This is needed since we can move indexes between tablespaces now.  It 
makes pg_dump support for it possible and prevents huge performance cost 
associated with creating the primary key and then having to move it.

If there are no objects, I've already mostly finished the patch and I'll 
send it in.

Chris



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [pgsql-hackers-win32] Weird new time zone
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fixing PKs and Uniques in tablespaces