Re: cursors and function question

Поиск
Список
Период
Сортировка
От armand pirvu
Тема Re: cursors and function question
Дата
Msg-id 1CC76001-D74C-49A0-AC7F-2DE8AAC047C7@gmail.com
обсуждение исходный текст
Ответ на Re: cursors and function question  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general

On Feb 13, 2018, at 4:37 PM, David G. Johnston <david.g.johnston@gmail.com> wrote:

On Tue, Feb 13, 2018 at 3:31 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
2) By global table do you mean a temporary table? If so not sure that is going to work as I am pretty sure it will disappear after the function is run.

​Temporary tables can survive until either session or transaction end - neither of which occurs automatically when exiting a function.


"Temporary tables are automatically dropped at the end of a session, or optionally at the end of the current transaction (see ON COMMIT below)"

David J.


Thank you both of you Adrian and David for the input and help

I owe you some nice red wine :)


Cheers
- Armand

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

Предыдущее
От: Welkin
Дата:
Сообщение: unsubsribe
Следующее
От: Jeremy Finzel
Дата:
Сообщение: Re: pglogical in postgres 9.6