Re: postgresql system column errors

From: Ashish Mahabal <aam(at)astro(dot)caltech(dot)edu>
To: Mark Gibson <gibsonm(at)cromwell(dot)co(dot)uk>
Cc: Inoue(at)tpf(dot)co(dot)jp, pgsql-general(at)postgresql(dot)org
Subject: Re: postgresql system column errors
Date: 2004-02-17 19:15:13
Message-ID: Pine.LNX.4.58.0402171106431.9020@avyakta.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Thanx Mark.

Thats what I ended up doing. But it seems silly that the name space for
system columns and user columns are not separate. Its just like saying
that you can not have the same column name in 2 different tables.

Just like I can say table1.myCol and table2.myCol, there should have been
a way to say system.xmin and myTable.xmin, the default being myTable.xmin
when I am doing stuff with myTable. Whereever xmin gets used currently,
the source could explicitely say system.xmin. Anyway. hope that is done in
some future version.

Cheers,
-ashish

On Mon, 16 Feb 2004, Mark Gibson wrote:

> Ashish Mahabal wrote:
>
> >Hello Hiroshi,
> >
> >When I try to use the column name xmin in one of my tables I get
> >ERROR: column name "xmin" conflicts with a system column name
> >
> >You seem to have been affected by these errors in the past too. Had you
> >found a solution?
> >
> >Anybody else have any solutions?
> >
> >
>
> The only thing you can do is change your column name.
>
> The manual tells you about the system columns here:
> http://www.postgresql.org/docs/7.4/static/ddl-system-columns.html
>
> --
> Mark Gibson <gibsonm |AT| cromwell |DOT| co |DOT| uk>
> Web Developer & Database Admin
> Cromwell Tools Ltd.
> Leicester, England.
>

Ashish Mahabal, Caltech Astronomy, Pasadena, CA 91125
http://www.astro.caltech.edu/~aam aam(at)astro(dot)caltech(dot)edu

"Alcohol and calculus don't mix. Never drink and derive."

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruno Wolff III 2004-02-17 19:29:44 Re: how to merge a table from another DB
Previous Message Jan Wieck 2004-02-17 19:01:46 Re: PostgreSQL License