Re: Space for pg_dump - Mailing list pgsql-general

From Tom Lane
Subject Re: Space for pg_dump
Date
Msg-id 23527.1240090449@sss.pgh.pa.us
Whole thread Raw
In response to Re: Space for pg_dump  (Rainer Bauer <usenet@munnin.com>)
Responses Re: Space for pg_dump
List pgsql-general
Rainer Bauer <usenet@munnin.com> writes:
> Greg Smith wrote:
>> Since running an entire pgdump can take forever on a big database, what I
>> usually do here is start by running the disk usage query at
>> http://wiki.postgresql.org/wiki/Disk_Usage

> Interesting. However, the query gives an error if the table name contains
> upper case characters, like in my case "tblConnections":

> ERROR:  relation "public.tblconnections" does not exist.

> Replacing all occurences of <relname> by  <'"' || relname || '"'> fixes the
> error.

That still fails if the table name contains double quotes.  A proper
solution is to use the table OID --- I've corrected the example.

            regards, tom lane

pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: Community account
Next
From: Kenneth Tilton
Date:
Subject: Nooby Q: Should this take five hours? And counting?