Re: Getting weird pg_tblspc error, has anyone seen this before?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Getting weird pg_tblspc error, has anyone seen this before?
Date: 2008-04-01 16:35:09
Message-ID: 9874.1207067709@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tony Caduto <tony_caduto(at)amsoftwaredesign(dot)com> writes:
> The exact error is(as reported from PG Admin III):
> ERROR: could not open tablespace directory "pg_tblspc": No such file or
> directory

This must be coming from calculate_database_size(). Is
$PGDATA/pg_tblspc actually missing? If the guy has no custom
tablespaces, I can believe that nothing except pg_database_size()
or pg_tablespace_size() would try to touch that subdirectory, so
he might not otherwise notice that it'd gone missing.

> The user also claims that the error only occurs when running the query
> locally i.e. localhost, but when he runs the query from a different PC
> it works and he gets a result set back.

That's kind of in the category of "I don't believe it". I suspect pilot
error, ie he was talking to a different postmaster.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tony Caduto 2008-04-01 16:47:43 Re: Getting weird pg_tblspc error, has anyone seen this before?
Previous Message Martijn van Oosterhout 2008-04-01 16:32:25 Re: optimiser STABLE vs. temp table was: HOWTO caching data across function calls: temporary tables, cursor?