Re: Pg (Perl for Postgresql) - Mailing list pgsql-interfaces

From Tom Lane
Subject Re: Pg (Perl for Postgresql)
Date
Msg-id 10058.1040342388@sss.pgh.pa.us
Whole thread Raw
In response to Re: Pg (Perl for Postgresql)  (Laurette Cisneros <laurette@nextbus.com>)
List pgsql-interfaces
Laurette Cisneros <laurette@nextbus.com> writes:
> The column and the table are named the same:
> select x, y from y;

> In 7.3 it gives the error message:
> ERROR:  You can't use relation names alone in the target list, try relation.*.

> It works fine in 7.2

Hm, there must be more to it than meets the eye, because that condition
alone doesn't cause a problem:

regression=# create table y (x int, y int);
CREATE TABLE
regression=# select x, y from y;x | y
---+---
(0 rows)

How did you declare the table, exactly?
        regards, tom lane


pgsql-interfaces by date:

Previous
From: Laurette Cisneros
Date:
Subject: Re: Pg (Perl for Postgresql)
Next
From: Bruce Badger
Date:
Subject: MD5 PasswordPacket