Re: Schemas: status report, call for developers

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Schemas: status report, call for developers
Дата
в 10:07:11
Msg-id
22827.1020777113@sss.pgh.pa.us
Ответ на
Список
Дерево обсуждения
Re: Schemas: status report, call for developers Bill Cunningham <billc@ballydev.com>
Re: Schemas: status report, call for developers Tom Lane <tgl@sss.pgh.pa.us>
Re: Schemas: status report, call for developers Bruce Momjian <pgman@candle.pha.pa.us>
Re: Schemas: status report, call for developers Tom Lane <tgl@sss.pgh.pa.us>
Re: [INTERFACES] Schemas: status report, call for developers Bruce Momjian <pgman@candle.pha.pa.us>
Re: [INTERFACES] Schemas: status report, call for developers Tom Lane <tgl@sss.pgh.pa.us>
Re: [INTERFACES] Schemas: status report, call for developers Bruce Momjian <pgman@candle.pha.pa.us>
Re: [INTERFACES] Schemas: status report, call for developers Tom Lane <tgl@sss.pgh.pa.us>
Schemas and template1 Bruce Momjian <pgman@candle.pha.pa.us>
Re: Schemas and template1 Tom Lane <tgl@sss.pgh.pa.us>
Re: Schemas and template1 Bruce Momjian <pgman@candle.pha.pa.us>
Re: Schemas and template1 Tom Lane <tgl@sss.pgh.pa.us>
Re: Schemas and template1 Bruce Momjian <pgman@candle.pha.pa.us>
Re: Schemas: status report, call for developers "Christopher Kings-Lynne" <chriskl@familyhealth.com.au>
Re: Schemas: status report, call for developers Tom Lane <tgl@sss.pgh.pa.us>
"Nigel J. Andrews"  writes:
> I see there are routines doing similar things but for functions and
> others. I'm right in saying that OID isn't unique in a database
> (necessarily) and so we couldn't have a general object_is_visible(oid)
> function that did the appropiate from the type of object refered to?

Not in the current structure.  Even if OID were guaranteed unique across
the database, how would you determine which kind of object a given OID
referred to?  Seems like it would take expensive probing of a lot of
different tables until you found a match --- which is a bit silly when
the calling query generally knows darn well where it got the OID from.

I suppose we could define an object_is_visible(tableoid, oid) function,
but I'm not sure if it has any real usefulness.

> It just seems that if we're interested in showing tables according to
> visibility then shouldn't we be doing the same for these other things?

Sure; if we go this routine then all five of the FooIsVisible routines
will need to be exported as SQL functions.
		regards, tom lane

В списке pgsql-hackers по дате отправления
От: mlw
Дата:
Сообщение: OK, lets talk portability.
От: Tom Lane
Дата:
FAQ