Re: pg_dump -t broken for mixed case table names in

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_dump -t broken for mixed case table names in
Date: 2006-11-28 19:49:31
Message-ID: 456C3E6A.EE98.0025.0@wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers pgsql-patches

Thanks much; it might have been a while before I tried that nested
quoting technique. I think it's worth documenting. Would you like me
to try to put a doc patch together, or would it be better for someone
else to do so?

-Kevin


>>> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> 11/28/06 1:43 PM >>>
"Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov> writes:
> Unless I'm missing something, pg_dump is not allowing selective dump
of
> a table where the table name is mixed case.

You do it like this:

$ pg_dump - s - t '"DbTranLogRecord"' dtr

A bit ugly but the conflict between shell and SQL quoting rules
sometimes forces us into compromises :- (

Perhaps it's worth having an example for this in the pg_dump man page?

regards, tom lane

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message David Fetter 2006-11-28 22:51:09 Re: [HACKERS] pg_dump -t broken for mixed case table names in beta3?
Previous Message Tom Lane 2006-11-28 19:43:17 Re: pg_dump -t broken for mixed case table names in beta3?

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-11-28 19:56:28 Re: Short writes
Previous Message Peter Eisentraut 2006-11-28 19:48:06 Re: Short writes

Browse pgsql-patches by date

  From Date Subject
Next Message David Fetter 2006-11-28 22:51:09 Re: [HACKERS] pg_dump -t broken for mixed case table names in beta3?
Previous Message Tom Lane 2006-11-28 19:43:17 Re: pg_dump -t broken for mixed case table names in beta3?