Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehgee-0005ml-OF for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Feb 2018 19:05:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehged-0000ZI-FF for pgsql-bugs@arkaria.postgresql.org; Fri, 02 Feb 2018 19:05:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ehged-0000Z3-9S for pgsql-bugs@lists.postgresql.org; Fri, 02 Feb 2018 19:05:43 +0000 Received: from mail.tagan.ru ([95.174.96.5]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ehgeY-00016h-RC for pgsql-bugs@postgresql.org; Fri, 02 Feb 2018 19:05:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tagan.ru; s=dkim; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=CoxDpadY1Era3WJhfavNb/FwfgXDcBq9Tom+FuR4YLg=; b=qBltpqVLAx5rr0Ht8uI4Zdtyfa nfl8IWwziEl1W9Kt/ApK0lC2HJ7tAXTqp5bpM14nBf0ftAees9dLsRuvEamze9q2+IXdYl+kzmupp 2WagZm4J+5FUJoFhhexJEA5LsvlkRabuAxUDT9N3HSCYP5fN4ZyFCv0z67AzkpLuorJY=; Received: from [87.117.50.241] (helo=ahpeb) by mail.tagan.ru with esmtpsa auth=asper (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1ehgeT-0008Ax-Kh; Fri, 02 Feb 2018 22:05:33 +0300 Date: Fri, 2 Feb 2018 22:05:45 +0300 From: Michael To: "David G. Johnston" Cc: Rainer Pruy , Pavan Teja , Mike Porter , Postgres Bug Subject: Re: crypt function crash on postgresql 9.3.20 and 10 Message-ID: <20180202220545.12ec535f@ahpeb> In-Reply-To: References: <5059192d-2ff7-41c2-1070-708cb65f33e9@tagan.ru> <965ca7cd-1c5c-ebdd-0fb1-1d7dbc1c7038@acrys.com> <20180202214746.10221aea@ahpeb> Organization: MGL X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =D0=92 Fri, 2 Feb 2018 11:53:06 -0700 "David G. Johnston" =D0=BF=D0=B8=D1=88=D0=B5= =D1=82: > On Friday, February 2, 2018, Michael wrote: >=20 > > > > However, in a postgresql 9.3.2, such a call does not lead to an > > error. =20 >=20 >=20 > If you are saying 9.3.2 gives a result and 9.3.20 raises an error I > suspect the response in 9.3.2 was bogus and giving an error instead > of a bogus result was deemed the best fix. >=20 >=20 > > how then should the function respond to a call > > select crypt('123',NULL); > > this does not cause an error > > =20 >=20 > It probably returns null because I would hope the function is defined > as strict. >=20 > David J. Thank you for the clarification. In any case, I've already fixed the queries in my application to get around this behavior.