X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BFDD65293D for ; Wed, 1 Jun 2005 11:53:26 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 16024-09 for ; Wed, 1 Jun 2005 14:53:16 +0000 (GMT) Received: from nproxy.gmail.com (unknown [64.233.182.203]) by svr1.postgresql.org (Postfix) with ESMTP id E98D952923 for ; Wed, 1 Jun 2005 11:53:14 -0300 (ADT) Received: by nproxy.gmail.com with SMTP id g2so155565nfe for ; Wed, 01 Jun 2005 07:53:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hXBbK/L8J1jgRLwlmWrjHlrvdLaJTuv4+qrc5acLOex4w0of599/D6vuxByyBdGAPkkXMapACVHuXTVNlMP3Fi9ej4vCjDU7di9Q+0SbGchR8LaELRdHBqLJ8KN2evyFUmPzq/Bq+V9U6hTY3gNXT+oTm9c62wOrKawlG3HkVQM= Received: by 10.48.249.9 with SMTP id w9mr64256nfh; Wed, 01 Jun 2005 07:53:19 -0700 (PDT) Received: by 10.48.43.18 with HTTP; Wed, 1 Jun 2005 07:53:19 -0700 (PDT) Message-ID: <22df564b05060107539603a26@mail.gmail.com> Date: Wed, 1 Jun 2005 16:53:19 +0200 From: Rafa Couto Reply-To: Rafa Couto To: David Klugmann Subject: Re: View unique rowid Cc: pgsql-sql@postgresql.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.375 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, RCVD_BY_IP X-Spam-Level: X-Archive-Number: 200506/5 X-Sequence-Number: 21606 > Is it possible to refer to a unique row identifier on a view ? >=20 > I have the following view but in a subsequent select I need to refer to > each row's unique identifier and I know oid's are not valid for a view. You can get an oid from some table in view definition. May be it results to resolve your problem... You can also try "create temp sequence" (review http://archives.postgresql.org/pgsql-sql/2005-05/msg00126.php) select 'saludos'; --=20 Rafa Couto (caligari) mailto:rafacouto@gmail.com