Re: Space for pg_dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Rainer Bauer <usenet(at)munnin(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Space for pg_dump
Date: 2009-04-18 21:34:09
Message-ID: 23527.1240090449@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Rainer Bauer <usenet(at)munnin(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2009-04-18 21:41:21 Re: [GENERAL] Performance of full outer join in 8.3
Previous Message Tom Lane 2009-04-18 21:20:37 Re: [GENERAL] Community account