| From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
|---|---|
| To: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> |
| Cc: | armand pirvu <armand(dot)pirvu(at)gmail(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: cursors and function question |
| Date: | 2018-02-13 22:37:27 |
| Message-ID: | CAKFQuwZW_mUz4pYb0hUiAywcQcb2+4Rf9bow0zKikxzWGCu84Q@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Tue, Feb 13, 2018 at 3:31 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)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.
https://www.postgresql.org/docs/10/static/sql-createtable.html
"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.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2018-02-13 22:37:45 | Re: PostgreSQL Download |
| Previous Message | Adrian Klaver | 2018-02-13 22:31:51 | Re: cursors and function question |