Re: [BUGS] Server crash while trying to read expression using pg_get_expr()

From: Kris Jurka <books(at)ejurka(dot)com>
To: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Rushabh Lathia <rushabh(dot)lathia(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Rushabh Lathia <rushabh(dot)lathia(at)enterprisedb(dot)com>
Subject: Re: [BUGS] Server crash while trying to read expression using pg_get_expr()
Date: 2010-06-09 17:28:15
Message-ID: alpine.BSO.2.00.1006091322140.8548@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Wed, 9 Jun 2010, Heikki Linnakangas wrote:

> Are you thinking we should retrict pg_get_expr() to superusers then?
>

That seems like it will cause problems for both pg_dump and drivers which
want to return metadata as pg_get_expr has been the recommended way of
fetching this information.

The JDBC driver uses pg_get_expr to decode both pg_attrdef.adbin and
pg_index.indpred.

Kris Jurka

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Robert Haas 2010-06-09 17:31:51 Re: [BUGS] Invalid YAML output from EXPLAIN
Previous Message Robert Haas 2010-06-09 16:58:48 Re: Invalid YAML output from EXPLAIN

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-06-09 17:31:51 Re: [BUGS] Invalid YAML output from EXPLAIN
Previous Message Tom Lane 2010-06-09 17:21:56 Re: Adding XMLEXISTS to the grammar