Re: tubles matching - Mailing list pgsql-general

From Chris Travers
Subject Re: tubles matching
Date
Msg-id CAKt_ZfvpjihaSrhCce1eTogiS0nJuca-7MX+qpdnmy69D4mDdA@mail.gmail.com
Whole thread Raw
In response to Re: tubles matching  (Alban Hertroys <haramrae@gmail.com>)
Responses Re: tubles matching
List pgsql-general
Is something like this what you are trying to do?

somedb=# create table a (a int, b text, c date);
CREATE TABLE
somedb=# create table b (a int, b text, c date);
CREATE TABLE
somedb=# select * from a join b using (a, b, c);
 a | b | c
---+---+---
(0 rows)

somedb=# insert into a values (1, 'test', now());
INSERT 0 1
somedb=# insert into b values (1, 'test', now());
INSERT 0 1
somedb=# insert into b values (2, 'test', now());
INSERT 0 1
somedb=# select * from a join b using (a, b, c);
 a |  b   |     c
---+------+------------
 1 | test | 2011-09-28
(1 row)

Best wishes,
Chris Travers

pgsql-general by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: [Solved] Generic logging system for pre-hstore using plperl triggers
Next
From: Merlin Moncure
Date:
Subject: Re: bytea columns and large values