Re: tablespace and sequences?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: tablespace and sequences?
Date: 2004-08-17 15:35:02
Message-ID: 200408171535.i7HFZ2812915@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-cygwin pgsql-hackers pgsql-hackers-win32

Fabien COELHO wrote:
>
> Dear Bruce,
>
> > > (1) the "CREATE SEQUENCE foo TABLESPACE disk2" syntax does not seem
> > > to be implemented.
> > >
> > > (2) when creating an implicit sequence with SERIAL, the sequence
> > > is created in the tablespace of the schema/database, not the one
> > > of the table, although indexes are added to the tablespace
> > > of the table. It would seem more logical to put it in
> > > the same table space as the table by default?
> >
> > We decided it didn't make much sense to allow the on-row sequences to be
> > anywhere but the default tablespace.
>
> Hmmm...
>
> I can understand the performance/utility rationale, but I don't like the
> lack of orthogonality on principle. I like elegance;-) As a sequence looks
> a lot like a table, I guess it should not be that hard to have it anyway.
>
> Well, just my little opinion, and not a big issue.

I can't remember why we didn't just make it orthoginal.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-cygwin by date

  From Date Subject
Next Message Fabien COELHO 2004-08-17 15:40:13 Re: tablespace and sequences?
Previous Message Fabien COELHO 2004-08-17 15:30:03 Re: tablespace and sequences?

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2004-08-17 15:40:13 Re: tablespace and sequences?
Previous Message Fabien COELHO 2004-08-17 15:30:03 Re: tablespace and sequences?

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Fabien COELHO 2004-08-17 15:40:13 Re: tablespace and sequences?
Previous Message Aleksander Kmetec 2004-08-17 15:34:21 Re: Win32 PostgreSQL 8.0 Beta 1 Installer available