pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: lst_hoe02@kwsoft.de
To: pgsql-admin@postgresql.org
Subject: Re: Doubts PostgreSQL
Date: Thu, 08 Oct 2015 21:35:47 +0200
Message-ID: <20151008213547.Horde.-ucaMyotdL0Ctak--KFAMOo@webmail.kwsoft.de> (raw)
In-Reply-To: <1444314932009-5869292.post@n5.nabble.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>


Zitat von "rafael.burischipfer" <RAFAEL.BURISCHIPFERUSA@gmail.com>:

> Hello everybody,
>
> I'm Oracle, DB2 and SQL Server DBA, and now I started work with PostgreSQL
> and I have some doubts.
>
> 1) Can I archive different databases in different directory path?
> Example:
> I want archive the database production 1 in '/mnt/production_1/archive' and
> production 2 in '/mnt/production_2/archive'

A "database" in PostgreSQL is light-weight compared to Oracle and  
share the WAL (redolog) with other databases in the same cluster.  
Therefore archive is per cluster (installation) and not per database.

>
> 2) I want change the WAL location, I don't want the WAL files stay in
> default location, I want for example in '/PGDATA/WAL', and Can I create
> different WALs to different databases?

You can link your WAL location to wherever you like, but as said the  
same WAL is for the whole cluster.

> 3) Can I improve the WAL size? the default is 16,384 KB, I want for example
> 51,200 KB it is possible?

In PostgreSQL you raise the number of the WAL files with checkpoint_segments.

> 4) In my instance I have three databases (Production 1, Production 2 and
> Production 3), and I have a role named UserProd with password 'test123', I
> want the Production 1 database the password be 'passwd123' in Production 2
> database be '123-passwd' and in Production 3 database be 'test123', it is
> possible?

No, roles are also global per cluster. That said you can easily run  
many PostgreSQL cluster on a single machine, the storage needed is  
much smaller than for a Oracle installation.

Regards

Andreas

Attachments:

  smime.p7s (application/pkcs7-signature, 5.7K) download

view thread (4+ messages)

Message-ID: <20151008213547.Horde.-ucaMyotdL0Ctak--KFAMOo@webmail.kwsoft.de>
Permalink:  ../20151008213547.Horde.-ucaMyotdL0Ctak--KFAMOo@webmail.kwsoft.de/
Also on:    postgresql.org/message-id/20151008213547.Horde.-ucaMyotdL0Ctak--KFAMOo@webmail.kwsoft.de

 · 

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-admin@postgresql.org
  Cc: lst_hoe02@kwsoft.de
  Subject: Re: Doubts PostgreSQL
  In-Reply-To: <20151008213547.Horde.-ucaMyotdL0Ctak--KFAMOo@webmail.kwsoft.de>
  References: <1444314932009-5869292.post@n5.nabble.com> <20151008213547.Horde.-ucaMyotdL0Ctak--KFAMOo@webmail.kwsoft.de>

* 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