Magnus Hagander <magnus@hagander.net> writes:
>> + * The file will be named base.tar[.gz] if it's for the main data directory
>> + * or <tablespaceoid>.tar[.gz] if it's for another tablespace.
>>
>> Well we have UNIQUE, btree (spcname), so maybe we can use that here?
> We could, but that would make it more likely to run into encoding
> issues and such - do we restrict what can be in a tablespace name?
No. Don't even think of going there --- we got rid of user-accessible
names in the filesystem years ago and we're not going back. ConsiderCREATE TABLESPACE "/foo/bar" LOCATION '/foo/bar';
regards, tom lane