From: | John McKown <john(dot)archie(dot)mckown(at)gmail(dot)com> |
---|---|
To: | Thomas Kellerer <spam_eater(at)gmx(dot)net> |
Cc: | PostgreSQL General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: pg_dump and quoted identifiers |
Date: | 2016-12-13 17:34:28 |
Message-ID: | CAAJSdjixrKUHfNT8f8rt6uztUOq3773dBb3aBm=5nYr1b_KVqQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Tue, Dec 13, 2016 at 11:24 AM, Thomas Kellerer <spam_eater(at)gmx(dot)net>
wrote:
> David G. Johnston schrieb am 13.12.2016 um 18:05:
>
>> On Tue, Dec 13, 2016 at 9:43 AM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com
>> <mailto:pavel(dot)stehule(at)gmail(dot)com>>wrote:
>>
>>
>> pg_dump -t '"Statuses"' postgres
>>
>>
>> To elaborate - your shell was removing the double-quotes. You need
>> make it so after shell processing the double-quotes remain. Wrapping
>> the double-quote string in single-quotes should do it.
>>
>
> That was one of the options I tried, but that neither worked on Linux
> (using bash) nor on Windows
>
> Thomas
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
pg_dump -t '"Statuses"' (that's " marks around the word Statuses and '
marks around that. On Fedora:
[tsh009(at)it-johnmckown-linux junk]$ pg_dump -t '"Status"'
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.5.5
-- Dumped by pg_dump version 9.5.5
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- Name: Status; Type: TABLE; Schema: public; Owner: tsh009
--
CREATE TABLE "Status" (
x integer
);
ALTER TABLE "Status" OWNER TO tsh009;
--
-- Data for Name: Status; Type: TABLE DATA; Schema: public; Owner: tsh009
--
COPY "Status" (x) FROM stdin;
1
\.
--
-- PostgreSQL database dump complete
--
--
Heisenberg may have been here.
Maranatha! <><
John McKown
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2016-12-13 18:19:55 | Re: CRM where pg is a first class citizen? |
Previous Message | Thomas Kellerer | 2016-12-13 17:25:28 | Re: pg_dump and quoted identifiers |