From: crispond@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #7506: Windows 64 bit PGAdmin 1.14.3 plpgsql default parameter value not appearing
Date: Sat, 25 Aug 2012 00:56:28 +0000
Message-ID: <E1T54fs-0003VH-Mi@wrigleys.postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 7506
Logged by: Cris Pond
Email address: crispond@gmail.com
PostgreSQL version: 9.1.5
Operating system: Windows 64 bit
Description:
Sorry, I'm having trouble posting a bug report to the pgAdmin site. Please
forward this on:
It looks like this bug has come back in pgAdmin 1.14.3 for Windows 64bit:
http://code.pgadmin.org/trac/ticket/79
If you do the following:
------
CREATE OR REPLACE FUNCTION demo(level integer DEFAULT 0) RETURNS
integer language 'plpgsql' AS $$
BEGIN
return (level);
END; $$;
select demo(); --<---No error
------
The default parameter functions correctly. The code showing in
pgadmin, however, is missing the default:
-----
drop function if exists demo(int);
--Copied from pgAdmin
CREATE OR REPLACE FUNCTION demo(level integer)
RETURNS integer AS
$BODY$
BEGIN
return (level);
END; $BODY$
LANGUAGE plpgsql VOLATILE
COST 100;
select demo(); --<---Error
------
I'm pretty sure pg_proc.proargdefaults contains the correct
information and that pgadmin is just not interpreting it. I tried
executing the code on postgresql 8.4.3 and 9.1.5, and the field looked
basically the same, but pgAdmin 1.10 is displaying correctly and
pgAdmin 1.14.3 is not.
Thank you for your great products.
-cris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: crispond@gmail.com
Subject: Re: BUG #7506: Windows 64 bit PGAdmin 1.14.3 plpgsql default parameter value not appearing
In-Reply-To: <E1T54fs-0003VH-Mi@wrigleys.postgresql.org>
References: <E1T54fs-0003VH-Mi@wrigleys.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox