Re: Windows CFBot is broken because ecpg dec_test.c error

2025-01-28 Thread Andres Freund
Hi, On January 28, 2025 7:13:16 AM EST, Jelte Fennema-Nio wrote: >Since about ~11 hours ago the ecpg test is consistently failing on >Window with this error[1]: > >> Could not open file >> C:/cirrus/build/src/interfaces/ecpg/test/compat_informix/dec_test.c for >> reading > >I took a quick loo

Re: Convert sepgsql tests to TAP

2025-01-28 Thread Dagfinn Ilmari Mannsåker
Peter Eisentraut writes: > On 27.08.24 10:12, Peter Eisentraut wrote: >> Here is a new patch version. >> I simplified the uses of sed and awk inside the Perl script.  I also >> fixed "make installcheck".  I noticed that meson installs sepgsql.sql >> into the wrong directory, so that's fixed also

Re: Interrupts vs signals

2025-01-28 Thread Andres Freund
Hi, On 2024-12-02 16:39:28 +0200, Heikki Linnakangas wrote: > From eff8de11fbfea4e2aadce9c1d71452b0f5a1b80b Mon Sep 17 00:00:00 2001 > From: Heikki Linnakangas > Date: Mon, 2 Dec 2024 15:51:54 +0200 > Subject: [PATCH v5 1/4] Replace Latches with Interrupts Your email has only three attachements

Re: Compression of bigger WAL records

2025-01-28 Thread Fujii Masao
On 2025/01/22 3:24, Andrey M. Borodin wrote: On 12 Jan 2025, at 17:43, Andrey M. Borodin wrote: I attach a prototype patch. Here's v2, now it passes all the tests with wal_debug. I like the idea of WAL compression more. With the current approach, each backend needs to allocate memory

Re: Eagerly scan all-visible pages to amortize aggressive vacuum

2025-01-28 Thread Robert Treat
On Mon, Jan 27, 2025 at 12:45 PM Melanie Plageman wrote: > > On Fri, Jan 24, 2025 at 3:43 PM Robert Haas wrote: > > > > On Fri, Jan 24, 2025 at 3:02 PM Melanie Plageman > > wrote: > attached v11 uses a fraction with this name. It follows the > conventions and I find it descriptive. > > Changing

Re: EDB Installer initcluster script changes - review requested

2025-01-28 Thread Vladlen Popolitov
Manika Singhal писал(а) 2025-01-28 16:42: Hi, "C:\Users\Administrator\AppData\Local\Temp\2\postgresql_installer_cd746730f8" "C:\Program Files\PostgreSQL\17" "C:\Program Files\PostgreSQL\17\data" 5432 "Turkish,Türkiye" 0 Hi! Your example has not-ascii characters in command line. It is not

Re: XMLDocument (SQL/XML X030)

2025-01-28 Thread Jim Jones
Hi Robert On 28.01.25 05:54, Robert Treat wrote: > Was playing around with the patch and was thinking about this wording: > "The xmldocument function returns the input argument > unchanged... and is provided for compatibility." > > When I run an example similar to the db2 example you gave earlier

Re: NOT ENFORCED constraint feature

2025-01-28 Thread Peter Eisentraut
On 20.01.25 17:53, Amul Sul wrote: Attached is a new set of patches. Please ignore patch 0001 here, which was posted separately [1] -- proposes allowing invalid foreign key constraints on partitioned tables. Patch 0002 refactors tryAttachPartitionForeignKey(), primarily needed by the new patch v9

Feature Request: Add AES-128-CFB Mode Support to pgcrypto

2025-01-28 Thread Vladyslav Nebozhyn
Dear PostgreSQL Development Team, I would like to request the addition of support for the *AES-128-CFB* mode in the pgcrypto extension. Currently, pgcrypto supports AES encryption modes like ECB and CBC, but it does not include CFB mode, which is essential for certain use cases. In managed enviro

Re: POC, WIP: OR-clause support for indexes

2025-01-28 Thread Andrei Lepikhov
On 1/28/25 11:36, Andrei Lepikhov wrote: On 1/27/25 16:50, Alexander Korotkov wrote: qsort(matches, n, sizeof(OrArgIndexMatch), or_arg_index_match_cmp); To fit an index, the order of elements in the target array of the `ScalarArrayOpExpr` may change compared to the initial list of OR expressio

Re: Introduce XID age and inactive timeout based replication slot invalidation

2025-01-28 Thread Amit Kapila
On Mon, Dec 30, 2024 at 11:05 AM Peter Smith wrote: > > I think we are often too quick to throw out perfectly good tests. > Citing that some similar GUCs don't do testing as a reason to skip > them just seems to me like an example of "two wrongs don't make a > right". > > There is a third option.

Re: Timeline issue if StartupXLOG() is interrupted right before end-of-recovery record is done

2025-01-28 Thread Andrey Borodin
> On 21 Jan 2025, at 16:47, Roman Eskin wrote: > >> >> Persisting recovery signal file for some _timeout_ seems super dangerous to >> me. In distributed systems every extra _timeout_ is a source of complexity, >> uncertainty and despair. > > The approach is not about persisting the signal

Re: Introduce XID age and inactive timeout based replication slot invalidation

2025-01-28 Thread Nisha Moond
On Mon, Jan 27, 2025 at 4:20 PM Amit Kapila wrote: > > On Mon, Jan 27, 2025 at 11:00 AM Nisha Moond wrote: > > > > I discussed the above comments further with Peter off-list, and here > > are the v63 patches with the following changes: > > patch-001: The Assert and related comments have been upd

Re: Interrupts vs signals

2025-01-28 Thread Andres Freund
Hi, I was chatting with Heikki about this patch and he mentioned that he recalls a patch that did some work to unify the signal replacement, procsignal.h and CHECK_FOR_INTERRUPTS(). Thomas, that was probably from you? Do you have a pointer, if so? It does seem like we're going to have to do some

Re: Eagerly scan all-visible pages to amortize aggressive vacuum

2025-01-28 Thread Masahiko Sawada
On Mon, Jan 27, 2025 at 1:22 PM Melanie Plageman wrote: > > On Mon, Jan 27, 2025 at 12:52 PM Masahiko Sawada > wrote: > > > > Thank you for updating the patch. I was reviewing the v10 patch and > > had some comments. I believe these comments are still valid for v11, > > but please ignore them if

Re: Interrupts vs signals

2025-01-28 Thread Thomas Munro
On Wed, Jan 29, 2025 at 10:15 AM Andres Freund wrote: > I was chatting with Heikki about this patch and he mentioned that he recalls a > patch that did some work to unify the signal replacement, procsignal.h and > CHECK_FOR_INTERRUPTS(). Thomas, that was probably from you? Do you have a > pointer,

Re: Non-text mode for pg_dumpall

2025-01-28 Thread Mahendra Singh Thalor
On Fri, 24 Jan 2025 at 20:50, jian he wrote: > > On Thu, Jan 23, 2025 at 6:35 PM Mahendra Singh Thalor > wrote: > > hi. > After some tests and thinking about your reply, I admit that using > expand_dbname_patterns > in pg_restore will not work. > We need to do pattern matching against the map.dat

Re: Introduce XID age and inactive timeout based replication slot invalidation

2025-01-28 Thread Nisha Moond
On Tue, Jan 28, 2025 at 3:26 PM Amit Kapila wrote: > > On Mon, Dec 30, 2024 at 11:05 AM Peter Smith wrote: > > > > I think we are often too quick to throw out perfectly good tests. > > Citing that some similar GUCs don't do testing as a reason to skip > > them just seems to me like an example of

Re: Feature Request: Add AES-128-CFB Mode Support to pgcrypto

2025-01-28 Thread Daniel Gustafsson
> On 28 Jan 2025, at 11:46, Vladyslav Nebozhyn wrote: > • Ease of Implementation: OpenSSL already provides a straightforward API > for AES-128-CFB, so adding it to pgcrypto should require only a few lines of > code. IIRC we already support CFB for Blowfish so I think it would be quite easy

Windows CFBot is broken because ecpg dec_test.c error

2025-01-28 Thread Jelte Fennema-Nio
Since about ~11 hours ago the ecpg test is consistently failing on Window with this error[1]: > Could not open file > C:/cirrus/build/src/interfaces/ecpg/test/compat_informix/dec_test.c for > reading I took a quick look at possible causes but couldn't find a clear winner. My current guess is th

RE: POC: enable logical decoding when wal_level = 'replica' without a server restart

2025-01-28 Thread Hayato Kuroda (Fujitsu)
Dear Sawada-san, I love the idea. I've roughly tested the patch and worked on my env. Here are initial comments... 1. xloglevelworker.c ``` +#include "replication/logicalxlog.h" ``` xloglevelworker.c includes replication/logicalxlog.h, but it does not exist. The line had to be removed to build a

Re: Virtual generated columns

2025-01-28 Thread Shlok Kyal
On Mon, 27 Jan 2025 at 15:29, Peter Eisentraut wrote: > > On 15.01.25 20:37, Peter Eisentraut wrote: > > On 15.01.25 15:12, Dean Rasheed wrote: > >> On Tue, 14 Jan 2025 at 13:37, Peter Eisentraut > >> wrote: > >>> > >>> Here is a new patch with that fixed and also a few > >>> tweaks suggested by

Improve error handling for invalid slots and ensure a same 'inactive_since' time for inactive slots

2025-01-28 Thread Nisha Moond
Hello Hackers, (CC people involved in the earlier discussion) While implementing slot invalidation based on inactive(idle) timeout (see [1]), several general optimizations and improvements were identified. This thread is a spin-off from [1], intended to address these optimizations separately from

Re: Add RESPECT/IGNORE NULLS and FROM FIRST/LAST options

2025-01-28 Thread Tatsuo Ishii
>> +/* >> + * ignorenulls_getfuncarginframe >> + * For IGNORE NULLS, get the next nonnull value in the frame, moving >> forward or backward >> + * until we find a value or reach the frame's end. >> + */ >> +static Datum >> +ignorenulls_getfuncarginframe(WindowObject winobj, int argno, >> >> Do you

Re: Pgoutput not capturing the generated columns

2025-01-28 Thread Amit Kapila
On Thu, Jan 23, 2025 at 9:58 AM vignesh C wrote: > I have pushed the remaining part of this patch. Now, we can review the proposed documentation part. I feel we don't need the Examples sub-section for this part of the docs. The behavior is quite clear from the "Behavior Summary" sub-section tabl

Re: SQL Property Graph Queries (SQL/PGQ)

2025-01-28 Thread Junwang Zhao
On Tue, Jan 28, 2025 at 7:03 PM Ashutosh Bapat wrote: > > On Tue, Jan 28, 2025 at 4:31 PM Junwang Zhao wrote: > > > > On Tue, Jan 28, 2025 at 6:17 PM Ashutosh Bapat > > wrote: > > > > > > On Fri, Jan 24, 2025 at 9:16 PM Junwang Zhao wrote: > > > > > > > > I figured out it's because I have `-DWR

Re: NOT ENFORCED constraint feature

2025-01-28 Thread Amul Sul
On Tue, Jan 28, 2025 at 4:01 PM Peter Eisentraut wrote: > > On 20.01.25 17:53, Amul Sul wrote: > >> Attached is a new set of patches. Please ignore patch 0001 here, which > >> was posted separately [1] -- proposes allowing invalid foreign key > >> constraints on partitioned tables. Patch 0002 refa

Re: SQL Property Graph Queries (SQL/PGQ)

2025-01-28 Thread Junwang Zhao
On Tue, Jan 28, 2025 at 6:17 PM Ashutosh Bapat wrote: > > On Fri, Jan 24, 2025 at 9:16 PM Junwang Zhao wrote: > > > > I figured out it's because I have `-DWRITE_READ_PARSE_PLAN_TREES` this > > option, > > removing this option clears the warning, but I'm not sure if this is a > > hidden issue. >

Re: SQL Property Graph Queries (SQL/PGQ)

2025-01-28 Thread Ashutosh Bapat
On Tue, Jan 28, 2025 at 4:31 PM Junwang Zhao wrote: > > On Tue, Jan 28, 2025 at 6:17 PM Ashutosh Bapat > wrote: > > > > On Fri, Jan 24, 2025 at 9:16 PM Junwang Zhao wrote: > > > > > > I figured out it's because I have `-DWRITE_READ_PARSE_PLAN_TREES` this > > > option, > > > removing this option

Re: Modern SHA2- based password hashes for pgcrypto

2025-01-28 Thread Bernd Helmle
Am Freitag, dem 24.01.2025 um 19:06 +0100 schrieb Alvaro Herrera: > > So we behave exactly the same way as px_crypt_md5(): It stops after > > the > > first '$' after the magic byte preamble. For shacrypt, this could > > be > > the next '$' after the closing one of the non-mandatory 'rounds' > > opt

Re: Skip collecting decoded changes of already-aborted transactions

2025-01-28 Thread Masahiko Sawada
On Mon, Jan 27, 2025 at 7:01 PM Peter Smith wrote: > > On Tue, Jan 28, 2025 at 4:31 AM Masahiko Sawada wrote: > > > > On Sun, Jan 26, 2025 at 10:26 PM Amit Kapila > > wrote: > > > > > > On Fri, Jan 24, 2025 at 12:38 AM Masahiko Sawada > > > wrote: > > > > > > > > On Wed, Jan 22, 2025 at 7:35 

Proposal to make temporary change of memory context a bit safer

2025-01-28 Thread Antonin Houska
When dealing with a tricky bug in an extension [1] last week, I found out that one should not rely on a PG core functions to leave CurrentMemoryContext always unchanged. While the change of memory context makes sense for functions involved in error handling or transaction control, it's less obvious

Re: [PATCH] Improve code coverage of network address functions

2025-01-28 Thread Aleksander Alekseev
Hi, > The correct version is as follows. > > make installcheck-world: tested, passed > Implements feature: tested, passed > Spec compliant: tested, passed > Documentation: tested, passed Thanks for your feedback! > About the tests pushed to the SSL test suite, I'm +-0. 003_sslinfo.pl > is a bit

Re: Logging parallel worker draught

2025-01-28 Thread Sami Imseih
> I feel that observability is important, and I don't understand why we > would want to have the information for only a portion of the > functionality's usage (even if it's the most important). In my opinion, the requirement for parallel usage in the utility statement is different. In fact, I thin

Re: [PATCH] Improve code coverage of network address functions

2025-01-28 Thread Michael Paquier
On Tue, Jan 28, 2025 at 01:33:58PM +0300, Aleksander Alekseev wrote: > Thanks for your feedback! set_masklen(inet) could be covered for the -1 case, and it was missing in the patch submitted. For consistency with the other queries, moving the call of abbrev(inet) with the existing abbrev(cidr) ma

Re: Proposal: Filter irrelevant change before reassemble transactions during logical decoding

2025-01-28 Thread Peter Smith
Hi Ajin, Some review comments for patch v12-0001. == Commit message 1. Track transactions which have snapshot changes with a new flag RBTXN_HAS_SNAPSHOT_CHANGES ~ The commit message only says *what* it does, but not *why* this patch even exists. TBH, I don't understand why this patch need

Re: Make COPY format extendable: Extract COPY TO format implementations

2025-01-28 Thread Masahiko Sawada
On Thu, Jan 23, 2025 at 1:12 AM Sutou Kouhei wrote: > > Hi, > > I noticed that the last patch set (v27) can't be applied to > the current master. I've rebased on the current master and > created v28 patch set. No code change. Thank you for updating the patch! While 0001 and 0002 look good to me

Re: Pgoutput not capturing the generated columns

2025-01-28 Thread Peter Smith
On Tue, Jan 28, 2025 at 7:59 PM Amit Kapila wrote: > > On Thu, Jan 23, 2025 at 9:58 AM vignesh C wrote: > > > > I have pushed the remaining part of this patch. Now, we can review the > proposed documentation part. > > I feel we don't need the Examples sub-section for this part of the > docs. The

Re: Adding skip scan (including MDAM style range skip scan) to nbtree

2025-01-28 Thread Peter Geoghegan
On Fri, Jan 24, 2025 at 10:38 PM Peter Geoghegan wrote: > I can reproduce this. However, it should be noted that the regression > completely goes away if I make one small change to your test case: all > I need to do is make sure that the CREATE INDEX happens *before* > inserting any rows into the

Re: Having problems generating a code coverage report

2025-01-28 Thread Michael Paquier
On Wed, Jan 15, 2025 at 07:51:39PM -0500, Peter Geoghegan wrote: > I was able to get the lcov git master branch's tip to produce a > Postgres coverage report (same compiler version and OS as before). > Unfortunately, I had to use an even grottier incantation to get this > to work: > > make -s cove

preptlist.c can insert unprocessed expression trees

2025-01-28 Thread Tom Lane
I happened across a not-great behavior in expand_insert_targetlist. If a column is omitted in an INSERT, and there's no column default, the code generates a NULL Const to be inserted. Furthermore, if the column is of a domain type, we wrap the Const in CoerceToDomain, so as to throw a run-time erro

Fwd: Why we need to check for local buffers in BufferIsExclusiveLocked and BufferIsDirty?

2025-01-28 Thread Srinath Reddy
On Sun, Jan 26, 2025 at 9:49 PM Tom Lane wrote: > Srinath Reddy writes: > > as suggested did the changes and attached the patch for the same. > > Uh ... what in the world is the point of changing > BufferIsExclusiveLocked's signature? > > as suggested did not change the BufferIsExclusiveLocked's

Re: POC: enable logical decoding when wal_level = 'replica' without a server restart

2025-01-28 Thread Masahiko Sawada
On Tue, Jan 28, 2025 at 1:39 AM Hayato Kuroda (Fujitsu) wrote: > > Dear Sawada-san, > > I love the idea. I've roughly tested the patch and worked on my env. > Here are initial comments... Thank you for looking at the patch! > > 1. xloglevelworker.c > ``` > +#include "replication/logicalxlog.h" >

Re: Improve error handling for invalid slots and ensure a same 'inactive_since' time for inactive slots

2025-01-28 Thread Peter Smith
Hi Nisha, Some review comments for patch v1-0001. == src/backend/replication/logical/slotsync.c ReplSlotSyncWorkerMain: 1. + /* Use same inactive_since time for all slots */ + now = GetCurrentTimestamp(); + LWLockAcquire(ReplicationSlotControlLock, LW_SHARED); for (int i = 0; i < max_r

Re: Improve error handling for invalid slots and ensure a same 'inactive_since' time for inactive slots

2025-01-28 Thread Peter Smith
Hi Nisha, Some review comments for the patch v1-0002. == src/backend/replication/slot.c 1. + +/* + * Raise an error based on the slot's invalidation cause. + */ +static void +RaiseSlotInvalidationError(ReplicationSlot *slot) +{ + StringInfo err_detail = makeStringInfo(); + + Assert(slot->dat

Re: Pgoutput not capturing the generated columns

2025-01-28 Thread Amit Kapila
On Wed, Jan 29, 2025 at 6:03 AM Peter Smith wrote: > > On Tue, Jan 28, 2025 at 7:59 PM Amit Kapila wrote: > > > > On Thu, Jan 23, 2025 at 9:58 AM vignesh C wrote: > > > > > > > I have pushed the remaining part of this patch. Now, we can review the > > proposed documentation part. > > > > I feel

Re: Extended Statistics set/restore/clear functions.

2025-01-28 Thread jian he
hi. I reviewed 0001 only. in src/backend/statistics/mvdistinct.c no need #include "nodes/pg_list.h" since src/include/statistics/statistics.h sub level include "nodes/pg_list.h" no need #include "utils/palloc.h" sicne #include "postgres.h" already included it. select '[{"6, -32768,,": -11}]':

Extensibility proposal - transaction start callbacks

2025-01-28 Thread Alastair Turner
I see that various comments in xact.c talk about start and end callbacks, but only end seems to be implemented at the moment. I also can't find any discussion about start of transaction callbacks in the mailing list archives. Would a patch in this direction be of interest? I was looking at this ba

Re: Sample rate added to pg_stat_statements

2025-01-28 Thread Sami Imseih
> All the changes mentioned above are included in the v13 patch. Since the > patch status is 'Ready for Committer,' I believe it is now better for > upstream inclusion, with improved details in tests and documentation. Do > you have any further suggestions? I am not quite clear on the sample_1.out

Re: Increase of maintenance_work_mem limit in 64-bit Windows

2025-01-28 Thread Vladlen Popolitov
Tom Lane писал(а) 2025-01-24 06:13: v.popoli...@postgrespro.ru writes: [ v2-0001-work_mem_vars-limit-increased-in-64bit-Windows.patch ] Hi Tom, Thank you for the interest to the patch and comments. Comment A. Is there a reason not to do them all the same way? I'd suggest "(Size) 1024", losi

Re: XMLDocument (SQL/XML X030)

2025-01-28 Thread Chapman Flack
On 01/28/25 03:14, Jim Jones wrote: > I'd say the difference is due to how the two systems handle the XML data > type and unquoted identifiers in general, rather than a difference in > the behaviour of the function itself. I'd go further and say it's entirely down to how the two systems handle un

Re: Increase of maintenance_work_mem limit in 64-bit Windows

2025-01-28 Thread Vladlen Popolitov
Tom Lane писал(а) 2025-01-24 06:13: v.popoli...@postgrespro.ru writes: [ v2-0001-work_mem_vars-limit-increased-in-64bit-Windows.patch ] Hi Tom, Thank you for the interest to the patch and comments. Comment A. Is there a reason not to do them all the same way? I'd suggest "(Size) 1024", losi

Re: NOT ENFORCED constraint feature

2025-01-28 Thread Peter Eisentraut
On 28.01.25 11:58, Amul Sul wrote: This behavior is not correct: +-- Changing it back to ENFORCED will leave the constraint in the NOT VALID state +ALTER TABLE FKTABLE ALTER CONSTRAINT fktable_ftest1_fkey ENFORCED; +-- Which needs to be explicitly validated. +ALTER TABLE FKTABLE VALIDATE CONSTRA

Re: Sample rate added to pg_stat_statements

2025-01-28 Thread Ilia Evdokimov
On 28.01.2025 20:21, Sami Imseih wrote: All the changes mentioned above are included in the v13 patch. Since the patch status is 'Ready for Committer,' I believe it is now better for upstream inclusion, with improved details in tests and documentation. Do you have any further suggestions? I am

Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility.

2025-01-28 Thread Shubham Khanna
Hi all, I propose adding the --clean-publisher-objects option to the pg_createsubscriber utility. As discussed in [1], this feature ensures a clean and streamlined setup of logical replication by removing stale or unnecessary publications from the subscriber node. These publications, replicated du

RE: Adding a '--clean-publisher-objects' option to 'pg_createsubscriber' utility.

2025-01-28 Thread Hayato Kuroda (Fujitsu)
Dear Shubham, > I propose adding the --clean-publisher-objects option to the > pg_createsubscriber utility. As discussed in [1], this feature ensures > a clean and streamlined setup of logical replication by removing stale > or unnecessary publications from the subscriber node. These > publication

Restrict publishing of partitioned table with a foreign table as partition

2025-01-28 Thread Shlok Kyal
Hi, As part of a discussion in [1], I am starting this thread to address the issue reported for foreign tables. Logical replication of foreign tables is not supported, and we throw an error in this case. But when we create a publication on a partitioned table that has a foreign table as a partiti

Re: Introduce XID age and inactive timeout based replication slot invalidation

2025-01-28 Thread vignesh C
On Tue, 28 Jan 2025 at 17:28, Nisha Moond wrote: > > On Tue, Jan 28, 2025 at 3:26 PM Amit Kapila wrote: > > > > On Mon, Dec 30, 2024 at 11:05 AM Peter Smith wrote: > > > > > > I think we are often too quick to throw out perfectly good tests. > > > Citing that some similar GUCs don't do testing a

CREATE PUBLICATION and foreign partitions

2025-01-28 Thread Sergey Tatarintsev
Hello all! Currently, according to logical replication restriction sections at [1], "Attempts to replicate ... foreign tables, will result in an error." But we don't care about partitioned tables with foreign partitions. As we discussed here https://www.postgresql.org/message-id/CAA4eK1Lhh4S

Re: create subscription with (origin = none, copy_data = on)

2025-01-28 Thread Sergey Tatarintsev
23.01.2025 09:46, Amit Kapila пишет: On Wed, Jan 22, 2025 at 9:44 PM Sergey Tatarintsev wrote: 22.01.2025 18:41, Shlok Kyal пишет: Also we still don't care about foreign partitions (as I wrote earlier we should raise an ERROR for such publications). I think dealing with this separately from

Re: SQL:2011 application time

2025-01-28 Thread Paul Jungwirth
On 1/27/25 07:47, Peter Eisentraut wrote: > On 24.01.25 03:55, Tom Lane wrote: >> I've now run an exhaustive search through the last three months of >> buildfarm runs, and found just one additional instance of the same >> failure. The three matches are >> >> https://buildfarm.postgresql.org/cgi-

Re: Proposal for Updating CRC32C with AVX-512 Algorithm.

2025-01-28 Thread John Naylor
On Sat, Jan 25, 2025 at 3:35 AM Devulapalli, Raghuveer wrote: > > #1 - The choice of AVX-512. There is no such thing as a "CRC instruction > > operating > > on 8 bytes", and the proposed algorithm is a multistep process using > > carryless > > multiplication and requiring at least 256 bytes of

Re: Enhance 'pg_createsubscriber' to retrieve databases automatically when no database is provided.

2025-01-28 Thread Amit Kapila
On Tue, Jan 28, 2025 at 12:01 PM Ashutosh Bapat wrote: > > If we want to stick to --database= supporting a pattern looks better > than just a single special pattern *. > This sounds reasonable to me as well. Note that the interaction of other parameters like --replication-slot is not yet discusse

Comment cleanup - it's vs its

2025-01-28 Thread Jacob Brazeal
I noticed a few incorrect usages of it's vs its and decided to search systematically for any mistakes. Overall, we use it right more than 99% of the time but there were still about 20 mistakes. Jacob v1-its.patch Description: Binary data

Re: Introduce XID age and inactive timeout based replication slot invalidation

2025-01-28 Thread Peter Smith
On Tue, Jan 28, 2025 at 10:58 PM Nisha Moond wrote: > Please find the attached v64 patches. The changes in this version > w.r.t. older patch v63 are as - > - The changes from the v63-0001 patch have been moved to a separate thread > [1]. > - The v63-0002 patch has been split into two parts in v64

Re: Change GUC hashtable to use simplehash?

2025-01-28 Thread John Naylor
On Thu, Jan 23, 2025 at 8:52 AM Anton A. Melnikov wrote: > > Hi! > > On 22.01.2025 11:37, John Naylor wrote: > > On Fri, Jan 17, 2025 at 4:50 PM John Naylor wrote: > >> > >> It would be a lot more readable to revert the offending commit > >> instead, since its predecessor had a much simpler bytew

Re: Introduce XID age and inactive timeout based replication slot invalidation

2025-01-28 Thread vignesh C
On Tue, 28 Jan 2025 at 17:28, Nisha Moond wrote: > > Please find the attached v64 patches. The changes in this version > w.r.t. older patch v63 are as - > - The changes from the v63-0001 patch have been moved to a separate thread > [1]. > - The v63-0002 patch has been split into two parts in v64:

Re: Comment cleanup - it's vs its

2025-01-28 Thread John Naylor
On Wed, Jan 29, 2025 at 1:46 PM Jacob Brazeal wrote: > > I noticed a few incorrect usages of it's vs its and decided to search > systematically for any mistakes. Overall, we use it right more than 99% of > the time but there were still about 20 mistakes. LGTM, except maybe this one: - * try re

Re: Comment cleanup - it's vs its

2025-01-28 Thread John Naylor
On Wed, Jan 29, 2025 at 1:46 PM Jacob Brazeal wrote: > > I noticed a few incorrect usages of it's vs its and decided to search > systematically for any mistakes. Overall, we use it right more than 99% of > the time but there were still about 20 mistakes. I just noticed this, too: -# DROP DATAB

Re: per backend WAL statistics

2025-01-28 Thread Rahila Syed
Hi, Thank you for the patchset. Having per-backend WAL statistics, in addition to cluster-wide ones, is useful. I had a few comments while looking at v6-0003-* patch. + /* + * This could be an auxiliary process but these do not report backend + * statistics due to pgstat_tracks_backend_bktype(),

Re: Comment cleanup - it's vs its

2025-01-28 Thread John Naylor
On Wed, Jan 29, 2025 at 2:26 PM Jacob Brazeal wrote: > > > I just noticed this, too: > > > > -# DROP DATABASE should drops it's slots, including active slots. > > +# DROP DATABASE should drops its slots, including active slots. > > > > "should drop" > > Ah, good catch. Fixed in v3. (Note: You for

Re: Extended Statistics set/restore/clear functions.

2025-01-28 Thread jian he
hi. select '{"1, 0B100101":"NaN"}'::pg_ndistinct; pg_ndistinct {"1, 37": -2147483648} (1 row) this is not what we expected? For the VALUE part of pg_ndistinct, float8 has 3 special values: inf, -inf, NaN. For the key part of pg_ndistinct, see example. select '{"1,