Re: DROP COLUMN

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: DROP COLUMN
Дата
Msg-id 200207160438.g6G4cnY05686@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: DROP COLUMN  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: DROP COLUMN  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Re: DROP COLUMN  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> "Christopher Kings-Lynne" <chriskl@familyhealth.com.au> writes:
> >> I agree that a wrapper function is probably an appropriate solution,
> >> but only some of the calls of SearchSysCache should use it.
> 
> > What like add another parameter to SearchSysCache*?
> 
> Definitely *not*; I don't want to kluge up every call to SearchSysCache
> with a feature that's only relevant to a small number of them.

Uh, then what?  The only idea I had was to set a static boolean variable in
syscache.c that controls whether droppped columns are returned, and have
a enable/disable functions that can turn it on/off.  The only problem is
that an elog inside a syscache lookup would leave that value set.

My only other idea is to make a syscache that is like ATTNAME except
that it doesn't return a dropped column.  I could probably code that up
if you wish.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: bit type external representation
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: DROP COLUMN