Thread: [HACKERS] unsafe tuple releasing in get_default_partition_oid

[HACKERS] unsafe tuple releasing in get_default_partition_oid

From
Julien Rouhaud
Date:
Hi,

I just noticed that get_default_partition_oid() tries to release the
tuple even if it isn't valid.
Trivial patch attached.

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Attachment

Re: [HACKERS] unsafe tuple releasing in get_default_partition_oid

From
Robert Haas
Date:
On Sat, Oct 28, 2017 at 10:03 AM, Julien Rouhaud <rjuju123@gmail.com> wrote:
> I just noticed that get_default_partition_oid() tries to release the
> tuple even if it isn't valid.
> Trivial patch attached.

Oops.  I wonder how that managed to survive testing.

Committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Re: [HACKERS] unsafe tuple releasing in get_default_partition_oid

From
Julien Rouhaud
Date:
On Sat, Oct 28, 2017 at 11:13 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Sat, Oct 28, 2017 at 10:03 AM, Julien Rouhaud <rjuju123@gmail.com> wrote:
>> I just noticed that get_default_partition_oid() tries to release the
>> tuple even if it isn't valid.
>> Trivial patch attached.
>
> Oops.  I wonder how that managed to survive testing.
>
> Committed.

Thanks!


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers