pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: nekomata@olegk.ca
Subject: BUG #15338: pg_restore --disable-triggers --data-only AND schema for table is not set.
Date: Fri, 17 Aug 2018 16:49:47 +0000
Message-ID: <153452458706.1316.5328079417086507743@wrigleys.postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15338
Logged by:          Oleg
Email address:      nekomata@olegk.ca
PostgreSQL version: 10.4
Operating system:   ubuntu 18.04
Description:        

for instance, there is a table "analytics.user_snapshot_data"
and it exists in its schema... 

when i do the restore here what is in the script:
--
-- PostgreSQL database dump
--

-- Dumped from database version 10.5 (Ubuntu 10.5-1.pgdg16.04+1)
-- Dumped by pg_dump version 10.5 (Ubuntu 10.5-1.pgdg16.04+1)

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET client_min_messages = warning;
SET row_security = off;

--
-- Data for Name: user_snapshot_data; Type: TABLE DATA; Schema: analytics;
Owner: XXXXXXX
--

SET SESSION AUTHORIZATION DEFAULT;

ALTER TABLE user_snapshot_data DISABLE TRIGGER ALL;

COPY analytics.user_snapshot_data (report_date, user_id, company_id, tasks,
events) FROM stdin;
..... [data here] ....
-------------------------------------------------------------------------------------------------------------------

that fails with 
ERROR:  relation "user_snapshot_data" does not exist

so basically "ALTER TABLE user_snapshot_data DISABLE TRIGGER ALL;"
is missing proper schema.



view thread (3+ messages)  latest in thread

Message-ID: <153452458706.1316.5328079417086507743@wrigleys.postgresql.org>
Permalink:  ../153452458706.1316.5328079417086507743@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/153452458706.1316.5328079417086507743@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, nekomata@olegk.ca
  Subject: Re: BUG #15338: pg_restore --disable-triggers --data-only AND schema for table is not set.
  In-Reply-To: <153452458706.1316.5328079417086507743@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox