Re: Composite type

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Composite type
Date: 2014-01-28 03:38:57
Message-ID: 52E72651.2070906@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/26/2014 9:02 AM, antono124 wrote:
> I want to refer the first table in the second. I want to reference the whole
> table not only one field, so something like that:

does this table1 have a primary key? if so, referencing the PK allows
you to fetch the whole row via a join. if this table doesn't have a
primary key, um, why not??

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2014-01-28 03:40:35 Re: Fully-automatic streaming replication failover when master dies?
Previous Message ning chan 2014-01-28 03:34:37 plsql / plpgsql code coverage tool, static analysis tool