Re: Schemas: status report, call for developers

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: Schemas: status report, call for developers
Дата
Msg-id 1020324303.31615.19.camel@taru.tm.ee
обсуждение исходный текст
Ответ на Re: Schemas: status report, call for developers  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Schemas: status report, call for developers  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Thu, 2002-05-02 at 05:33, Tom Lane wrote:
> "Nigel J. Andrews" <nandrews@investsystems.co.uk> writes:
> > So, how does one determine the current schema for temporary tables,
> > i.e. what name would be in search_path if it wasn't implicitly included?
> 
> The temp schema is pg_temp_nnn where nnn is your BackendId (PROC array
> slot number).  AFAIK there isn't any exported way to determine your
> BackendId from an SQL query.

The non-portable way on Linux RH 7.2 :

>create function getpid() returns int as '/lib/libc.so.6','getpid' language 'C';
CREATE
>select getpid()getpid1 
---------  31743
(1 row)

I think that useful libc stuff things like this should be put in some
special schema, initially available to superusers only.

perhaps LIBC.GETPID()

----------
Hannu



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

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: [GENERAL] Using views and MS access via odbc
Следующее
От: "Arthur@LinkLine.com"
Дата:
Сообщение: mV database tools