From: christopher.m.hanks@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #14220: pg_get_expr() with an incorrect relation id crashes the server
Date: Wed, 29 Jun 2016 22:43:49 +0000
Message-ID: <20160629224349.1407.32667@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14220
Logged by: Chris Hanks
Email address: christopher.m.hanks@gmail.com
PostgreSQL version: 9.5.3
Operating system: Linux Mint 17.2 64-bit
Description:
SELECT version():
"PostgreSQL 9.5.3 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu
4.8.2-19ubuntu1) 4.8.2, 64-bit"
Reproduction:
CREATE TABLE "test_table" ("id" serial PRIMARY KEY, "column_1" int4 NOT
NULL, "column_2" int4);
CREATE INDEX "idx" ON "test_table" ("column_1") WHERE ("column_2" = 4);
SELECT pg_get_expr(i.indpred, i.indexrelid) FROM pg_index i;
I realize that the query is incorrect, in order to retrieve the filter
expression as SQL I need to call pg_get_expr(i.indpred, i.indrelid). But it
seems like it should raise an error, rather than causing the server to
crash.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: christopher.m.hanks@gmail.com
Subject: Re: BUG #14220: pg_get_expr() with an incorrect relation id crashes the server
In-Reply-To: <20160629224349.1407.32667@wrigleys.postgresql.org>
References: <20160629224349.1407.32667@wrigleys.postgresql.org>
* 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