Re: pg_dump and quoted identifiers

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_dump and quoted identifiers
Date: 2016-12-13 17:02:31
Message-ID: 3859.1481648551@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thomas Kellerer <spam_eater(at)gmx(dot)net> writes:
> postgres=# create table "Statuses" (id integer);
> CREATE TABLE

> -bash-4.1$ pg_dump -d postgres -t "Statuses"
> pg_dump: no matching tables were found

This is expected since those quotes are eaten by the shell.

> -bash-4.1$ pg_dump -d postgres -t '"Statuses"'
> pg_dump: no matching tables were found

> -bash-4.1$ pg_dump -d postgres -t 'public."Statuses"'
> pg_dump: no matching tables were found

These cases work for me. Maybe your shell is doing something weird
with the quotes?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2016-12-13 17:05:06 Re: pg_dump and quoted identifiers
Previous Message Ivan Sergio Borgonovo 2016-12-13 16:58:22 CRM where pg is a first class citizen?