Re: Why is Postgres only using 8 cores for partitioned count? [Parallel Append]

2021-02-13 Thread Seamus Abshere
hi, I've traced this back to the formula for Parallel Append workers - log2(partitions). The comment from Robert says: (src/backend/optimizer/path/allpaths.c) /* * If the use of parallel append is permitted, always request at least * log2(# of

ODBC message "server closed the connection unexpectedly" when accessing a PG/11.3 DB

2021-02-13 Thread David Gauthier
We are using MS-Access as a front-end to work with tables served by a Postrges/11.3 DB on linux as the MS-Access backend through ODBC. I have my users install on their Windows laptops a PG driver for ODBC from here... https://www.postgresql.org/ftp/odbc/versions/msi and selecting

Re: Insert into on conflict, data size upto 3 billion records

2021-02-13 Thread Ron
On 2/12/21 12:46 PM, Karthik Kumar Kondamudi wrote: Hi, I'm looking for suggestions on how I can improve the performance of the below merge statement, we have a batch process that batch load the data into the _batch tables using Postgres and the task is to update the main target tables if

certs in connection string

2021-02-13 Thread Rob Sargent
I’m confused, as usual, about using a cert in a connection string. I wish to connect form a “middle ware” piece to PG on be half of various clients. Does each client need a corresponding cert/key or is the certification intended to say the sending machine is who it says it is (thereby needing

Why is Postgres only using 8 cores for partitioned count?

2021-02-13 Thread Seamus Abshere
hi, How can I convince Postgres to use more than 8 cores? I've got an r6gd.16xlarge with 64 vCpus and 512gb RAM running Postgres 13.1 on Ubuntu 20.04. CREATE TABLE tbl ( [...] ) PARTITION BY HASH (address_key); It has 64 partitions - e.g. FOR VALUES WITH (modulus 64, remainder 0) etc.

Insert into on conflict, data size upto 3 billion records

2021-02-13 Thread Karthik Kumar Kondamudi
Hi, I'm looking for suggestions on how I can improve the performance of the below merge statement, we have a batch process that batch load the data into the _batch tables using Postgres and the task is to update the main target tables if the record exists else into it, sometime these batch table

[LDAPS] Test connection user with ldaps server

2021-02-13 Thread João Gaspar
Hi all, I have a PostgreSQL 13.1 (RHEL 8.3) Server and I want to configure the pg_hba.conf with a remote ldaps server. My steps: I create a PostgreSQL user1 with superuser role to test the ldaps authentication method in the terminal client. Modify the pg_hba.conf to: hostall

Re: Segmentation fault on startup

2021-02-13 Thread Helmut Bender
Hi, a little follow-up to this case... since redis didn't work correctly, too, I looked around for a solution for that, too. It seems that the alpine image 3.13 for arm7 is broken at the moment... see the answer here: