Re: wal recycling problem

2023-10-08 Thread Christoph Moench-Tegeder
## Fabrice Chapuis (fabrice636...@gmail.com): > From a conceptual point of view I think that specific wals per subscription > should be used and stored in the pg_replslot folder in order to avoid > working directly on the wals of the instance. > What do you think about this proposal? I think

Re: wal recycling problem

2023-10-02 Thread Christoph Moench-Tegeder
Hi, ## Fabrice Chapuis (fabrice636...@gmail.com): > on the other hand there are 2 slots for logical replication which display > status extended. I don't understand why given that the confirmed_flush_lsn > field that is up to date. The restart_lsn remains frozen, for what reason? There you have

Re: wal recycling problem

2023-09-28 Thread Christoph Moench-Tegeder
## Fabrice Chapuis (fabrice636...@gmail.com): > We have a cluster of 2 members (1 primary and 1 standby) with Postgres > version 14.9 and 2 barman server, slots are only configured for barman, > barman is version 3.7. The obvious question here is: can both of those barmans keep up with your

Re: [question] multil-column range partition prune

2023-08-10 Thread Christoph Moench-Tegeder
## tender wang (tndrw...@gmail.com): > But I want to know why we don't prune when just have latter partition key > in whereClause. Start with the high level documentation https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-PARTITION where the 5th paragraph points you to

Re: Adding a pg_servername() function

2023-08-09 Thread Christoph Moench-Tegeder
## GF (phab...@gmail.com): > In the past I needed such a pg_servername() function because in a project I > was engaged on they needed to distribute "requests" directed to a in-house > management service running on network servers, and each one had a DB, so we > went with pglogical to be used as a

Re: Adding a pg_servername() function

2023-08-06 Thread Christoph Moench-Tegeder
Hi, ## Laetitia Avrot (laetitia.av...@gmail.com): > I understand your point and sure enough, my customer could set and use the > cluster_name for that purpose. I totally disagree with using > inet_server_addr() for that purpose as there are so many different network > settings with VIPs and so

Re: Adding a pg_servername() function

2023-08-03 Thread Christoph Moench-Tegeder
## Laetitia Avrot (laetitia.av...@gmail.com): > For my customer, their use case is to be able from an SQL client to double > check they're on the right host before doing things that could become a > production disaster. Why not use cluster_name for that? Even if it may not be relevant for their

Re: pg_upgrade from PG-14.5 to PG-15.1 failing due to non-existing function

2023-01-25 Thread Christoph Moench-Tegeder
## Dimos Stamatakis (dimos.stamata...@servicenow.com): > In our scenario we changed the permissions of this function in PG14.5 > (via an automated tool) and then pg_upgrade tries to change the > permissions in PG15.1 as well. Given that this function wasn't even documented and did nothing but

Re: locale -a missing on Alpine Linux?

2022-11-16 Thread Christoph Moench-Tegeder
## Peter Eisentraut (peter.eisentr...@enterprisedb.com): > First of all, is this a standard installation of this OS, or is perhaps > something incomplete, broken, or unusual about the current OS installation? Alpine uses musl libc, on which you need package musl-locales to get a

Re: index for inet column

2022-07-07 Thread Christoph Moench-Tegeder
## Zhihong Yu (z...@yugabyte.com): > I was able to create gin index on inet column in PG. > > GIN is good with points/elements in sets. Is gin a good index for inet > column ? > It seems gist index would be better. Why not use btree? The common operations are quite supported with that. (Common

Re: [PATCH] Prefer getenv("HOME") to find the UNIX home directory

2022-01-09 Thread Christoph Moench-Tegeder
## Tom Lane (t...@sss.pgh.pa.us): > Isn't that a flat out violation of POSIX 8.3 Other Environment Variables? > > HOME > The system shall initialize this variable at the time of login to > be a pathname of the user's home directory. See . > > To claim it's not, you have to

Re: [PATCH] Prefer getenv("HOME") to find the UNIX home directory

2022-01-09 Thread Christoph Moench-Tegeder
## Tom Lane (t...@sss.pgh.pa.us): > Given the POSIX requirements, it's basically impossible to believe > that there are interesting cases where $HOME isn't set. When I look at a random Debian with the usual PGDG packages, the postmaster process (and every backend) has a rather minimal

Re: [PROPOSAL] Make PSQLVAR on \getenv opitional

2021-12-28 Thread Christoph Moench-Tegeder
## Pavel Stehule (pavel.steh...@gmail.com): > it is not consistent with other \g* commands. Maybe a new statement \senv > ? But what is the use case? You can just press ^z and inside shell write > echo $xxx, and then fg That does not work: backgrounding psql will put you into your original

Re: How to disable the autovacuum ?

2021-05-31 Thread Christoph Moench-Tegeder
## Esteban Zimanyi (ezima...@ulb.ac.be): > Is there a step-by-step procedure specified somewhere? The first step is not to disable autovacuum... (why would you want to do that?). > For example, before launching the tests there is a load.sql file that loads > all the test tables. The file starts

Re: How to disable the autovacuum ?

2021-05-31 Thread Christoph Moench-Tegeder
## Esteban Zimanyi (ezima...@ulb.ac.be): > I have tried > alter system set autovacuum = off; > but it does not seem to work. Did you reload the configuration ("SELECT pg_reload_conf()" etc) after that? If not, that's your problem right there. Regards, Christoph -- Spare Space

Re: New 'pg' consolidated metacommand patch

2020-05-27 Thread Christoph Moench-Tegeder
## Magnus Hagander (mag...@hagander.net): > Ugh, yeah, please don't do that. Renaming them just to make it "look more > modern" helps nobody, really. Especially if the suggestion is people should > be using the shared-launcher binary anyway. Quick, let's invent a fancy name like "microcommand"

Re: psqlODBC development

2020-01-29 Thread Christoph Moench-Tegeder
## Robert Willis (rwil...@abinitio.com): > How do I go about this?Is there a specific-mailing list (other than > this one) for that purpose? https://odbc.postgresql.org/ "psqlODBC is developed and supported through the pgsql-o...@postgresql.org mailing list." Regards, Christoph -- Spare

Re: New feature proposal (trigger)

2020-01-24 Thread Christoph Moench-Tegeder
## Sergiu Velescu (sergiu.vele...@endava.com): > OnLogin/Logout. > I want to log/audit each attempt to login (successful and/or not). log_connections/log_disconnections > Who/how long was logged in DB (who logged in out of business hours > (maybe deny access)). Use PAM authentication. > Set

Re: Recognizing superuser in pg_hba.conf

2020-01-02 Thread Christoph Moench-Tegeder
## Stephen Frost (sfr...@snowman.net): > We already have a reserved namespace when it comes to roles, > specifically "pg_".. why invent something new like this '&' prefix when > we could just declare that 'pg_superusers' is a role to which all > superusers are members? Or something along those

Re: Improvement to psql's connection defaults

2019-12-17 Thread Christoph Moench-Tegeder
## Tomas Zubiri (m...@tomaszubiri.com): > We already established that a tcp connection was subpar in terms of > latency, we shall note then that a tcp connection is subpar in terms > of security. It's an entirely different thing, I'd argue. I'm not even convinced that an error message is a bad

Re: Improvement to psql's connection defaults

2019-12-16 Thread Christoph Moench-Tegeder
## Tomas Zubiri (m...@tomaszubiri.com): > The problem was that running the command psql without arguments There's an excellent manpage for psql, which can also be found online: https://www.postgresql.org/docs/current/app-psql.html In there you'll find a section "Connecting to a Database", with

Re: Monitoring disk space from within the server

2019-11-09 Thread Christoph Moench-Tegeder
## Michael Paquier (mich...@paquier.xyz): > Total bytes and free bytes looks like a good first cut. Have you > looked at the portability of statfs() on other BSD flavors and > Solaris? "The statfs() system call first appeared in 4.4BSD." (from the statfs(2) manpage on FreeBSD). struct statfs

Re: MSVC buildfarm critters are not running modules' TAP tests

2019-09-08 Thread Christoph Moench-Tegeder
## Tom Lane (t...@sss.pgh.pa.us): > I took a stab at fixing this, but lacking a Windows environment > to test in, I can't be sure if it works. The attached does kinda > sorta work if I run it in a Linux environment --- but I found that > system() doesn't automatically expand "t/*.pl" on Linux.

Re: Some thoughts on NFS

2019-02-19 Thread Christoph Moench-Tegeder
## Magnus Hagander (mag...@hagander.net): > You'd solve more > of that by having the middle layer speak "raw device" underneath and be > able to sit on top of things like iSCSI (yes, really). Back in ye olden days we called these middle layers "kernel" and "filesystem" and had that maintained

Re: COPY FROM WHEN condition

2018-10-11 Thread Christoph Moench-Tegeder
## Surafel Temesgen (surafel3...@gmail.com): > Currently we can not moves data from a file to a table based on some > condition on a certain column You can: COPY ( query ) TO 'filename'; There's even an example in the documentation: https://www.postgresql.org/docs/10/static/sql-copy.html "To

Re: Function for listing archive_status directory

2018-10-09 Thread 'Christoph Moench-Tegeder'
## Michael Paquier (mich...@paquier.xyz): > Thanks Iwata-san. I was just trying to apply the patch but it failed so > the new status is fine. On top of taking care of the rebase, please > make sure of the following: OK, that was an easy one. > - Calling pg_ls_dir_files() with missing_ok set

Re: Function for listing archive_status directory

2018-10-05 Thread 'Christoph Moench-Tegeder'
Hi, ## Iwata, Aya (iwata@jp.fujitsu.com): > I think it is convenient to be able to check the archive_status > directory contents information. > > I reviewed patch. It applies and passes regression test. Great, thanks! > All similar function are named pg_ls_***dir. It is clear these

Re: Function for listing archive_status directory

2018-10-01 Thread Christoph Moench-Tegeder
## Michael Paquier (mich...@paquier.xyz): > Okay, could you add this patch to the next commit fest? Here it is: > https://commitfest.postgresql.org/20/ And here's the patch: https://commitfest.postgresql.org/20/1813/ Regards, Christoph -- Spare Space

Function for listing archive_status directory

2018-09-30 Thread Christoph Moench-Tegeder
Hi, while setting up monitoring for a new PostgreSQL instance, I noticed that there's no build-in way for a pg_monitor role to check the contents of the archive_status directory. We got pg_ls_waldir() in 10, but that only lists pg_wal - not it's subdirectory. It seems listing the archive_status

Re: 65279 Invisible ASCII Character

2018-07-17 Thread Christoph Moench-Tegeder
## ramsiddu007 (ramsiddu...@gmail.com): > If i remove first character it's run. That first > character is invisible, I have checked that *ascii* value, it is *65279*. That's not an ASCII-value, ASCII has 8 bits at most. What you've got there is a UTF-16 Byte Order Mark: 65279 is 0xfeff (one of

Re: pg_rewind and postgresql.conf

2018-05-04 Thread Christoph Moench-Tegeder
## Tatsuo Ishii (is...@sraoss.co.jp): > Currently pg_rewind copies all files including postgresql.conf. It > would be nice if pg_rewind has an option to not copy > postgresql.conf. How about including a file outside the data directory with "local" settings? Like "include