Re: confused newbie (to pg not db's)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: mike <mike(at)redtux1(dot)uklinux(dot)net>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: confused newbie (to pg not db's)
Date: 2004-02-12 15:45:03
Message-ID: 4485.1076600703@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

mike <mike(at)redtux1(dot)uklinux(dot)net> writes:
> CREATE TABLE public."Invoice_Header"
^^^^^^^^^^^^^^^^

> I am trying to make Inv_ID a primary key as follows

> alter table Invoice_Header ADD CONSTRAINT PK_inv PRIMARY KEY (Inv_ID)
^^^^^^^^^^^^^^

> which runs without error, but nothing changes

I think you have tables named "Invoice_Header" and "invoice_header",
and the latter table is what's getting affected by your ALTER. If you
are going to use mixed-case names then you have to be consistent about
double-quoting them all the time.

regards, tom lane

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jürgen Cappel 2004-02-12 19:00:12 ECPG Segfault and variable usage question.
Previous Message kwiles81 2004-02-12 15:27:15 Re: Can not connect with pgin.tcl