Re: Netapp SnapCenter

2020-06-21 Thread Paul Förster
Hi Stephen, > On 22. Jun, 2020, at 07:36, Stephen Frost wrote: > That's not the only case that I, at least, have heard of- folks aren't > really very happy with their backups fail when they could have just as > well completed, even if they're overlapping. Sure, it's better if > backups are sched

Re: Netapp SnapCenter

2020-06-21 Thread Stephen Frost
Greetings, * Paul Förster (paul.foers...@gmail.com) wrote: > > On 21. Jun, 2020, at 21:35, Magnus Hagander wrote: > > One not uncommon case is for example being able to provision a new replica > > while a backup is running. Since replicas are provisioned starting off a > > base backup, being ab

Re: Netapp SnapCenter

2020-06-21 Thread Paul Förster
Hi Magnus, > On 21. Jun, 2020, at 21:35, Magnus Hagander wrote: > One not uncommon case is for example being able to provision a new replica > while a backup is running. Since replicas are provisioned starting off a base > backup, being able to run that concurrently is very useful. Especially i

Re: Hiding a GUC from SQL

2020-06-21 Thread raf
Laurenz Albe wrote: > On Mon, 2020-06-22 at 09:44 +1000, raf wrote: > > A superuser can access files and start programs on the server machine. > > > A dedicated superuser may for example attach to PostgreSQL with a debugger > > > and read the value of the variable. > > > > > > And if that doesn't

DISTINCT on jsonb fields and Indexes

2020-06-21 Thread Sankar P
I have a table with the schema: CREATE TABLE fluent (id BIGSERIAL, record JSONB); Then I created a couple of indexes: 1) CREATE INDEX idx_records ON fluent USING GIN (record); 2) CREATE INDEX idx_btree_records ON fluent USING BTREE ((record ->> 'destinationServiceName')); Now, if I run a query t

Re: Definition of REPEATABLE READ

2020-06-21 Thread Thomas Munro
On Mon, Jun 22, 2020 at 12:25 AM Peter J. Holzer wrote: > I've read http://jepsen.io/analyses/postgresql-12.3 which reports a > problem in PostgreSQL's SERIALIZABLE isolation leven (which has since been > fixed) and also shows an example of a violation of what they consider to > be the correct def

Re: Hiding a GUC from SQL

2020-06-21 Thread Laurenz Albe
On Mon, 2020-06-22 at 09:44 +1000, raf wrote: > A superuser can access files and start programs on the server machine. > > A dedicated superuser may for example attach to PostgreSQL with a debugger > > and read the value of the variable. > > > > And if that doesn't work, there may be other things

Re: Feature suggestion: auto-prefixing SELECT query column names with table/alias names

2020-06-21 Thread Laurenz Albe
On Mon, 2020-06-22 at 14:16 +1200, Guy Burgess wrote: > I've seen some situations where it would be very handy if PostgreSQL > could automatically prefix column names in a SELECT query with their > table names (or its alias). So for two tables, a & b, each with > columns "id" and "title": > >

Feature suggestion: auto-prefixing SELECT query column names with table/alias names

2020-06-21 Thread Guy Burgess
Hello, I've seen some situations where it would be very handy if PostgreSQL could automatically prefix column names in a SELECT query with their table names (or its alias).   So for two tables, a & b, each with columns "id" and "title":     SELECT * FROM a , b; instead of returning ambiguou

Re: Hiding a GUC from SQL

2020-06-21 Thread raf
Laurenz Albe wrote: > On Wed, 2020-06-17 at 13:23 -0700, Michel Pelletier wrote: > > In my extension pgsodium I'm defining a custom variable at startup to store > > a key: > > > > https://github.com/michelp/pgsodium/blob/master/src/pgsodium.c#L1107 > > > > I'm using the flags GUC_NO_SHOW_ALL |

Re: The backup API and general purpose backup software

2020-06-21 Thread Ron
On 6/21/20 10:45 AM, Peter J. Holzer wrote: On 2020-06-21 10:32:16 -0500, Ron wrote: On 6/21/20 8:28 AM, Peter J. Holzer wrote: To make a full backup with the "new" (non-exclusive) API, a software must do the following 1. open a connection to the database 2. invoke pg_start_backup('label', fa

Re: Netapp SnapCenter

2020-06-21 Thread Magnus Hagander
On Sat, Jun 20, 2020 at 9:04 AM Paul Förster wrote: > Hi Stephen, > > > On 19. Jun, 2020, at 18:02, Stephen Frost wrote: > > When it comes to 'backup mode', it's actually the case that there can be > > multiple backups running concurrently because there isn't actually a > > single 'cluster wide

Re: Unable to init and run postgresql-12 on centos 8.2.2004

2020-06-21 Thread Adrian Klaver
On 6/21/20 7:53 AM, Vishal Agrawal wrote: Seenu, I don't see any journalctl entry other than the log that postmaster has been killed. (Jun 21 14:52:30 f9cbc3b08e20 systemd[1]: postgresql-12.service: Killing process 1096 (postmaster) with signal SIGKILL.) Any further suggestions on where to loo

Re: Unable to init and run postgresql-12 on centos 8.2.2004

2020-06-21 Thread Srinivasa T N
On Sun, Jun 21, 2020, 8:23 PM Vishal Agrawal wrote: > Seenu, I don't see any journalctl entry other than the log that postmaster > has been killed. (Jun 21 14:52:30 f9cbc3b08e20 systemd[1]: > postgresql-12.service: Killing process 1096 (postmaster) with signal > SIGKILL.) > Any further suggestion

Re: The backup API and general purpose backup software

2020-06-21 Thread Peter J. Holzer
On 2020-06-21 10:32:16 -0500, Ron wrote: > On 6/21/20 8:28 AM, Peter J. Holzer wrote: > > To make a full backup with the "new" (non-exclusive) API, a software > > must do the following > > > > 1. open a connection to the database > > > > 2. invoke pg_start_backup('label', false, false) in the con

Re: The backup API and general purpose backup software

2020-06-21 Thread Ron
Peter, I don't understand that last step "5. copy the result from the previous step to the backup medium."  It seems to be a duplication of "3. copy the contents of the data directory to the backup medium". On 6/21/20 8:28 AM, Peter J. Holzer wrote: This is inspired by the thread with the su

Re: Unable to init and run postgresql-12 on centos 8.2.2004

2020-06-21 Thread Vishal Agrawal
Seenu, I don't see any journalctl entry other than the log that postmaster has been killed. (Jun 21 14:52:30 f9cbc3b08e20 systemd[1]: postgresql-12.service: Killing process 1096 (postmaster) with signal SIGKILL.) Any further suggestions on where to look ? It does seem to work with systemd-239-18 (

The backup API and general purpose backup software

2020-06-21 Thread Peter J. Holzer
This is inspired by the thread with the subject "Something else about Redo Logs disappearing", but since that thread is already quite long, since I have lost track what exactly "Peter"'s problem is and since his somewhat belligerent tone makes it unappealing to reread the whole thread I'll attempt

Definition of REPEATABLE READ

2020-06-21 Thread Peter J. Holzer
I've read http://jepsen.io/analyses/postgresql-12.3 which reports a problem in PostgreSQL's SERIALIZABLE isolation leven (which has since been fixed) and also shows an example of a violation of what they consider to be the correct definition of REPEATABLE READ. Specifically: T1: r 190 [1 2] |

Re: Unable to init and run postgresql-12 on centos 8.2.2004

2020-06-21 Thread Srinivasa T N
On Sun, Jun 21, 2020, 8:57 AM Vishal Agrawal wrote: > Hello, > > I'm trying to install postgresql 12 on CentOS 8.2 as following - > > First I run docker container on the host - > # docker run --privileged -dit --name pgdg centos:8.2.2004 /sbin/init > > Then inside the container, I run the comman