pgsql: Give more accurate error message for dropping pinned portal

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Give more accurate error message for dropping pinned portal
Date: 2018-01-10 14:28:52
Message-ID: E1eZHN6-0001Fv-VP@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Give more accurate error message for dropping pinned portal

The previous code gave the same error message for attempting to drop
pinned and active portals, but those are separate states, so give
separate error messages.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/acc67ffd0a8c728b928958e75b76ee544b64c2d8

Modified Files
--------------
src/backend/utils/mmgr/portalmem.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2018-01-10 15:23:21 pgsql: Move portal pinning from PL/pgSQL to SPI
Previous Message Fabien COELHO 2018-01-10 12:36:24 Re: pgsql: Improve scripting language in pgbench