pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Łukasz Jarych <jaryszek@gmail.com>
To: pgsql-general@postgresql.org >> PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: Copies or tables in schema or copiyng of database - database versioning
Date: Fri, 22 Jun 2018 05:57:22 -0700
Message-ID: <2dc9808b-78d7-a47c-c80e-b42919633295@aklaver.com> (raw)
In-Reply-To: <CAGv31oeh_7CaJ_mkfNnZET_WAaw6RjsRCCQFVgcdeSgu=2Ftng@mail.gmail.com>
References: <CAGv31oeh_7CaJ_mkfNnZET_WAaw6RjsRCCQFVgcdeSgu=2Ftng@mail.gmail.com>

On 06/22/2018 01:12 AM, Łukasz Jarych wrote:
> Hi Guys,
> 
> I want to create copies of tables in postgresql to use them by each user 
> in coherent way,
> 
> So version 1 will be schema1, version 2 will be schema2 (with copies of 
> tables from version 1).
> 
> How to perfom it ?
> Using pg dump and creating new schemas (or databases is a better idea)?
> 
> Or it is a way to write sql to create new schema and copying the older one?

I am trying to understand what you want:

1) The tables will be exactly the same in each schema or will they differ?

2) Is a user going to be restricted to a particular schema?

3) What is the purpose of this layout?

> 
> Best,
> Jacek
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (2+ messages)

Message-ID: <2dc9808b-78d7-a47c-c80e-b42919633295@aklaver.com>
Permalink:  ../2dc9808b-78d7-a47c-c80e-b42919633295@aklaver.com/
Also on:    postgresql.org/message-id/2dc9808b-78d7-a47c-c80e-b42919633295@aklaver.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, jaryszek@gmail.com
  Subject: Re: Copies or tables in schema or copiyng of database - database versioning
  In-Reply-To: <2dc9808b-78d7-a47c-c80e-b42919633295@aklaver.com>
  References: <CAGv31oeh_7CaJ_mkfNnZET_WAaw6RjsRCCQFVgcdeSgu=2Ftng@mail.gmail.com> <2dc9808b-78d7-a47c-c80e-b42919633295@aklaver.com>

* 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