Re: PKs without indexes

Поиск
Список
Период
Сортировка
От John P Weatherman
Тема Re: PKs without indexes
Дата
Msg-id 1303264756.7538.15.camel@darkflame.weatherman.net
обсуждение исходный текст
Ответ на Re: PKs without indexes  (Bob Lunney <bob_lunney@yahoo.com>)
Список pgsql-admin
Awesome!  Thanks Bob.

On Tue, 2011-04-19 at 12:51 -0700, Bob Lunney wrote:
>
> Slony will use any unique index on a table for replication purposes, so the list of tables should come from:
>
> select relname
>   from pg_class c
>   join pg_namespace n on c.relnamespace = n.oid
>  where nspname = current_schema()
>    and relkind = 'r'
>    and c.oid not in (
>        select indrelid
>          from pg_index
>         where indisprimary or indisunique
> )
>  order by 1;
>
> Bob Lunney
>
>


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

Предыдущее
От: Bob Lunney
Дата:
Сообщение: Re: PKs without indexes
Следующее
От: Selva manickaraja
Дата:
Сообщение: Re: Orphan Temp Table After PITR