pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: pgsql-bugs@lists.postgresql.org
To: exclusion@gmail.com
Subject: Re: BUG #15599: Segfault at MakeExpandedObjectReadOnlyInternal
Date: Sat, 19 Jan 2019 10:20:05 +0000
Message-ID: <87pnstgde6.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <15599-70ca6ed4587ab793@postgresql.org>
References: <15599-70ca6ed4587ab793@postgresql.org>

>>>>> "PG" == PG Bug reporting form <noreply@postgresql.org> writes:

 PG> Bug reference:      15599
 PG> Logged by:          Alexander Lakhin
 PG> Email address:      exclusion@gmail.com
 PG> PostgreSQL version: 11.1
 PG> Operating system:   Ubuntu 18.04
 PG> Description:        

 PG> The PostgreSQL server crashes with the following query (excerpt
 PG> from regression test, run it after `make check`):

Not a bug.

 PG> CREATE FUNCTION overpaid(emp)
 PG>    RETURNS hobbies_r
 PG>    AS '/src/postgres/src/test/regress/regress.so'
 PG>    LANGUAGE C STRICT;

"overpaid" in regress.so returns a boolean scalar, not a row of any
kind. It is the responsibility of the person issuing CREATE FUNCTION for
a C-language function to get the types right; if they are wrong, it can
(as you observed) crash the server, which is why this action is
restricted to database superusers.

-- 
Andrew (irc:RhodiumToad)




view thread (3+ messages)  latest in thread

Message-ID: <87pnstgde6.fsf@news-spur.riddles.org.uk>
Permalink:  ../87pnstgde6.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87pnstgde6.fsf@news-spur.riddles.org.uk

 · 

reply

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: andrew@tao11.riddles.org.uk, exclusion@gmail.com
  Subject: Re: BUG #15599: Segfault at MakeExpandedObjectReadOnlyInternal
  In-Reply-To: <87pnstgde6.fsf@news-spur.riddles.org.uk>
  References: <15599-70ca6ed4587ab793@postgresql.org> <87pnstgde6.fsf@news-spur.riddles.org.uk>

* 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