Re: AW: Proposal: TRUNCATE TABLE table RESTRICT

Поиск
Список
Период
Сортировка
От JanWieck@t-online.de (Jan Wieck)
Тема Re: AW: Proposal: TRUNCATE TABLE table RESTRICT
Дата
Msg-id 200006091104.NAA04376@hot.jw.home
обсуждение исходный текст
Ответ на AW: Proposal: TRUNCATE TABLE table RESTRICT  (Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>)
Список pgsql-hackers
Zeugswetter Andreas SB wrote:
>
> Truncate should probably check if all referencing tables are empty
> and fail if not. Truncate should imho not lead to a violated constraint
> situation.
> Strictly speaking the current situation is more or less a bug.
>
   Not  anything is possible with RI, so the DB schema might use   regular triggers and/or rules as well.
   Why  not  reject  TRUNCATE  at  all  if  the   relation   has   rules/triggers?  IMHO the only safe way.


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: [PATCHES] Patch for more readable parse error messages
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: ALTER TABLE DROP COLUMN