Re: BUG #6461: "-t" deletes primary key

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #6461: "-t" deletes primary key
Дата
Msg-id 26918.1329670215@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #6461: "-t" deletes primary key  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-bugs
Peter Eisentraut <peter_e@gmx.net> writes:
> On fre, 2012-02-17 at 12:01 -0500, Tom Lane wrote:
>> lenka.piyush@gmail.com writes:
>>> when i restore a particular table using pg_restore (using option "-t") it
>>> doesn't restore my primary key...

>> This is not a bug.  -t selects the table only, not associated indexes.

> But from a user's perspective, that behavior seems kind of useless.

Well, I can see the possible usefulness of a switch that says "give me
this table and all associated indexes/constraints" (other than FK
constraints, likely).  But it would be something new, not -t.

            regards, tom lane

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

Предыдущее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: BUG #6461: "-t" deletes primary key
Следующее
От: "MauMau"
Дата:
Сообщение: [Bug fix] postmaster always crashes on a debug version of Windows