X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9869AD1D17D for ; Fri, 12 Mar 2004 23:20:30 +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 05110-05 for ; Fri, 12 Mar 2004 19:20:31 -0400 (AST) Received: from blank.jbstamping.com (mail.jbstamping.com [207.166.197.106]) by svr1.postgresql.org (Postfix) with ESMTP id 01D59D1D707 for ; Fri, 12 Mar 2004 19:20:27 -0400 (AST) Received: from 192.168.2.254 (localhost [127.0.0.1]) by blank.jbstamping.com (8.12.10/8.12.10) with SMTP id i2CNiUxg027063; Fri, 12 Mar 2004 18:44:31 -0500 Received: from 192.168.2.250 (SquirrelMail authenticated user ggibson) by 192.168.2.254 with HTTP; Fri, 12 Mar 2004 18:44:31 -0500 (EST) Message-ID: <35891.192.168.2.250.1079135071.squirrel@192.168.2.254> In-Reply-To: <20040312230557.54427.qmail@web20803.mail.yahoo.com> References: <35772.192.168.2.250.1079131429.squirrel@192.168.2.254> <20040312230557.54427.qmail@web20803.mail.yahoo.com> Date: Fri, 12 Mar 2004 18:44:31 -0500 (EST) Subject: Re: ERROR: column "ctid" does not exist From: "George T. Gibson" To: "Jeff Eckermann" Cc: pgsql-odbc@postgresql.org Reply-To: gtgibson@jbstamping.com User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/42 X-Sequence-Number: 3844 Thanks for the quick response. But, if you already have many views created, and rather than going back and recreating all of them, is there a setting in the for the driver that can solve the problem? I tried setting both > ShowOidColumn = Yes > FakeOidIndex = Yes but I did not get any different results. Is that what these settings are for? Am I doing something wrong with them? Jeff Eckermann said: > --- "George T. Gibson" > wrote: >> I am trying to access PostgreSQL from Openoffice >> using iodbc on Linux >> >> When trying to look at any views I get ERROR: column >> "ctid" does not exist. >> >> Any suggestions? > > Every table contains a few system columns, including > "ctid", which identifies the storage location of the > record (IIRC). Normally these system columns are not > visible when you list a tables columns, but you can > select them. > > The PostgreSQL ODBC driver uses the "ctid" as a unique > identifier for a record. > > AFAIK there is no reason why you could not just add > "ctid" to your select list in your view definition. > > Note that using the ctid as an identifier in an > application is not a good idea, as the ctid value for > a particular record could change over time. >