pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: tushar <tushar.qa@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5910: Function pg_get_expr  throwing error for non superuser
Date: Thu, 03 Mar 2011 13:21:03 +0200
Message-ID: <4D6F799F.7050909@enterprisedb.com> (raw)
In-Reply-To: <201103030859.p238xNGA043782@wwwmaster.postgresql.org>
References: <201103030859.p238xNGA043782@wwwmaster.postgresql.org>

On 03.03.2011 10:59, tushar wrote:
> Pls refer this below scenario
>
> PG 8.4.4:-
> =========
> connect to non superuser :-
>
> postgres=# \c - t
> psql (8.4.4)
> You are now connected to database "postgres" as user "t".
> postgres=>   select pg_get_expr('a',null);
>   pg_get_expr
> -------------
>
> (1 row)

It was an oversight that we allowed that previously, because the user 
can easily crash the backend by passing bogus values. Try 8.4.5 or 
later, and you will get the same error that you do on 9.0.2.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com



view thread (2+ messages)

Message-ID: <4D6F799F.7050909@enterprisedb.com>
Permalink:  ../4D6F799F.7050909@enterprisedb.com/
Also on:    postgresql.org/message-id/4D6F799F.7050909@enterprisedb.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: heikki.linnakangas@enterprisedb.com, tushar.qa@gmail.com
  Subject: Re: BUG #5910: Function pg_get_expr  throwing error for non superuser
  In-Reply-To: <4D6F799F.7050909@enterprisedb.com>
  References: <201103030859.p238xNGA043782@wwwmaster.postgresql.org> <4D6F799F.7050909@enterprisedb.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