Re: BUG #15599: Segfault at MakeExpandedObjectReadOnlyInternal

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15599: Segfault at MakeExpandedObjectReadOnlyInternal
Date: 2019-01-19 10:57:15
Message-ID: aa4cba3c-a911-2334-eec2-826c0d53b8f5@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message André Hänsel 2019-01-21 01:31:04 Deferred foreign key and two updates block ALTER TABLE
Previous Message Andrew Gierth 2019-01-19 10:20:05 Re: BUG #15599: Segfault at MakeExpandedObjectReadOnlyInternal