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

19.01.2019 13:20, Andrew Gierth wrote:
>  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.
Hello Andrew,

Thank you for the explanation. I will take this into account.

Best regards,
Alexander




view thread (3+ messages)

Message-ID: <aa4cba3c-a911-2334-eec2-826c0d53b8f5@gmail.com>
Permalink:  ../aa4cba3c-a911-2334-eec2-826c0d53b8f5@gmail.com/
Also on:    postgresql.org/message-id/aa4cba3c-a911-2334-eec2-826c0d53b8f5@gmail.com

 · 

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

* 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