Re: tablespace and sequences? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: tablespace and sequences?
Date
Msg-id 5002.1092757642@sss.pgh.pa.us
Whole thread Raw
In response to tablespace and sequences?  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: tablespace and sequences?  (Fabien COELHO <coelho@cri.ensmp.fr>)
List pgsql-hackers
Fabien COELHO <coelho@cri.ensmp.fr> writes:
> (1) the "CREATE SEQUENCE foo TABLESPACE disk2" syntax does not seem
>     to be implemented.

This is intentional.  Sequences are not large enough to need to be
pushed around among multiple tablespaces.  Also, if we did allow
sequences to be associated with tablespaces, we'd be precluding other
implementation changes that are on the wish-list (such as storing all
sequences in a single system table, instead of needing a separate disk
file for each one).

The original patch actually had support for specifying a tablespace for
a sequence.  That was deliberately removed, and it's not going to go
back in later.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: tablespace and sequences?
Next
From: Tom Lane
Date:
Subject: Re: LDFLAGS vs. shared libraries