From: Tom Lane <tgl@sss.pgh.pa.us>
To: funnyxj@qq.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #13762: server will crash after superuser alter function and set client_encoding
Date: Mon, 09 Nov 2015 09:45:54 -0500
Message-ID: <22805.1447080354@sss.pgh.pa.us> (raw)
In-Reply-To: <20151109104125.2569.45365@wrigleys.postgresql.org>
References: <20151109104125.2569.45365@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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
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: tgl@sss.pgh.pa.us, funnyxj@qq.com
Subject: Re: BUG #13762: server will crash after superuser alter function and set client_encoding
In-Reply-To: <22805.1447080354@sss.pgh.pa.us>
References: <20151109104125.2569.45365@wrigleys.postgresql.org> <22805.1447080354@sss.pgh.pa.us>
* 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