agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedMulti-key indices in postgres.
2+ messages / 2 participants
[nested] [flat]
* Multi-key indices in postgres.
@ 1994-08-29 14:39 Mr N.L. Parker <ccnp@cacofonix.utr.ac.za>
0 siblings, 1 reply; 2+ messages in thread
From: Mr N.L. Parker @ 1994-08-29 14:39 UTC (permalink / raw)
To: legacy
Hi
Newbie question:
Is there an easy way to create multi-key indices in Postgres - have
browsed the manual but looks like it gets complicated ..? Maybe I am
missing something obvious.
eg What is the POSTQUEL equivalent of the following SQL:
CREATE TABLE SP
(Sno char(5), Pno char(5), Qty integer,
primary key (Sno, Pno),
foreign key (Sno) references S,
foreign key (Pno) references P ) ;
S and P are tables which are already set up and are indexed on Sno and
Pno respectively.
Neil
--
Neil Parker Just *
Computer Centre, University of Transkei visiting *
Pvt Bag X1 Umtata . Tel (0471)-3022461 * this
Email: ccnp@unitrix.utr.ac.za * Planet !
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Multi-key indices in postgres.
@ 1994-08-29 17:50 Paul M. Aoki <aoki@cs.berkeley.edu>
parent: Mr N.L. Parker <ccnp@cacofonix.utr.ac.za>
0 siblings, 0 replies; 2+ messages in thread
From: Paul M. Aoki @ 1994-08-29 17:50 UTC (permalink / raw)
To: Mr N.L. Parker <ccnp@cacofonix.utr.ac.za>; +Cc: legacy
"Mr N.L. Parker" <ccnp@cacofonix.utr.ac.za> writes:
> Is there an easy way to create multi-key indices in Postgres - have
> browsed the manual but looks like it gets complicated ..? Maybe I am
> missing something obvious.
no, there's no easy way. the key data-type concatenation method
works (it's used internally).
--
Paul M. Aoki | University of California at Berkeley
aoki@CS.Berkeley.EDU | Dept. of EECS, Computer Science Division (#1776)
| Berkeley, CA 94720-1776
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1994-08-29 17:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1994-08-29 14:39 Multi-key indices in postgres. Mr N.L. Parker <ccnp@cacofonix.utr.ac.za>
1994-08-29 17:50 ` Paul M. Aoki <aoki@cs.berkeley.edu>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox