pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #13762: server will crash after superuser alter function and set client_encoding
3+ messages / 3 participants
[nested] [flat]
* BUG #13762: server will crash after superuser alter function and set client_encoding
@ 2015-11-09 10:41 funnyxj@qq.com
0 siblings, 2 replies; 3+ messages in thread
From: funnyxj@qq.com @ 2015-11-09 10:41 UTC (permalink / raw)
To: pgsql-bugs
The following bug has been logged on the website:
Bug reference: 13762
Logged by: funnyxj
Email address: funnyxj@qq.com
PostgreSQL version: 9.4.5
Operating system: linux
Description:
When superuser execute the following statements, the server will crash, it
may be a bug.
statements:
1. alter function koi8r_to_utf8(integer, integer, cstring, internal,
integer) set work_mem = default ;
2. set client_encoding = 'koi8';
3. select 1;
then the error log is:
server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
The connection to the server was lost. Attempting reset: Failed.
!>
--
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] 3+ messages in thread
* Re: BUG #13762: server will crash after superuser alter function and set client_encoding
@ 2015-11-09 12:24 Haribabu Kommi <kommi.haribabu@gmail.com>
parent: funnyxj@qq.com
1 sibling, 0 replies; 3+ messages in thread
From: Haribabu Kommi @ 2015-11-09 12:24 UTC (permalink / raw)
To: funnyxj@qq.com; +Cc: pgsql-bugs
On Mon, Nov 9, 2015 at 9:41 PM, <funnyxj@qq.com> wrote:
> The following bug has been logged on the website:
>
> Bug reference: 13762
> Logged by: funnyxj
> Email address: funnyxj@qq.com
> PostgreSQL version: 9.4.5
> Operating system: linux
> Description:
>
> When superuser execute the following statements, the server will crash, it
> may be a bug.
> statements:
>
> 1. alter function koi8r_to_utf8(integer, integer, cstring, internal,
> integer) set work_mem = default ;
> 2. set client_encoding = 'koi8';
> 3. select 1;
I am not able to reproduce this issue.
[kommih@localhost bin]$ ./psql postgres
psql (9.4.5)
Type "help" for help.
postgres=# alter function koi8r_to_utf8(integer, integer, cstring, internal,
integer) set work_mem = default ;
ALTER FUNCTION
postgres=# set client_encoding = 'koi8';
SET
postgres=# select 1;
?column?
----------
1
(1 row)
Regards,
Hari Babu
Fujitsu Australia
--
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] 3+ messages in thread
* Re: BUG #13762: server will crash after superuser alter function and set client_encoding
@ 2015-11-09 14:45 Tom Lane <tgl@sss.pgh.pa.us>
parent: funnyxj@qq.com
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lane @ 2015-11-09 14:45 UTC (permalink / raw)
To: funnyxj@qq.com; +Cc: pgsql-bugs
funnyxj@qq.com writes:
> When superuser execute the following statements, the server will crash, it
> may be a bug.
> 1. alter function koi8r_to_utf8(integer, integer, cstring, internal,
> integer) set work_mem = default ;
That would be in the category of "don't do that". Encoding conversion
functions are invoked using special code paths that don't support every
possible option for functions, so I'm not too surprised that this breaks
things (and I see no reason to expend effort to try to make it not be
broken).
FWIW, I can't reproduce a crash with the described case either, so
I think there's probably some additional condition required. But
it doesn't really matter. Mucking with the properties of built-in
functions isn't considered a supported thing to do.
regards, tom lane
--
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] 3+ messages in thread
end of thread, other threads:[~2015-11-09 14:45 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09 10:41 BUG #13762: server will crash after superuser alter function and set client_encoding funnyxj@qq.com
2015-11-09 12:24 ` Haribabu Kommi <kommi.haribabu@gmail.com>
2015-11-09 14:45 ` Tom Lane <tgl@sss.pgh.pa.us>
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