pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurette Cisneros <laurette@nextbus.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: Pg (Perl for Postgresql)
Date: Thu, 19 Dec 2002 18:59:48 -0500
Message-ID: <10058.1040342388@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.LNX.4.44.0212191546580.17348-100000@visor.corp.nextbus.com>
References: <Pine.LNX.4.44.0212191546580.17348-100000@visor.corp.nextbus.com>

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



view thread (4+ messages)

Message-ID: <10058.1040342388@sss.pgh.pa.us>
Permalink:  ../10058.1040342388@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10058.1040342388@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, laurette@nextbus.com
  Subject: Re: Pg (Perl for Postgresql)
  In-Reply-To: <10058.1040342388@sss.pgh.pa.us>

* 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