Re: [GENERAL] pg_dump and quoted identifiers

Поиск
Список
Период
Сортировка
От John McKown
Тема Re: [GENERAL] pg_dump and quoted identifiers
Дата
Msg-id CAAJSdjixrKUHfNT8f8rt6uztUOq3773dBb3aBm=5nYr1b_KVqQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] pg_dump and quoted identifiers  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
On Tue, Dec 13, 2016 at 11:24 AM, Thomas Kellerer <spam_eater@gmx.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.stehule@gmail.com <mailto:pavel.stehule@gmail.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@postgresql.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@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

В списке pgsql-general по дате отправления:

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: [GENERAL] pg_dump and quoted identifiers
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: [GENERAL] CRM where pg is a first class citizen?