pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14428: decode function don't return correct value when executed from agent's job or external program
2+ messages / 2 participants
[nested] [flat]
* BUG #14428: decode function don't return correct value when executed from agent's job or external program
@ 2016-11-18 10:49 vbochkov@eastwind.ru
2016-11-18 14:45 ` Re: BUG #14428: decode function don't return correct value when executed from agent's job or external program David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: vbochkov@eastwind.ru @ 2016-11-18 10:49 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 14428
Logged by: Vadim Bochkov
Email address: vbochkov@eastwind.ru
PostgreSQL version: 9.5.5
Operating system: CentOS 7.2
Description:
We have test stored function
CREATE FUNCTION decode_test()
RETURNS integer AS
BEGIN
insert into test2(txt)
select decode('30343134','hex')::varchar(8000);
return 0;
When we execute it from psql command prompt value "0414" is insesrted in
table. When we execute function from agent job value "х30343134" is
inserted in table.
Function decode() is deterministic, but result is not the same. It's bug.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14428: decode function don't return correct value when executed from agent's job or external program
2016-11-18 10:49 BUG #14428: decode function don't return correct value when executed from agent's job or external program vbochkov@eastwind.ru
@ 2016-11-18 14:45 ` David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: David G. Johnston @ 2016-11-18 14:45 UTC (permalink / raw)
To: vbochkov@eastwind.ru; +Cc: pgsql-bugs
On Fri, Nov 18, 2016 at 3:49 AM, <vbochkov@eastwind.ru> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 14428
> Logged by: Vadim Bochkov
> Email address: vbochkov@eastwind.ru
> PostgreSQL version: 9.5.5
> Operating system: CentOS 7.2
> Description:
>
> We have test stored function
> CREATE FUNCTION decode_test()
> RETURNS integer AS
> BEGIN
> insert into test2(txt)
> select decode('30343134','hex')::varchar(8000);
> return 0;
>
> When we execute it from psql command prompt value "0414" is insesrted in
> table. When we execute function from agent job value "х30343134" is
> inserted in table.
> Function decode() is deterministic, but result is not the same. It's bug.
>
>
N
ot a bug - different configurations in the two environments.
See bytea_output
https://www.postgresql.org/docs/9.5/static/runtime-config-client.html
David J.
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2016-11-18 14:45 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-11-18 10:49 BUG #14428: decode function don't return correct value when executed from agent's job or external program vbochkov@eastwind.ru
2016-11-18 14:45 ` David G. Johnston <david.g.johnston@gmail.com>
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