Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-30 Thread Daniel Westermann (DWE)
>>Greg Sabino Mullane writes: >> I'd echo the suggestion to strace this. You can use the pre_auth_delay >> setting to help facilitate that. See: >IIUC, the delays are rare and unpredictable, so that strace'ing seems >unlikely to be practical. >If rebuilding from source is feasible, you could ins

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-30 Thread Daniel Westermann (DWE)
>> What we've found out so far is, that this only happens if we have a >> localhost(or any other hostname) line before the line matching our >> connection, something like this: >> host    replication x localhost    md5 >> host    all x xx.xx.xx.0/24

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-29 Thread Daniel Westermann (DWE)
>>Maybe check that "files" is the first mechanism for hosts lookups in >>nsswitch.conf. >afaik dig doesn't follow the same name resolution path as glibc. I don't know. Is there a way to test the glibc way easily? > a connection received should mean resolution was done, right ? am i missing > s

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-29 Thread Daniel Westermann (DWE)
>It might be worth searching our mailing list archives. I did that, but was not able to find anything useful related to this. Regards Daniel

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-29 Thread Daniel Westermann (DWE)
>Maybe check that "files" is the first mechanism for hosts lookups in >nsswitch.conf. It is

Re: Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-29 Thread Daniel Westermann (DWE)
> 1) host=xx.xx.xx.100 = localhost? No, it is not > 2) In postgresql.conf what is listen_addresses set to? * > 3) What are the settings in /etc/hosts? Standard Ubuntu settings: 127.0.0.1 localhost 127.0.1.1 abc cde # The following lines are desirable for IPv6 capable hosts

Delays between "connection received" and "connection authenticated" because of localhost entries in hba

2024-10-29 Thread Daniel Westermann (DWE)
Delays between "connection received" and "connection authenticated" because of localhost entries in hba Hi, we're facing a strange issue with delays between "connection received" and "connection authenticated". # select version(); v

pg_stat_activity.query_id <-> pg_stat_statements.queryid

2024-02-15 Thread Daniel Westermann (DWE)
Hi, quick question: What would be the cases for a query_id in pg_stat_activity not showing up in pg_stat_statements.queryid assuming pg_stat_statements.max is not yet reached? Regards Daniel

Re: Corruption or wrong results with 14.10?

2023-11-23 Thread Daniel Westermann (DWE)
>smrdbprod=# select count(*) from smrr_mgr.formula where crart_id = 2150718 >and chemin = '@'; > count >--- > 1 >(1 row) > >smrdbprod=# select crart_id, chemin, count(*) from smrr_mgr.formula group by >crart_id, chemin having count(*) > 1; > crart_id | chemin | count >--+

Corruption or wrong results with 14.10?

2023-11-23 Thread Daniel Westermann (DWE)
Hi, I have a very strange behavior on 14.10. smrdbprod=# select version(); version -- PostgreSQL 14.10 on x86_64-pc-linux-gnu, compiled by gcc

Re: Understanding pg_stat_io.evictions

2023-07-31 Thread Daniel Westermann (DWE)
>> postgres=# insert into t select i, md5(i::text), md5(i::text), md5(i::text) >> from generate_series(1,100) i; >.. >> client backend | 207 | normal >> client backend | 0 | vacuum >> >> Shouldn't these evictions show up under context blkwrite? The description in >> docs is:

Understanding pg_stat_io.evictions

2023-07-28 Thread Daniel Westermann (DWE)
Hi, I am trying to understand the evictions statistic in pg_stat_io. I know what evictions are, so this is not the question. Given this: postgres=# select version(); version --

oid2name: Why table and not relation?

2022-03-03 Thread Daniel Westermann (DWE)
Hi, given this simple example: postgres=# create table t ( a int ); CREATE TABLE postgres=# create index i on t(a); CREATE INDEX postgres=# select pg_relation_filepath('i'); pg_relation_filepath -- base/5/16388 (1 row) postgres=# \! oid2name --oid 16388 >From database "post

Re: WAL Archiving and base backup

2022-01-14 Thread Daniel Westermann (DWE)
>On 1/14/22 1:40 PM, Stephen Frost wrote: >snip] >> We shouldn't be trying to provide >> documentation around how to write a tool like pgbackrest, we should, >> instead, have a tool like pgbackrest in core with its own documentation, >> as most other RDBMS's do. >That's an excellent solution to th

Re: Why does the OID jump by 3 when creating tables?

2021-10-30 Thread Daniel Westermann (DWE)
>>Le sam. 30 oct. 2021 à 10:55, Daniel Westermann (DWE) >> a écrit : >>Hi all, >>as I could not find the reason in the source code, can someone tell me why >>the OID counter jumps by 3 between two create table >>statements? >>postgres=# create tab

Why does the OID jump by 3 when creating tables?

2021-10-30 Thread Daniel Westermann (DWE)
Hi all, as I could not find the reason in the source code, can someone tell me why the OID counter jumps by 3 between two create table statements? postgres=# create table t1 ( a int ); CREATE TABLE postgres=# create table t2 ( a int ); CREATE TABLE postgres=# select oid,relname from pg_class whe

Re: Behavior change in PostgreSQL 14Beta3 or bug?

2021-09-06 Thread Daniel Westermann (DWE)
>It's a non-hot update, and so there is a single dead index tuple. You're >seeing the new optimization that makes vacuum skip indexes in >marginal cases. >Try running vacuum with index cleanup = on. Thank you, Peter

Behavior change in PostgreSQL 14Beta3 or bug?

2021-09-06 Thread Daniel Westermann (DWE)
Hi, while playing with PostgreSQL 14 Beta 3 I noticed a change when it comes to the visibility map and vacuum. Test case: gbench=# create table t1 ( a int, b text ) with ( fillfactor = 100 ); CREATE TABLE pgbench=# insert into t1 select a, a::text from generate_series(1,100) a; INSERT 0 100

Re: Upgrading from 11 to 13

2021-03-30 Thread Daniel Westermann (DWE)
>On Tue, Mar 30, 2021 at 08:10:08AM -0700, Adrian Klaver wrote: >> On 3/30/21 8:06 AM, Bruce Momjian wrote: >> > What other software needs to upgrade through all intermediate versions? >> >> Many variations of OS'es, though not all. One of the benefits of Ubuntu is >> that you can jump from x.LTS

Re: Upgrading from 11 to 13

2021-03-30 Thread Daniel Westermann (DWE)
>On Tue, Mar 30, 2021 at 04:34:34PM +0200, Guillaume Lelarge wrote: >> Hi, >> >> Le mar. 30 mars 2021 à 16:10, Susan Joseph a écrit  >> : >> >> I am currently using PostgreSQL 11.2 and would like to try and upgrade it >> to the latest version 13.  Can I go straight from 11 to 13 or do I

Re: Compiler warnings on Debian 10

2021-02-11 Thread Daniel Westermann (DWE)
>> Nothing special. Configure and make log attached. The same procedure works >> fine on my local Debian 10.7. >Quite odd.  The configure output clearly shows that it thought gnu_printf >is fine: >checking for printf format archetype... gnu_printf >Possibly the corresponding section of config.l

Compiler warnings on Debian 10

2021-02-10 Thread Daniel Westermann (DWE)
HI, I was wondering if someone already has seen these warnings on Debian 10 (PostgreSQL 13.1): ../../../../src/include/port.h:176:70: warning: 'format' attribute argument not supported: gnu_printf [-Wignored-attributes] extern int pg_snprintf(char *str, size_t count, const char *fmt,

Re: PG 13 trusted extensions and pg_available_extensions

2020-09-24 Thread Daniel Westermann (DWE)
On Thu, Sep 24, 2020 at 10:58 AM Michael Paquier wrote: >> >> On Wed, Sep 23, 2020 at 03:28:45PM +0000, Daniel Westermann (DWE) wrote: >> > I was playing a bit with trusted extensions and wondered if there is >> > a reason that the "trusted" flag is not ex

PG 13 trusted extensions and pg_available_extensions

2020-09-23 Thread Daniel Westermann (DWE)
Hi, I was playing a bit with trusted extensions and wondered if there is a reason that the "trusted" flag is not exposed in pg_available_extensions. I believe that information would be quite useful so one can easily identify extensions that can be installed as "normal" user. Regards Daniel

Re: Out of memory with "create extension postgis"

2020-08-03 Thread Daniel Westermann (DWE)
>I am aware that the behavior is different from what we've seen last week but >this is how it looks today. >Anything we missed or did not do correct? Finally this can be re-produced quite easily by installing this extension: https://de.osdn.net/projects/pgstoreplans/downloads/72297/pg_store_plan

Re: Out of memory with "create extension postgis"

2020-08-03 Thread Daniel Westermann (DWE)
>> Here is a new one with bt at the end: >That's just showing the stack when the backend is idle waiting for input. >We need to capture the stack at the moment when the "out of memory" error >is reported (errfinish() should be the top of stack). Then I don't know what/how to do it. Here is a comp

Re: Out of memory with "create extension postgis"

2020-07-30 Thread Daniel Westermann (DWE)
From: Tom Lane Sent: Wednesday, July 29, 2020 17:05 To: Daniel Westermann (DWE) Cc: pgsql-general@lists.postgresql.org Subject: Re: Out of memory with "create extension postgis"   "Daniel Westermann (DWE)" writes: >> So this is what we got today. In the log file the

Re: Out of memory with "create extension postgis"

2020-07-29 Thread Daniel Westermann (DWE)
>>>> "Daniel Westermann (DWE)" writes: >>>>> The process eats all the available memory and finally dies: >>>>> # create extension postgis; >>>>> ERROR:  out of memory >>>>> DETAIL:  Failed on request of size 8265

Re: Out of memory with "create extension postgis"

2020-07-28 Thread Daniel Westermann (DWE)
>>> "Daniel Westermann (DWE)" writes: >>>> The process eats all the available memory and finally dies: >>>> # create extension postgis; >>>> ERROR: out of memory >>>> DETAIL: Failed on request of size 8265691 in memory

Re: Out of memory with "create extension postgis"

2020-07-28 Thread Daniel Westermann (DWE)
>"Daniel Westermann (DWE)" writes: >> we have a very strange behavior on PostgreSQL 12.3 when we try to create the >> extension postgis. Postgres and postgis have both been installed from >> packages: >> ... >> The process eats all the available mem

Out of memory with "create extension postgis"

2020-07-28 Thread Daniel Westermann (DWE)
Hi, we have a very strange behavior on PostgreSQL 12.3 when we try to create the extension postgis. Postgres and postgis have both been installed from packages: postgresql12-server-12.3-5PGDG postgis30_12-3.0.1-5.rhel7 The OS is RedHat 7.7. Creating other extensions works fine, we only see thi

Re: Temporary tablespaces on a RAM disk

2020-03-18 Thread Daniel Westermann (DWE)
>Laurenz Albe writes: >> On Tue, 2020-03-17 at 19:57 +0000, Daniel Westermann (DWE) wrote: >> >>> >> is someone using temporary tablespaces on a RAM disk ? Any experiences >>> >> with that? >>> >> I did some quick tests and checked

Re: Temporary tablespaces on a RAM disk

2020-03-17 Thread Daniel Westermann (DWE)
Hi Laurenz, >From: Laurenz Albe >Sent: Tuesday, March 17, 2020 20:50 >To: Daniel Westermann (DWE) ; >pgsql-general@lists.postgresql.org >Subject: Re: Temporary tablespaces on a RAM disk >On Tue, 2020-03-17 at 09:49 +, Daniel Westermann (DWE) wrote: >> is

Re: Temporary tablespaces on a RAM disk

2020-03-17 Thread Daniel Westermann (DWE)
>"Daniel Westermann (DWE)" writes: >>> People have asked about this before, so maybe it'd be an idea to make >>> an explicit concept of a temp tablespace that only accepts temp tables, >>> and do whatever is needful to make that robust. Bu

Re: Temporary tablespaces on a RAM disk

2020-03-17 Thread Daniel Westermann (DWE)
Ron writes: > On 3/17/20 12:19 PM, David G. Johnston wrote: >> There is a nice big bold warning callout in the documentation that covers >> this explicitly. >> https://www.postgresql.org/docs/12/manage-ag-tablespaces.html >>> Warning >>> Placing a tablespace on a temporary file system like a RAM

Re: Temporary tablespaces on a RAM disk

2020-03-17 Thread Daniel Westermann (DWE)
Daniel Westermann wrote: > is someone using temporary tablespaces on a RAM disk ? Any experiences with > that? > I did some quick tests and checked the archives but could not find any > information that either confirmed it is a bad idea nor the opposite. >Well, we point our "stats_temp_dir

Re: Temporary tablespaces on a RAM disk

2020-03-17 Thread Daniel Westermann (DWE)
On Tue, Mar 17, 2020 at 2:49 AM Daniel Westermann (DWE) mailto:daniel.westerm...@dbi-services.com>> wrote: is someone using temporary tablespaces on a RAM disk ? Any experiences with that? I did some quick tests and checked the archives but could not find any information that either con

Temporary tablespaces on a RAM disk

2020-03-17 Thread Daniel Westermann (DWE)
Hi, is someone using temporary tablespaces on a RAM disk ? Any experiences with that? I did some quick tests and checked the archives but could not find any information that either confirmed it is a bad idea nor the opposite. Thanks in advance Daniel

Re: POLL: Adding transaction status to default psql prompt

2020-02-06 Thread Daniel Westermann (DWE)
>On Thu, Feb 06, 2020 at 03:54:48AM +0100, Vik Fearing wrote: >> Please answer +1 if you want or don't mind seeing transaction status by >> default in psql or -1 if you would prefer to keep the current default. > >+1 +1 Daniel

Re: How to execute .sql file inside a postgres schema

2019-04-29 Thread Daniel Westermann (DWE)
>>I have a database name “kbdb” that is having a schema “kb” and I want to >>execute the test.sql file inside >>this schema, set schema 'your_schema'; Cheers, Daniel