Re: [PERFORM] Index/Foreign Key Question

2003-10-12 Thread Hannu Krosing
Andrew Sullivan kirjutas P, 12.10.2003 kell 22:28: > On Fri, Oct 10, 2003 at 09:01:12PM -0500, Ron Johnson wrote: > > > > > Does PostgreSQL only pick one index per table on the select statements? > > > > That's it's preference. > > As far as I know, that's all it can do. Do you know something >

Re: [PERFORM] Index/Foreign Key Question

2003-10-12 Thread Andrew Sullivan
On Fri, Oct 10, 2003 at 09:01:12PM -0500, Ron Johnson wrote: > > > Does PostgreSQL only pick one index per table on the select statements? > > That's it's preference. As far as I know, that's all it can do. Do you know something different? A -- Andrew Sullivan 20

Re: [PERFORM] Index/Foreign Key Question

2003-10-10 Thread Ron Johnson
On Fri, 2003-10-10 at 16:32, David Busby wrote: > - Original Message - > From: "Ron Johnson" > > On Fri, 2003-10-10 at 16:04, David Busby wrote: > > > List, > > > I'm creating this multi company POS database. > > > My inventory table looks like (all items are unique): > > > > > > id,ca

Re: [PERFORM] Index/Foreign Key Question

2003-10-10 Thread Stephan Szabo
On Fri, 10 Oct 2003, David Busby wrote: > - Original Message - > From: "Ron Johnson" > > On Fri, 2003-10-10 at 16:04, David Busby wrote: > > > List, > > > I'm creating this multi company POS database. > > > My inventory table looks like (all items are unique): > > > > > > id,category_i

Re: [PERFORM] Index/Foreign Key Question

2003-10-10 Thread David Busby
- Original Message - From: "Ron Johnson" > On Fri, 2003-10-10 at 16:04, David Busby wrote: > > List, > > I'm creating this multi company POS database. > > My inventory table looks like (all items are unique): > > > > id,category_id,invoice_id,x,y,z,gid,uid > > > > I have a primary key

Re: [PERFORM] Index/Foreign Key Question

2003-10-10 Thread Ron Johnson
On Fri, 2003-10-10 at 16:04, David Busby wrote: > List, > I'm creating this multi company POS database. > My inventory table looks like (all items are unique): > > id,category_id,invoice_id,x,y,z,gid,uid > > I have a primary key on id, and then an foreign keys on category_id and > invoice_id.

[PERFORM] Index/Foreign Key Question

2003-10-10 Thread David Busby
List, I'm creating this multi company POS database. My inventory table looks like (all items are unique): id,category_id,invoice_id,x,y,z,gid,uid I have a primary key on id, and then an foreign keys on category_id and invoice_id. GID is the group ID of the company, UID is the companies user,