Re: Doubts PostgreSQL

Поиск
Список
Период
Сортировка
От lst_hoe02@kwsoft.de
Тема Re: Doubts PostgreSQL
Дата
Msg-id 20151008213547.Horde.-ucaMyotdL0Ctak--KFAMOo@webmail.kwsoft.de
обсуждение исходный текст
Ответ на Doubts PostgreSQL  ("rafael.burischipfer" <RAFAEL.BURISCHIPFERUSA@GMAIL.COM>)
Список pgsql-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



Вложения

В списке pgsql-admin по дате отправления:

Предыдущее
От: Jorge Torralba
Дата:
Сообщение: Re: Doubts PostgreSQL
Следующее
От: Artem Tomyuk
Дата:
Сообщение: temporary file