Re: Three commit tips

2023-11-02 Thread Ashutosh Bapat
On Thu, Nov 2, 2023 at 8:52 PM Bruce Momjian wrote: > > Third, I have come up with the following shell script to test for proper > pgindentation, which I run automatically before commit: > > # >

Re: A recent message added to pg_upgade

2023-11-02 Thread Peter Smith
On Fri, Nov 3, 2023 at 1:11 PM Amit Kapila wrote: > > On Thu, Nov 2, 2023 at 2:36 PM Amit Kapila wrote: > > > > On Thu, Nov 2, 2023 at 11:32 AM Michael Paquier wrote: > > > > > > On Thu, Nov 02, 2023 at 02:32:07PM +1100, Peter Smith wrote: > > > > On Thu, Nov 2, 2023 at 2:25 PM Peter Smith >

Re: Moving forward with TDE [PATCH v3]

2023-11-02 Thread Andres Freund
Hi, On 2023-10-31 16:23:17 -0500, David Christensen wrote: > The patches are as follows: > > 0001 - doc updates > 0002 - Basic key management and cipher support > 0003 - Backend-related changes to support heap encryption > 0004 - modifications to bin tools and programs to manage key rotation and

Re: Tab completion regression test failed on illumos

2023-11-02 Thread Japin Li
On Fri, 03 Nov 2023 at 10:03, Thomas Munro wrote: > On Fri, Nov 3, 2023 at 2:22 PM Thomas Munro wrote: >> On Fri, Nov 3, 2023 at 3:42 AM Japin Li wrote: >> > I think this might be a bug comes from Illumos pseudo-tty. I can reproduce >> > this by using pseudo-tty on Illumos. >> >> I don't know

Re: A recent message added to pg_upgade

2023-11-02 Thread Amit Kapila
On Thu, Nov 2, 2023 at 2:36 PM Amit Kapila wrote: > > On Thu, Nov 2, 2023 at 11:32 AM Michael Paquier wrote: > > > > On Thu, Nov 02, 2023 at 02:32:07PM +1100, Peter Smith wrote: > > > On Thu, Nov 2, 2023 at 2:25 PM Peter Smith wrote: > > >> Checking this patch yesterday prompted me to create a

Re: Tab completion regression test failed on illumos

2023-11-02 Thread Thomas Munro
On Fri, Nov 3, 2023 at 2:22 PM Thomas Munro wrote: > On Fri, Nov 3, 2023 at 3:42 AM Japin Li wrote: > > I think this might be a bug comes from Illumos pseudo-tty. I can reproduce > > this by using pseudo-tty on Illumos. > > I don't know but my guess is that this has to do with termios defaults >

Re: Possible typo in nodeAgg.c

2023-11-02 Thread David Rowley
On Fri, 3 Nov 2023 at 13:49, Bruce Momjian wrote: > > On Fri, Oct 16, 2020 at 09:03:52AM +, Hou, Zhijie wrote: > > /* > >* Don't set the limit below 3/4 of hash_mem. In that case, we are at > > the > >* minimum number of partitions, so we aren't going to dramatically >

Re: Tab completion regression test failed on illumos

2023-11-02 Thread Thomas Munro
On Fri, Nov 3, 2023 at 3:42 AM Japin Li wrote: > On Thu, 02 Nov 2023 at 22:23, Tom Lane wrote: > > Japin Li writes: > >> It seems the 'SEL\t' is converted to 'SEL ' which is "SEL" with 5 > >> spaces. > > > > That would be plausible if readline were disabled, or otherwise > > not

Re: Three commit tips

2023-11-02 Thread Bruce Momjian
On Thu, Nov 2, 2023 at 11:07:19AM -0500, Nathan Bossart wrote: > On Thu, Nov 02, 2023 at 11:22:38AM -0400, Bruce Momjian wrote: > > First, I have been hesitant to ascribe others as patch authors if I > > heavily modified a doc patch because I didn't want them blamed for any > > mistakes I made.

Re: Possible typo in nodeAgg.c

2023-11-02 Thread Bruce Momjian
On Fri, Oct 16, 2020 at 09:03:52AM +, Hou, Zhijie wrote: > Hi > > In /src/backend/executor/nodeAgg.c > > I found the following comment still use work mem, > Since hash_mem has been introduced, Is it more accurate to use hash_mem here ? > > @@ -1827,7 +1827,7 @@ hash_agg_set_limits(double

Re: Why is DEFAULT_FDW_TUPLE_COST so insanely low?

2023-11-02 Thread David Rowley
On Fri, 3 Nov 2023 at 01:02, Richard Guo wrote: > It seems that the test is still not stable on 32-bit machines even after > 4b14e18714. I see the following plan diff on cfbot [1]. I recreated that locally this time. Seems there's still flexibility to push or not push down the sort and the

Re: Pre-proposal: unicode normalized text

2023-11-02 Thread Nico Williams
On Wed, Oct 04, 2023 at 01:15:03PM -0700, Jeff Davis wrote: > > The fact that there are multiple types of normalization and multiple > > notions of equality doesn't make this easier. And then there's text that isn't normalized to any of them. > NFC is really the only one that makes sense. Yes.

Re: Pre-proposal: unicode normalized text

2023-11-02 Thread Nico Williams
On Tue, Oct 17, 2023 at 05:07:40PM +0200, Daniel Verite wrote: > > * Add a per-database option to enforce only storing assigned unicode > > code points. > > There's a problem in the fact that the set of assigned code points is > expanding with every Unicode release, which happens about every

Re: Pre-proposal: unicode normalized text

2023-11-02 Thread Nico Williams
On Wed, Oct 04, 2023 at 01:16:22PM -0400, Robert Haas wrote: > There's a very popular commercial database where, or so I have been > led to believe, any byte sequence at all is accepted when you try to > put values into the database. [...] In other circles we call this "just-use-8". ZFS, for

Re: Pre-proposal: unicode normalized text

2023-11-02 Thread Nico Williams
On Fri, Oct 06, 2023 at 02:37:06PM -0400, Robert Haas wrote: > > Sure, because TEXT in PG doesn't have codeset+encoding as part of it -- > > it's whatever the database's encoding is. Collation can and should be a > > porperty of a column, since for Unicode it wouldn't be reasonable to > > make

Re: Remove distprep

2023-11-02 Thread Andres Freund
On 2023-11-01 16:39:24 -0400, Peter Eisentraut wrote: > > OTOH, it seems somewhat unlikely that maintainer-clean is utilized much in > > extensions. I see it in things like postgis, but that has it's own configure > > etc, even though it also invokes pgxs. > > I thought about this. I don't think

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-11-02 Thread Tomas Vondra
On 11/2/23 22:33, Matthias van de Meent wrote: > On Thu, 2 Nov 2023 at 22:25, Tomas Vondra > wrote: >> >> >> >> On 11/2/23 21:02, Matthias van de Meent wrote: >>> On Thu, 2 Nov 2023 at 20:32, Tomas Vondra >>> wrote: On 11/2/23 20:09, stepan rutz wrote: > db1=# explain (analyze,

Re: Pre-proposal: unicode normalized text

2023-11-02 Thread Thomas Munro
bowerbird and hammerkop didn't like commit a02b37fc. They're still using the old 3rd build system that is not tested by CI. It's due for removal in the 17 cycle IIUC but in the meantime I guess the new codegen script needs to be invoked by something under src/tools/msvc? varlena.obj : error

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-11-02 Thread Matthias van de Meent
On Thu, 2 Nov 2023 at 22:25, Tomas Vondra wrote: > > > > On 11/2/23 21:02, Matthias van de Meent wrote: > > On Thu, 2 Nov 2023 at 20:32, Tomas Vondra > > wrote: > >> On 11/2/23 20:09, stepan rutz wrote: > >>> db1=# explain (analyze, serialize) select * from test; > >>>

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-11-02 Thread Tomas Vondra
On 11/2/23 21:02, Matthias van de Meent wrote: > On Thu, 2 Nov 2023 at 20:32, Tomas Vondra > wrote: >> On 11/2/23 20:09, stepan rutz wrote: >>> db1=# explain (analyze, serialize) select * from test; >>> QUERY PLAN >>>

Re: Moving forward with TDE [PATCH v3]

2023-11-02 Thread Matthias van de Meent
On Tue, 31 Oct 2023 at 22:23, David Christensen wrote: > > Greetings, > > I am including an updated version of this patch series; it has been rebased > onto 6ec62b7799 and reworked somewhat. > > The patches are as follows: > > 0001 - doc updates > 0002 - Basic key management and cipher support >

Re: Add new option 'all' to pg_stat_reset_shared()

2023-11-02 Thread Matthias van de Meent
On Thu, 2 Nov 2023 at 20:26, Bharath Rupireddy wrote: > > On Wed, Nov 1, 2023 at 4:24 AM Michael Paquier wrote: > > > > On Tue, Oct 31, 2023 at 04:26:18PM +0900, torikoshia wrote: > > > Yes, calling pg_stat_reset_shared() for all stats types can do what I > > > wanted > > > to do. > > > But

Re: "box" type description

2023-11-02 Thread Bruce Momjian
On Thu, Nov 2, 2023 at 05:28:20PM +0900, Kyotaro Horiguchi wrote: > Thank you for continuing this. The additional changes looks > fine. > > Upon reviewing the table again in this line, further potential > improvements and issues have been found. For example: > > character, varchar: don't follow

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-11-02 Thread Matthias van de Meent
On Thu, 2 Nov 2023 at 20:32, Tomas Vondra wrote: > On 11/2/23 20:09, stepan rutz wrote: > > db1=# explain (analyze, serialize) select * from test; > > QUERY PLAN > >

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-11-02 Thread stepan rutz
Hi Thomas, indeed by doing less the code also becomes trivial and ExplainPropertyInteger can be used as a oneliner. My intention was to actually get the realistic payload-bytes from the wire-protocol counted by the serialization option. I am also adding the protocol bits and the length of the

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-11-02 Thread Tomas Vondra
On 11/2/23 20:09, stepan rutz wrote: > Hi Thomas, > > you are right of course. Thanks! > > I have attached a new version of the patch that supports the syntax like > suggested. The previous patch was insonsistent in style indeed. > > explain (analyze, serialize) > > and > > explain

Re: Add new option 'all' to pg_stat_reset_shared()

2023-11-02 Thread Bharath Rupireddy
On Wed, Nov 1, 2023 at 4:24 AM Michael Paquier wrote: > > On Tue, Oct 31, 2023 at 04:26:18PM +0900, torikoshia wrote: > > Yes, calling pg_stat_reset_shared() for all stats types can do what I wanted > > to do. > > But calling it with 6 different parameters seems tiresome and I thought it > >

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-11-02 Thread stepan rutz
Hi Thomas, you are right of course. Thanks! I have attached a new version of the patch that supports the syntax like suggested. The previous patch was insonsistent in style indeed. explain (analyze, serialize) and explain (analyze, serialize binary) That doesn't make too much of a

Re: Including Doxyfile and Meson script for docs into main source tree

2023-11-02 Thread John Morris
>On the patch itself I'm somewhat unconvinced that it is a good idea or >long-term maintainable to actually have a kinda random copy of the >configuration file(!) of an external software (doxygen in this) Rather than copying the Doxyfile, we could just publish the non-default values. As a mostly

Re: Simplify xlogreader.c with XLogRec* macros

2023-11-02 Thread Bharath Rupireddy
On Tue, Oct 31, 2023 at 4:12 PM 邱宇航 wrote: > > > > > I thought these can also be rewrite to: > > > > if (!XLogRecHasBlockRef(record, block_id)) > > Oops, I missed that. New version is attached. +1. Indeed a reasonable change. The attached v2 patch LGTM. -- Bharath Rupireddy PostgreSQL

Re: Fix search_path for all maintenance commands

2023-11-02 Thread Jeff Davis
On Tue, 2023-10-31 at 13:16 -0400, Isaac Morland wrote: > Perhaps the search_path for running a maintenance command should be > the search_path set for the table owner (ALTER ROLE … SET search_path > …)? That's an interesting idea; I hadn't considered that, or at least not very deeply. I feel

Re: Atomic ops for unlogged LSN

2023-11-02 Thread Bharath Rupireddy
On Thu, Nov 2, 2023 at 9:10 AM Nathan Bossart wrote: > > On Wed, Nov 01, 2023 at 09:15:20PM +, John Morris wrote: > > This is a rebased version . Even though I labelled it “v3”, there should be > > no changes from “v2”. > > Thanks. I think this is almost ready, but I have to harp on the >

Re: Postgres picks suboptimal index after building of an extended statistics

2023-11-02 Thread Tomas Vondra
On 9/25/23 06:30, Andrey Lepikhov wrote: > ... > I can't stop thinking about this issue. It is bizarre when Postgres > chooses a non-unique index if a unique index gives us proof of minimum > scan. That's true, but no one implemented this heuristics. So the "proof of minimum scan" is merely

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-11-02 Thread Tomas Vondra
Hi, On 9/15/23 22:09, stepan rutz wrote: > Hi, > > please see a revised version yesterday's mail. The patch attached now > provides the following: > > EXPLAIN(ANALYZE,SERIALIZE) > > and > > EXPLAIN(ANALYZE,SERIALIZEBINARY) > I haven't looked at the patch in detail yet, but this option name

Tab completion for CREATE TABLE ... AS

2023-11-02 Thread Gilles Darold
Hi, Look like the tab completion for CREATE TABLE ... AS is not proposed. gilles=# CREATE TABLE test ( OF    PARTITION OF  The attached patch fix that and also propose the further completion after the AS keyword. gilles=# CREATE TABLE test ( AS   

Re: Improve WALRead() to suck data directly from WAL buffers when possible

2023-11-02 Thread Bharath Rupireddy
On Sat, Oct 28, 2023 at 2:22 AM Jeff Davis wrote: > > I think I see what you are saying: WALRead() is at a lower level than > the XLogReaderRoutine callbacks, because it's used by the .page_read > callbacks. > > That makes sense, but my first interpretation was that WALRead() is > above the

Re: [HACKERS] Allow INSTEAD OF DELETE triggers to modify the tuple for RETURNING

2023-11-02 Thread Marko Tiikkaja
On Thu, Nov 2, 2023 at 12:24 PM Shlok Kyal wrote: > I went through the CFbot and found that docs build run is giving some > error (link: https://cirrus-ci.com/task/5712582359646208): > > Just wanted to make sure you are aware of the issue. I am now. Thanks! :-) Will try to keep an eye on the

Re: Three commit tips

2023-11-02 Thread Nathan Bossart
On Thu, Nov 02, 2023 at 11:22:38AM -0400, Bruce Momjian wrote: > First, I have been hesitant to ascribe others as patch authors if I > heavily modified a doc patch because I didn't want them blamed for any > mistakes I made. However, I also want to give them credit, so I decided > I would

Re: Don't pass NULL pointer to strcmp().

2023-11-02 Thread Tom Lane
Looking closer, I realized that my proposed change in RestoreGUCState is unnecessary, because guc_free() is already permissive about being passed a NULL. That leaves us with one live bug in get_explain_guc_options, two probably-unreachable hazards in check_GUC_init and

Three commit tips

2023-11-02 Thread Bruce Momjian
I have three suggestions on committing that I thought would be helpful to the hacker audience. First, I have been hesitant to ascribe others as patch authors if I heavily modified a doc patch because I didn't want them blamed for any mistakes I made. However, I also want to give them credit, so

Re: Tab completion regression test failed on illumos

2023-11-02 Thread Japin Li
On Thu, 02 Nov 2023 at 22:23, Tom Lane wrote: > Japin Li writes: >> It seems the 'SEL\t' is converted to 'SEL ' which is "SEL" with 5 spaces. > > That would be plausible if readline were disabled, or otherwise > not functioning. > I think this might be a bug comes from Illumos pseudo-tty.

Re: CRC32C Parallel Computation Optimization on ARM

2023-11-02 Thread Nathan Bossart
On Thu, Nov 02, 2023 at 06:17:20AM +, Xiang Gao wrote: > After reading the discussion, I understand that in order to avoid performance > regression in some instances, we need to try our best to avoid runtime checks. > I don't know if I understand it correctly. The idea is that we don't want

Re: Tab completion regression test failed on illumos

2023-11-02 Thread Tom Lane
Japin Li writes: > It seems the 'SEL\t' is converted to 'SEL ' which is "SEL" with 5 spaces. That would be plausible if readline were disabled, or otherwise not functioning. regards, tom lane

Re: BUG #18167: cannot create partitioned tables when default_tablespace is set

2023-11-02 Thread Marius RAICU
Hello Alvaro, all, I have done some research regarding this bug. Basically, we forbid the creation of partitioned tables and indexes if a default_tablespace is specified in postgresql.conf. In tablespace.c, the comment says: "Don't allow specifying that when creating a partitioned table,

Re: Extract numeric filed in JSONB more effectively

2023-11-02 Thread John Naylor
On Wed, Nov 1, 2023 at 9:18 AM Chapman Flack wrote: > So, it would not have been my choice to assign RfC status before getting to a > resolution on that. It's up to the reviewer (here Chapman), not the author, to decide whether to set it to RfC. I've set the status to "needs review".

Re: Document efficient self-joins / UPDATE LIMIT techniques.

2023-11-02 Thread Laurenz Albe
On Tue, 2023-10-31 at 14:12 -0400, Corey Huinker wrote: > > > > About the SELECT example: > > - > > > > That example belongs to UPDATE, I'd say, because that is the main > > operation. > > I'm iffy on that suggestion. A big part of putting it in SELECT was the fact >

Re: Explicitly skip TAP tests under Meson if disabled

2023-11-02 Thread Peter Eisentraut
On 30.10.23 10:12, Tom Lane wrote: +1 for counting such tests as "skipped" in the summary. -1 for emitting a message per skipped test. If I'm intentionally not running those tests, that would be very annoying noise, and potentially would obscure messages I actually need to see. In my usage,

Re: Statistics Import and Export

2023-11-02 Thread Tomas Vondra
On 11/2/23 06:01, Corey Huinker wrote: > > > Maybe I just don't understand, but I'm pretty sure ANALYZE does not > derive index stats from column stats. It actually builds them from the > row sample. > > > That is correct, my error. >   > > > > * now support extended

Re: Incorrect file reference in comment in procarray.c

2023-11-02 Thread Daniel Gustafsson
> On 2 Nov 2023, at 13:40, Etsuro Fujita wrote: > Attached is a small patch for that: s/heapam_visibility.c/snapmgr.c/. No objections to the patch, the change is correct. However, with git grep and ctags and other ways of discovery I wonder if we're not better off avoiding such references to

Incorrect file reference in comment in procarray.c

2023-11-02 Thread Etsuro Fujita
Hi, While working on something else, I noticed $SUBJECT: commit b7eda3e0e moved XidInMVCCSnapshot() from tqual.c into snapmgr.c, but follow-up commit c91560def updated this reference incorrectly: @@ -1498,7 +1498,7 @@ GetMaxSnapshotSubxidCount(void) * information may not be available. If we

Re: Force the old transactions logs cleanup even if checkpoint is skipped

2023-11-02 Thread Shlok Kyal
Hi, I went through the Cfbot and saw that some test are failing for it (link: https://cirrus-ci.com/task/4631357628874752): test: postgresql:recovery / recovery/019_replslot_limit # test failed --- stderr --- #

Re: Why is DEFAULT_FDW_TUPLE_COST so insanely low?

2023-11-02 Thread Richard Guo
On Thu, Nov 2, 2023 at 3:19 PM David Rowley wrote: > I'm not yet seeing any failures in the buildfarm, so don't really want > to push a fix for this one if there are going to be a few more > unstable ones to fix. I may just hold off a while to see. It seems that the test is still not stable

Commitfest 2023-11 has started

2023-11-02 Thread John Naylor
Any new patches will now need to be submitted to the January commitfest. (Normally we'd give advance notice of that change, but we're a bit behind this time.) I have started going through the patch entries looking for out-of-date statuses and filling in missing author fields. Currently we're at:

Re: pg_upgrade and logical replication

2023-11-02 Thread Amit Kapila
On Thu, Nov 2, 2023 at 3:41 PM vignesh C wrote: > > I have slightly modified it now and also made it consistent with the > replication slot upgrade, but I was not sure if we need to add > anything more. Let me know if anything else needs to be added. I will > add it. > I think it is important

Re: Support run-time partition pruning for hash join

2023-11-02 Thread Richard Guo
On Tue, Aug 29, 2023 at 6:41 PM Richard Guo wrote: > So it seems that the new costing logic is quite crude and tends to be > very conservative, but it can help avoid the large overhead in the worst > cases. I think this might be a good start to push this patch forward. > > Any thoughts or

Re: [HACKERS] Allow INSTEAD OF DELETE triggers to modify the tuple for RETURNING

2023-11-02 Thread Shlok Kyal
Hi, On Thu, 19 Oct 2023 at 16:35, Marko Tiikkaja wrote: > > Hi, > > Thank you for the feedback. > > Apparently it took me six years, but I've attached the latest version > of the patch which I believe addresses all issues. I'll add it to the > open commitfest. > > > .m I went through the CFbot

Re: pg_upgrade and logical replication

2023-11-02 Thread vignesh C
On Wed, 1 Nov 2023 at 10:13, Michael Paquier wrote: > > On Mon, Oct 30, 2023 at 03:05:09PM +0530, vignesh C wrote: > > The patch was not applying because of recent commits. Here is a > > rebased version of the patches. > > + * We don't want the launcher to run while upgrading because it may

[PATCH] Add additional extended protocol commands to psql: \parse and \bindx

2023-11-02 Thread Anthonin Bonnefoy
Hi all! Currently, only unnamed prepared statements are supported by psql with the \bind command and it's not possible to create or use named prepared statements through extended protocol. This patch introduces 2 additional commands: \parse and \bindx. \parse allows us to issue a Parse message

Re: Including Doxyfile and Meson script for docs into main source tree

2023-11-02 Thread Stefan Kaltenbrunner
Hi Bohdan! I will see about making th ecurrent doxygen configuration available as a download again in the next few days. Not sure whether there is an additional actionable item yet as far as the project from John Morris goes wrt. the postgresql.org sysadmin team. The patch proposed is an

Re: Making aggregate deserialization (and WAL receive) functions slightly faster

2023-11-02 Thread Amit Kapila
On Tue, Oct 31, 2023 at 2:25 AM David Rowley wrote: > > On Mon, 30 Oct 2023 at 23:48, Amit Kapila wrote: > > > > On Fri, Oct 27, 2023 at 3:23 AM David Rowley wrote: > > > * parallel.c in HandleParallelMessages(): > > > * applyparallelworker.c in HandleParallelApplyMessages(): > > > > Both the

Re: Commitfest manager November 2023

2023-11-02 Thread John Naylor
On Thu, Nov 2, 2023 at 4:35 PM Daniel Gustafsson wrote: > > > On 1 Nov 2023, at 07:33, John Naylor wrote: > > > > I didn't see any recent mentions in the archives, so I'll volunteer to > > be CF manager for 2023-11. > > You probably need some extra admin privileges on your account for accessing

Re: Commitfest manager November 2023

2023-11-02 Thread Daniel Gustafsson
> On 1 Nov 2023, at 07:33, John Naylor wrote: > > I didn't see any recent mentions in the archives, so I'll volunteer to > be CF manager for 2023-11. You probably need some extra admin privileges on your account for accessing the CFM functionality, in the meantime I've switched the 202311 CF to

Re: A recent message added to pg_upgade

2023-11-02 Thread Amit Kapila
On Thu, Nov 2, 2023 at 11:32 AM Michael Paquier wrote: > > On Thu, Nov 02, 2023 at 02:32:07PM +1100, Peter Smith wrote: > > On Thu, Nov 2, 2023 at 2:25 PM Peter Smith wrote: > >> Checking this patch yesterday prompted me to create a new thread > >> questioning the inconsistencies of the "GUC

Re: psql not responding to SIGINT upon db reconnection

2023-11-02 Thread Shlok Kyal
Hi, > That sounds like a much better solution. Attached you will find a v4 > that implements your suggestion. Please let me know if there is > something that I missed. I can confirm that the patch works. > > $ ./build/src/bin/psql/psql -h pg.neon.tech > NOTICE: Welcome to Neon! >

Re: Don't pass NULL pointer to strcmp().

2023-11-02 Thread Xing Guo
Hi, Seems that Tom's patch cannot be applied to the current master branch. I just re-generate the patch for others to play with. On 11/2/23, Nathan Bossart wrote: > On Wed, Nov 01, 2023 at 10:39:04PM -0400, Tom Lane wrote: >> Nathan Bossart writes: >>> What if we disallowed NULL string GUCs in

Re: pg_upgrade and logical replication

2023-11-02 Thread Amit Kapila
On Wed, Nov 1, 2023 at 8:33 AM Michael Paquier wrote: > > On Fri, Oct 27, 2023 at 05:05:39PM +0530, Amit Kapila wrote: > > I was analyzing this part and it seems it could be tricky to upgrade > > in FINISHEDCOPY state. Because the system would expect that subscriber > > would know the old

Re: "box" type description

2023-11-02 Thread Kyotaro Horiguchi
At Wed, 1 Nov 2023 11:36:01 -0400, Bruce Momjian wrote in > On Wed, Mar 31, 2021 at 01:43:47PM +0200, Christoph Berg wrote: > > Re: Kyotaro Horiguchi > > I like that because it points to the "point" syntax so users can > > figure out how to spell a box. > > I liked Horiguchi-san's patch from

Re: Why is DEFAULT_FDW_TUPLE_COST so insanely low?

2023-11-02 Thread Michael Paquier
On Thu, Nov 02, 2023 at 08:19:35PM +1300, David Rowley wrote: > No tests were introduced. Is this the only existing one that's > unstable as far as you saw? That seems to be the only one. > I'm not yet seeing any failures in the buildfarm, so don't really want > to push a fix for this one if

Re: Why is DEFAULT_FDW_TUPLE_COST so insanely low?

2023-11-02 Thread David Rowley
On Thu, 2 Nov 2023 at 18:39, Michael Paquier wrote: > The CI has been telling me that the plans of the tests introduced by > this patch are not that stable when building with 32b. See: > diff -U3 /tmp/cirrus-ci-build/contrib/postgres_fdw/expected/postgres_fdw.out >

Re: Tab completion regression test failed on illumos

2023-11-02 Thread Japin Li
On Thu, 02 Nov 2023 at 13:42, Japin Li wrote: > On Thu, 02 Nov 2023 at 13:01, Noah Misch wrote: >> On Wed, Nov 01, 2023 at 03:19:39PM +0800, Japin Li wrote: >>> I try to run regression test on illumos, the 010_tab_completion will >>> failed because of timeout. >> >>> Any suggestions? Thanks

make pg_ctl more friendly

2023-11-02 Thread Crisp Lee
Hi hackers: I got a basebackup using pg_basebackup -R. After that, I created a restore point named test on primary, and set recovery_target_name to test, recovery_target_action to shutdown in standby datadir. I got a failure startup message after 'pg_ctl start -D $standby_datadir'. I think it is

Re: Is this a problem in GenericXLogFinish()?

2023-11-02 Thread Amit Kapila
On Wed, Nov 1, 2023 at 12:54 PM Michael Paquier wrote: > > On Mon, Oct 30, 2023 at 03:54:39PM +0530, Amit Kapila wrote: > > On Sat, Oct 28, 2023 at 4:30 PM Michael Paquier wrote: > >> On Sat, Oct 28, 2023 at 03:45:13PM +0530, Amit Kapila wrote: > >> > Yes, we need it to exclude any concurrent

Re: Intermittent failure with t/003_logical_slots.pl test on windows

2023-11-02 Thread Kyotaro Horiguchi
At Tue, 31 Oct 2023 18:11:48 +0530, vignesh C wrote in > Few others are also facing this problem with similar code like in: > https://stackoverflow.com/questions/15882799/fgets-returning-error-for-file-returned-by-popen I'm inclined to believe that the pipe won't enter the EOF state until the

RE: CRC32C Parallel Computation Optimization on ARM

2023-11-02 Thread Xiang Gao
On Tue, 31 Oct 2023 15:48:21PM -0500, Nathan Bossart wrote: >> Thanks. I went ahead and split this prerequisite part out to a separate >> thread [0] since it's sort-of unrelated to your proposal here. It's not >> really a prerequisite, but I do think it will simplify things a bit. >Per the

Re: speed up a logical replica setup

2023-11-02 Thread Ashutosh Bapat
On Wed, Nov 1, 2023 at 7:10 PM Ashutosh Bapat wrote: > > I noticed some differences between this and a similar utility > https://github.com/2ndQuadrant/pglogical/blob/REL2_x_STABLE/pglogical_create_subscriber.c. > I will be reviewing these differences next to see if we are missing > anything

Re: A recent message added to pg_upgade

2023-11-02 Thread Michael Paquier
On Thu, Nov 02, 2023 at 02:32:07PM +1100, Peter Smith wrote: > On Thu, Nov 2, 2023 at 2:25 PM Peter Smith wrote: >> Checking this patch yesterday prompted me to create a new thread >> questioning the inconsistencies of the "GUC names in messages". In >> that thread, Tom Lane replied and gave some