Re: pg_dump compatibility level / use create view instead of create table/rule - Mailing list pgsql-sql

From Tom Lane
Subject Re: pg_dump compatibility level / use create view instead of create table/rule
Date
Msg-id 30565.1570597261@sss.pgh.pa.us
Whole thread Raw
In response to pg_dump compatibility level / use create view instead of create table/rule  (Alex Williams <valenceshell@protonmail.com>)
Responses Re: pg_dump compatibility level / use create view instead of create table/rule
List pgsql-sql
Alex Williams <valenceshell@protonmail.com> writes:
> Can someone let me know when you're doing a pg_dump, can you specify not to use the view rules so that the statement
inthe pg_dump file uses create view instead of create table/create rule? 

No.

> We dump from 9.5.5 and restore to one 9.5.18 server and two 9.2 servers....we've been doing this for awhile and had
noissues until recently with certain views that are trying to be restored with rule views (some views in the pg_dump
fileare created with create view and some by create table / create rule) 

In general, we don't promise that pg_dump output from major version N
can be loaded into previous major versions.  Having said that, 9.2
should not have a problem with either the CREATE VIEW or CREATE TABLE-
plus-CREATE RULE approaches per se, so there's some critical detail
that you haven't told us about.  You didn't show the actual error
messages, either.

            regards, tom lane



pgsql-sql by date:

Previous
From: Alex Williams
Date:
Subject: Re: pg_dump compatibility level / use create view instead of create table/rule
Next
From: Ed Behn
Date:
Subject: Set FILLFACTOR for primary key