X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 3764FD1B4DE for ; Thu, 12 Feb 2004 15:45:01 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 59910-07 for ; Thu, 12 Feb 2004 11:45:03 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 46919D1B4C9 for ; Thu, 12 Feb 2004 11:44:59 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i1CFj3aN004486; Thu, 12 Feb 2004 10:45:03 -0500 (EST) To: mike Cc: pgsql-interfaces@postgresql.org Subject: Re: confused newbie (to pg not db's) In-reply-to: <1076595324.3818.8.camel@datacc> References: <1076595324.3818.8.camel@datacc> Comments: In-reply-to mike message dated "Thu, 12 Feb 2004 14:15:24 +0000" Date: Thu, 12 Feb 2004 10:45:03 -0500 Message-ID: <4485.1076600703@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/26 X-Sequence-Number: 4719 mike 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