Re: pgsql: Allow units to be specified in relation option setting value.

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: pgsql: Allow units to be specified in relation option setting value.
Дата
Msg-id CAB7nPqSeVWnhk-TA-GJBDgea-1ZLT8WFYwSp_63ut2ia8W9wrQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: pgsql: Allow units to be specified in relation option setting value.  (Fujii Masao <masao.fujii@gmail.com>)
Ответы Re: pgsql: Allow units to be specified in relation option setting value.  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-committers
On Thu, Aug 28, 2014 at 9:28 PM, Fujii Masao <masao.fujii@gmail.com> wrote:
> Oh,, will check.

That's a problem with pg_dump not able to put quotes where for a
reloption units are used.
For example this table:
create table test (a int) with (autovacuum_vacuum_cost_delay = '80ms');
Results in the following dump:
CREATE TABLE test (
    a integer
)
WITH (autovacuum_vacuum_cost_delay=80ms);

Because of how reloptions is registered in pg_class:
=# select relname,reloptions from pg_class where relname = 'test';
 relname |             reloptions
---------+-------------------------------------
 test    | {autovacuum_vacuum_cost_delay=80ms}
(1 row)
Regards,
--
Michael


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

Предыдущее
От: Fujii Masao
Дата:
Сообщение: Re: pgsql: Allow units to be specified in relation option setting value.
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: Allow units to be specified in relation option setting value.