ExecuteTruncate quirk: expects a unique list of relations

Поиск
Список
Период
Сортировка
От Nikhils
Тема ExecuteTruncate quirk: expects a unique list of relations
Дата
Msg-id d3c4af540806050751v788fb730hd3d790e4b8482f13@mail.gmail.com
обсуждение исходный текст
Ответы Re: ExecuteTruncate quirk: expects a unique list of relations
Список pgsql-hackers
Hi, <br /><br />Consider this simple case:<br /><br />postgres=# TRUNCATE foo, foo; <br />ERROR:  cannot TRUNCATE "foo"
becauseit is being used by active queries in this session <br /><br />The above occurs because the ExecuteTruncate()
functioninvokes truncate_check_rel() in a loop. Since the same table name appears twice, the rd_refcnt for table "foo"
isbumped up to 2, causing the above failure.<br /><br clear="all" />We might want to add a step to ExecuteTruncate(),
orwhatever calls it, to make the list unique.<br /><br />Regards,<br />Nikhils<br />-- <br />EnterpriseDB <a
href="http://www.enterprisedb.com">http://www.enterprisedb.com</a>

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

Предыдущее
От: "Heikki Linnakangas"
Дата:
Сообщение: Re: pg_dump restore time and Foreign Keys
Следующее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Overhauling GUCS