From: | lst_hoe02(at)kwsoft(dot)de |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Doubts PostgreSQL |
Date: | 2015-10-08 19:35:47 |
Message-ID: | 20151008213547.Horde.-ucaMyotdL0Ctak--KFAMOo@webmail.kwsoft.de |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Zitat von "rafael.burischipfer" <RAFAEL(dot)BURISCHIPFERUSA(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Artem Tomyuk | 2015-10-09 11:33:00 | temporary file |
Previous Message | Jorge Torralba | 2015-10-08 17:49:42 | Re: Doubts PostgreSQL |