Re: undetected deadlock in ALTER SUBSCRIPTION ... REFRESH PUBLICATION

2023-12-08 Thread Amit Kapila
On Fri, Dec 8, 2023 at 7:16 PM Shlok Kyal wrote: > > > Then let's go with the original patch only. BTW, it took almost the > > same time (105 wallclock secs) in my environment (CentOs VM) to run > > tests in src/test/subscription both with and without the patch. I took > > a median of five runs.

Re: remaining sql/json patches

2023-12-08 Thread jian he
Hi. function JsonPathExecResult comment needs to be refactored? since it changed a lot.

Re: Eager page freeze criteria clarification

2023-12-08 Thread Melanie Plageman
On Wed, Nov 8, 2023 at 9:23 PM Melanie Plageman wrote: > The next step is to devise different heuristics and measure their > efficacy. IMO, the goal of the algorithm it is to freeze pages in a > relation such that we drive early unfreezes/freezes -> 0 and pages > frozen/number of pages of a

How abnormal server shutdown could be detected by tests?

2023-12-08 Thread Alexander Lakhin
Hello hackers, While studying bug #18158, I've come to the conclusion that the existing testing infrastructure is unable to detect abnormal situations. of some kind. Just a simple example: With Assert(0) injected in walsender (say: sed "s/WalSndDone(send_data)/Assert(0)/" -i

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

2023-12-08 Thread Hayato Kuroda (Fujitsu)
Dear Junagn, Sutou-san, Basically I agree your point - improving a extendibility is good. (I remember that this theme was talked at Japan PostgreSQL conference) Below are my comments for your patch. 01. General Just to confirm - is it OK to partially implement APIs? E.g., only COPY TO is

Re: Bug in nbtree optimization to skip > operator comparisons (or < comparisons in backwards scans)

2023-12-08 Thread Peter Geoghegan
On Fri, Dec 8, 2023 at 10:46 AM Alexander Korotkov wrote: > > In your example "foo = 90" is satisfied by_bt_first(), but "foo > > > 99::int8" is not. I think this could be resolved by introducing a > > separate flag exactly distinguishing scan keys used for _bt_first(). > > I'm going to post the

Re: Streaming I/O, vectored I/O (WIP)

2023-12-08 Thread Thomas Munro
On Sat, Dec 9, 2023 at 7:25 AM Andres Freund wrote: > On 2023-11-30 13:01:46 +1300, Thomas Munro wrote: > > On Thu, Nov 30, 2023 at 12:16 PM Heikki Linnakangas wrote: > > > Maybe we should bite the bullet and always retry short writes in > > > FileWriteV(). Is that what you meant by "handling

Re: backtrace_on_internal_error

2023-12-08 Thread Tom Lane
Andres Freund writes: > On 2023-12-08 17:29:45 -0500, Tom Lane wrote: >> Agreed. I think we want to do that after the initial handshake, >> too, so maybe as attached. > I was wondering about that too. But if we do so, why not also do it for > writes? Writes don't act that way, do they? EOF on

Re: backtrace_on_internal_error

2023-12-08 Thread Andres Freund
Hi, On 2023-12-08 17:35:26 -0500, Tom Lane wrote: > Andres Freund writes: > > I thought it'd be nice to have a test for this, particularly because it's > > not > > clear that the behaviour is consistent across openssl versions. > > Perhaps, but ... > > > To deal with that, I changed the test

Re: backtrace_on_internal_error

2023-12-08 Thread Andres Freund
On 2023-12-08 17:29:45 -0500, Tom Lane wrote: > Andres Freund writes: > >> I think I figured it it out. Looks like we need to translate a closed > >> socket > >> (recvfrom() returning 0) to ECONNRESET or such. > > > Seems like we should just treat errno == 0 as a reason to emit the "EOF > >

Re: micro-optimizing json.c

2023-12-08 Thread Tom Lane
Nathan Bossart writes: > Here are a couple more easy micro-optimizations in nearby code. I've split > them into individual patches for review, but I'll probably just combine > them into one patch before committing. LGTM regards, tom lane

Re: backtrace_on_internal_error

2023-12-08 Thread Tom Lane
Andres Freund writes: > I thought it'd be nice to have a test for this, particularly because it's not > clear that the behaviour is consistent across openssl versions. Perhaps, but ... > To deal with that, I changed the test to instead check if "not accept SSL > connection: Success" is not

Re: backtrace_on_internal_error

2023-12-08 Thread Tom Lane
Andres Freund writes: >> I think I figured it it out. Looks like we need to translate a closed socket >> (recvfrom() returning 0) to ECONNRESET or such. > Seems like we should just treat errno == 0 as a reason to emit the "EOF > detected" message? Agreed. I think we want to do that after the

Re: Row pattern recognition

2023-12-08 Thread Tatsuo Ishii
> On 04.12.23 12:40, Tatsuo Ishii wrote: >> diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y >> index d631ac89a9..5a77fca17f 100644 >> --- a/src/backend/parser/gram.y >> +++ b/src/backend/parser/gram.y >> @@ -251,6 +251,8 @@ static Node *makeRecursiveViewSelect(char >> *relname,

Re: backtrace_on_internal_error

2023-12-08 Thread Andres Freund
Hi, On 2023-12-08 11:33:16 -0800, Andres Freund wrote: > On 2023-12-08 10:51:01 -0800, Andres Freund wrote: > > On 2023-12-08 13:46:07 -0500, Tom Lane wrote: > > > Andres Freund writes: > > > > On 2023-12-08 13:23:50 -0500, Tom Lane wrote: > > > >> Hmm, don't suppose you have a way to reproduce

Re: Emitting JSON to file using COPY TO

2023-12-08 Thread Joe Conway
On 12/8/23 14:45, Daniel Verite wrote: Joe Conway wrote: copyto_json.007.diff When the source has json fields with non-significant line feeds, the COPY output has these line feeds too, which makes the output incompatible with rule #2 at https://jsonlines.org ("2. Each Line is a

Re: micro-optimizing json.c

2023-12-08 Thread Nathan Bossart
Here are a couple more easy micro-optimizations in nearby code. I've split them into individual patches for review, but I'll probably just combine them into one patch before committing. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com >From 79727aab47c7d7cd733ce21c8241051de6c9ae1e

Re: Emitting JSON to file using COPY TO

2023-12-08 Thread Daniel Verite
Dave Cramer wrote: > > This argument for leaving 3 as the column count makes sense to me. I > > agree this content is not meant to facilitate interpreting the contents at > > a protocol level. > > > > I'd disagree. From my POV if the data comes back as a JSON Array this is > one object

Re: Change GUC hashtable to use simplehash?

2023-12-08 Thread Jeff Davis
I committed 867dd2dc87, which means my use case for a fast GUC hash table (quickly setting proconfigs) is now solved. Andres mentioned that it could still be useful to reduce overhead in a few other places: https://postgr.es/m/20231117220830.t6sb7di6h6am4...@awork3.anarazel.de How should we

Re: Change GUC hashtable to use simplehash?

2023-12-08 Thread Jeff Davis
On Wed, 2023-11-29 at 20:31 +0700, John Naylor wrote: > Attached is a rough start with Andres's earlier ideas, to get > something concrete out there. The implementation of string hash in 0004 forgot to increment 'buf'. I tested using the new hash function APIs for my search path cache, and

Re: Emitting JSON to file using COPY TO

2023-12-08 Thread Daniel Verite
Joe Conway wrote: > copyto_json.007.diff When the source has json fields with non-significant line feeds, the COPY output has these line feeds too, which makes the output incompatible with rule #2 at https://jsonlines.org ("2. Each Line is a Valid JSON Value"). create table j(f json);

Re: micro-optimizing json.c

2023-12-08 Thread Nathan Bossart
On Fri, Dec 08, 2023 at 11:51:15AM +0700, John Naylor wrote: > This is less verbose and still compiles with constants: > > use_line_feeds ? strlen(",\n ") : strlen(","); This one worked on my machine. I've committed the patch with that change. Thanks everyone for the reviews! -- Nathan

Re: backtrace_on_internal_error

2023-12-08 Thread Andres Freund
Hi, On 2023-12-08 10:51:01 -0800, Andres Freund wrote: > On 2023-12-08 13:46:07 -0500, Tom Lane wrote: > > Andres Freund writes: > > > On 2023-12-08 13:23:50 -0500, Tom Lane wrote: > > >> Hmm, don't suppose you have a way to reproduce that? > > > > > After a bit of trying, yes. I put an abort()

Re: backtrace_on_internal_error

2023-12-08 Thread Andres Freund
Hi, On 2023-12-08 13:46:07 -0500, Tom Lane wrote: > Andres Freund writes: > > On 2023-12-08 13:23:50 -0500, Tom Lane wrote: > >> Hmm, don't suppose you have a way to reproduce that? > > > After a bit of trying, yes. I put an abort() into pgtls_open_client(), > > after > > initialize_SSL().

Re: Bug in nbtree optimization to skip > operator comparisons (or < comparisons in backwards scans)

2023-12-08 Thread Alexander Korotkov
On Fri, Dec 8, 2023 at 8:30 PM Alexander Korotkov wrote: > On Wed, Dec 6, 2023 at 6:05 AM Alexander Korotkov > wrote: > > On Wed, Dec 6, 2023 at 3:46 AM Peter Geoghegan wrote: > > > On Tue, Dec 5, 2023 at 4:41 PM Peter Geoghegan wrote: > > > > "In general, when inequality keys are present,

Re: backtrace_on_internal_error

2023-12-08 Thread Tom Lane
Andres Freund writes: > On 2023-12-08 13:23:50 -0500, Tom Lane wrote: >> Hmm, don't suppose you have a way to reproduce that? > After a bit of trying, yes. I put an abort() into pgtls_open_client(), after > initialize_SSL(). Connecting does result in: > LOG: could not accept SSL connection:

Re: backtrace_on_internal_error

2023-12-08 Thread Andres Freund
Hi, On 2023-12-08 13:23:50 -0500, Tom Lane wrote: > Andres Freund writes: > > On 2023-12-08 10:05:09 -0500, Tom Lane wrote: > >> ... there was already opinion upthread that this should be on by > >> default, which I agree with. You shouldn't be hitting cases like > >> this commonly (if so,

Re: Bug in nbtree optimization to skip > operator comparisons (or < comparisons in backwards scans)

2023-12-08 Thread Alexander Korotkov
On Wed, Dec 6, 2023 at 6:05 AM Alexander Korotkov wrote: > On Wed, Dec 6, 2023 at 3:46 AM Peter Geoghegan wrote: > > On Tue, Dec 5, 2023 at 4:41 PM Peter Geoghegan wrote: > > > "In general, when inequality keys are present, the initial-positioning > > > code only promises to position before the

Re: Streaming I/O, vectored I/O (WIP)

2023-12-08 Thread Andres Freund
Hi, On 2023-11-30 13:01:46 +1300, Thomas Munro wrote: > On Thu, Nov 30, 2023 at 12:16 PM Heikki Linnakangas wrote: > > On 29/11/2023 21:39, Thomas Munro wrote: > > > One thing I wasn't 100% happy with was the treatment of ENOSPC. A few > > > callers believe that short writes set errno: they

Re: backtrace_on_internal_error

2023-12-08 Thread Tom Lane
Andres Freund writes: > On 2023-12-08 10:05:09 -0500, Tom Lane wrote: >> ... there was already opinion upthread that this should be on by >> default, which I agree with. You shouldn't be hitting cases like >> this commonly (if so, they're bugs to fix or the errcode should be >> rethought), and

Re: backtrace_on_internal_error

2023-12-08 Thread Andres Freund
Hi, On 2023-12-08 10:05:09 -0500, Tom Lane wrote: > Peter Eisentraut writes: > > One possible question for discussion is whether the default for this > > should be off, on, or possibly something like on-in-assert-builds. > > (Personally, I'm happy to turn it on myself at run time, but everyone >

Re: Assert failure on 'list_member_ptr(rel->joininfo, restrictinfo)'

2023-12-08 Thread Alexander Korotkov
Hi, Ashutosh! On Fri, Dec 8, 2023 at 3:28 PM Ashutosh Bapat wrote: > I did some analysis of memory consumption by bitmapsets in such cases. > [1] contains slides with the result of this analysis. The slides are > crude and quite WIP. But they will give some idea. > > [1] >

Re: remaining sql/json patches

2023-12-08 Thread Andres Freund
Hi, On 2023-12-07 21:07:59 +0900, Amit Langote wrote: > --- a/src/include/executor/execExpr.h > +++ b/src/include/executor/execExpr.h > @@ -16,6 +16,7 @@ > > #include "executor/nodeAgg.h" > #include "nodes/execnodes.h" > +#include "nodes/miscnodes.h" > > /* forward references to avoid

Re: Parallel CREATE INDEX for BRIN indexes

2023-12-08 Thread Tomas Vondra
Hi, I've pushed the first two parts (backfill of empty ranges for serial builds, allowing parallelism) after a bit more cleanup, adding a simple pageinspect test to 0001, improving comments and some minor adjustments. I ended up removing the protections against BlockNumber overflows, and moved

Re: remaining sql/json patches

2023-12-08 Thread Andrew Dunstan
On 2023-12-08 Fr 11:37, Robert Haas wrote: On Fri, Dec 8, 2023 at 1:59 AM Amit Langote wrote: Would it be messy to replace the lookahead approach by whatever's suiable *in the future* when it becomes necessary to do so? It might be. Changing grammar rules to tends to change corner-case

Re: remaining sql/json patches

2023-12-08 Thread Robert Haas
On Fri, Dec 8, 2023 at 1:59 AM Amit Langote wrote: > Would it be messy to replace the lookahead approach by whatever's > suiable *in the future* when it becomes necessary to do so? It might be. Changing grammar rules to tends to change corner-case behavior if nothing else. We're best off picking

Re: UBSan pointer overflow in xlogreader.c

2023-12-08 Thread Robert Haas
On Thu, Dec 7, 2023 at 10:18 PM Thomas Munro wrote: > On Fri, Dec 8, 2023 at 3:57 AM Robert Haas wrote: > > On Tue, Dec 5, 2023 at 4:01 PM Nathan Bossart > > wrote: > > > +1 > > > > So, Thomas ... any chance you could commit this? So that my patch > > stops making cfbot sad? > > Done. Thanks

Re: backtrace_on_internal_error

2023-12-08 Thread Tom Lane
Peter Eisentraut writes: > Here is a patch to play with. Didn't read the patch yet, but ... > One possible question for discussion is whether the default for this > should be off, on, or possibly something like on-in-assert-builds. > (Personally, I'm happy to turn it on myself at run time,

Re: GUC names in messages

2023-12-08 Thread Peter Eisentraut
On 08.12.23 05:10, Peter Smith wrote: Patch 0001 -- "datestyle" becomes DateStyle in messages Rebased this again, which was part of an earlier patch set - I think any GUC names documented as MixedCase should keep that same case in messages; this also obeys the guidelines recently pushed [1]. -

Re: Memory consumed by paths during partitionwise join planning

2023-12-08 Thread Ashutosh Bapat
On Fri, Dec 8, 2023 at 1:02 PM David Rowley wrote: > > On Fri, 8 Dec 2023 at 18:02, Ashutosh Bapat > wrote: > > given path. E.g. we have three path chains as follows > > 1. joinpath_1->joinpath_2->seqpath_1, > > 2. joinpath_3->joinpath_4->seqpath_1, > > 3. joinpath_5->joinpath_2->seqpath_1 > > >

Re: Emitting JSON to file using COPY TO

2023-12-08 Thread Dave Cramer
On Thu, 7 Dec 2023 at 08:47, David G. Johnston wrote: > On Thursday, December 7, 2023, Daniel Verite > wrote: > >> Joe Conway wrote: >> >> > The attached should fix the CopyOut response to say one column. I.e. it >> > ought to look something like: >> >> Spending more time with the doc I

Re: undetected deadlock in ALTER SUBSCRIPTION ... REFRESH PUBLICATION

2023-12-08 Thread Shlok Kyal
Hi, > Then let's go with the original patch only. BTW, it took almost the > same time (105 wallclock secs) in my environment (CentOs VM) to run > tests in src/test/subscription both with and without the patch. I took > a median of five runs. I have slightly adjusted the comments and > commit

Re: Forbid the use of invalidated physical slots in streaming replication.

2023-12-08 Thread Ashutosh Bapat
> > > pg_replication_slot could be set back to null. > > > > In this case, since the basebackup was taken after the slot was > > invalidated, it > > does not require the WAL that was removed. But it seems that once the > > streaming starts, the slot sprints to life again and gets validated again.

Re: Assert failure on 'list_member_ptr(rel->joininfo, restrictinfo)'

2023-12-08 Thread Ashutosh Bapat
On Fri, Dec 8, 2023 at 12:43 PM Alexander Pyhalov wrote: > > Andrei Lepikhov писал(а) 2023-12-08 07:37: > > On 28/11/2023 01:37, Alexander Korotkov wrote: > >> On Mon, Nov 27, 2023 at 8:07 PM Andres Freund > >> wrote: > > Sorry for the late answer, I missed this thread because of vacation. > >>>

Re: backtrace_on_internal_error

2023-12-08 Thread Peter Eisentraut
Here is a patch to play with. I also found a related typo. One possible question for discussion is whether the default for this should be off, on, or possibly something like on-in-assert-builds. (Personally, I'm happy to turn it on myself at run time, but everyone has different workflows.)

Re: [PATCH] New [relation] option engine

2023-12-08 Thread Nikolay Shaplov
В письме от пятница, 8 декабря 2023 г. 15:59:09 MSK пользователь Alvaro Herrera написал: > > Theoretically I can create patch with full options.c as it is in the patch > > now, and use that code only in index AM, and keep reloption.c mostly > > unchanged. > > > > This will be total mess with

Re: initdb caching during tests

2023-12-08 Thread Daniel Gustafsson
> On 7 Dec 2023, at 15:27, Matthias van de Meent > wrote: > Then that'd be the attached patch, which also includes --auth instead > of -A, for the same reason as -N vs --no-sync Applied to master, thanks! -- Daniel Gustafsson

Re: [PATCH] New [relation] option engine

2023-12-08 Thread Alvaro Herrera
On 2023-Dec-08, Nikolay Shaplov wrote: > Theoretically I can create patch with full options.c as it is in the patch > now, and use that code only in index AM, and keep reloption.c mostly > unchanged. > > This will be total mess with two different options mechanisms working in the > same time,

Re: GUC names in messages

2023-12-08 Thread Alvaro Herrera
On 2023-Dec-08, Peter Smith wrote: > Patch 0001 -- "datestyle" becomes DateStyle in messages > Rebased this again, which was part of an earlier patch set > - I think any GUC names documented as MixedCase should keep that same > case in messages; this also obeys the guidelines recently pushed [1].

Re: [PATCH] New [relation] option engine

2023-12-08 Thread Nikolay Shaplov
В письме от пятница, 8 декабря 2023 г. 08:59:41 MSK пользователь Michael Paquier написал: > > I've rebased patch, so it could be add to commitfest again. > > This is a 270kB patch with quite a few changes, and a lot of code > > moved around: > > 47 files changed, 2592 insertions(+), 2326

Re: [PoC] Improve dead tuple storage for lazy vacuum

2023-12-08 Thread Masahiko Sawada
On Fri, Dec 8, 2023 at 7:46 PM John Naylor wrote: > > On Fri, Dec 8, 2023 at 3:06 PM Masahiko Sawada wrote: > > > > BTW Given that the actual value size can be calculated only by the > > caller, how does the tree know if the value is embedded or not? It's > > probably related to how to store

Re: Remove some unnecessary includes of "access/xlog_internal.h"

2023-12-08 Thread Heikki Linnakangas
On 08/12/2023 13:44, Peter Eisentraut wrote: I found a few places where access/xlog_internal.h was apparently included unnecessarily. In some of those places, a more specific header file (that somehow came in via access/xlog_internal.h) can be used instead. The *.h file change passes

Remove some unnecessary includes of "access/xlog_internal.h"

2023-12-08 Thread Peter Eisentraut
I found a few places where access/xlog_internal.h was apparently included unnecessarily. In some of those places, a more specific header file (that somehow came in via access/xlog_internal.h) can be used instead. The *.h file change passes headerscheck.From

Re: undetected deadlock in ALTER SUBSCRIPTION ... REFRESH PUBLICATION

2023-12-08 Thread Amit Kapila
On Thu, Dec 7, 2023 at 11:21 AM Shlok Kyal wrote: > > > I mean to commit the open transaction at the below place in > > wait_for_relation_state_change() > > > > wait_for_relation_state_change() > > { > > ... > > -- commit the xact > > WaitLatch(); > > ... > > } > > > > Then start after the wait

Add code indentation check to cirrus-ci (was Re: Add BF member koel-like indentation checks to SanityCheck CI)

2023-12-08 Thread Bharath Rupireddy
On Mon, Oct 30, 2023 at 12:50 PM Bharath Rupireddy wrote: > > Hi, > > How about adding code indent checks (like what BF member koel has) to > the SanityCheck CI task? This helps catch indentation problems way > before things are committed so that developers can find them out in > their respective

Re: [PATCH] minor reloption regression tests improvement

2023-12-08 Thread Alvaro Herrera
On 2022-Mar-07, Greg Stark wrote: > I don't think this is worth spending time adding tests for. I get what > you're saying that this is at least semi-intentional behaviour and > desirable behaviour so it should have tests ensuring that it continues > to work. But it's not documented behaviour and

Re: Adding a pg_get_owned_sequence function?

2023-12-08 Thread Shubham Khanna
On Fri, Dec 8, 2023 at 3:43 PM Dagfinn Ilmari Mannsåker wrote: > > Hi hackers, > > I've always been annoyed by the fact that pg_get_serial_sequence takes > the table and returns the sequence as strings rather than regclass. And > since identity columns were added, the name is misleading as well

Re: Test 002_pg_upgrade fails with olddump on Windows

2023-12-08 Thread Alvaro Herrera
On 2023-Dec-08, Michael Paquier wrote: > On Thu, Dec 07, 2023 at 05:44:53PM +0900, Michael Paquier wrote: > > Hmm. Yes, it looks like you're right here. That should allow all the > > scenarios we expect to work to update the paths for the functions. > > And done this one as well down to v15,

Re: [PoC] Improve dead tuple storage for lazy vacuum

2023-12-08 Thread John Naylor
On Fri, Dec 8, 2023 at 3:06 PM Masahiko Sawada wrote: > > BTW Given that the actual value size can be calculated only by the > caller, how does the tree know if the value is embedded or not? It's > probably related to how to store combined pointer/value slots. Right, this is future work. At

Re: [HACKERS] make async slave to wait for lsn to be replayed

2023-12-08 Thread Alexander Korotkov
On Fri, Dec 8, 2023 at 11:46 AM Kartyshov Ivan wrote: > > Should rise disscusion on separate utility statement or find > case where procedure version is failed. > > 1) Classic (wait_classic_v3.patch) > https://www.postgresql.org/message-id/3cc883048264c2e9af022033925ff8db%40postgrespro.ru >

Re: Transaction timeout

2023-12-08 Thread Japin Li
On Fri, 08 Dec 2023 at 18:08, Andrey M. Borodin wrote: >> On 8 Dec 2023, at 12:59, Japin Li wrote: >> >> >> On Thu, 07 Dec 2023 at 20:40, Andrey M. Borodin wrote: On 7 Dec 2023, at 06:25, Japin Li wrote: If idle_in_transaction_timeout is bigger than transaction_timeout,

Re: [HACKERS] make async slave to wait for lsn to be replayed

2023-12-08 Thread Alexander Korotkov
On Fri, Dec 8, 2023 at 11:20 AM Kartyshov Ivan wrote: > > On 2023-11-27 03:08, Alexander Korotkov wrote: > > I've retried my case with v6 and it doesn't fail anymore. But I > > wonder how safe it is to reset xmin within the user-visible function? > > We have no guarantee that the function is not

Re: Transaction timeout

2023-12-08 Thread Andrey M. Borodin
> On 8 Dec 2023, at 12:59, Japin Li wrote: > > > On Thu, 07 Dec 2023 at 20:40, Andrey M. Borodin wrote: >>> On 7 Dec 2023, at 06:25, Japin Li wrote: >>> >>> If idle_in_transaction_timeout is bigger than transaction_timeout, >>> the idle-in-transaction timeout don't needed, right? >> Yes, I

Re: trying again to get incremental backup

2023-12-08 Thread Jakub Wartak
On Thu, Dec 7, 2023 at 4:15 PM Robert Haas wrote: Hi Robert, > On Thu, Dec 7, 2023 at 9:42 AM Jakub Wartak > wrote: > > Comment: I was wondering if it wouldn't make some sense to teach > > pg_resetwal to actually delete all WAL summaries after any any > > WAL/controlfile alteration? > > I

Re: [HACKERS] make async slave to wait for lsn to be replayed

2023-12-08 Thread Kartyshov Ivan
Should rise disscusion on separate utility statement or find case where procedure version is failed. 1) Classic (wait_classic_v3.patch) https://www.postgresql.org/message-id/3cc883048264c2e9af022033925ff8db%40postgrespro.ru == advantages: multiple wait events, separate WAIT FOR statement

Re: Oversight in reparameterize_path_by_child leading to executor crash

2023-12-08 Thread Alena Rybakina
On 06.12.2023 10:30, Richard Guo wrote: I've self-reviewed this patch again and I think it's now in a committable state.  I'm wondering if we can mark it as 'Ready for Committer' now, or we need more review comments/feedbacks. To recap, this patch postpones reparameterization of paths until

Re: Proposal to add page headers to SLRU pages

2023-12-08 Thread Li, Yong
Given so many different approaches were discussed, I have started a wiki to record and collaborate all efforts towards SLRU improvements. The wiki provides a concise overview of all the ideas discussed and can serve as a portal for all historical discussions. Currently, the wiki summarizes

Re: [HACKERS] make async slave to wait for lsn to be replayed

2023-12-08 Thread Kartyshov Ivan
On 2023-11-27 03:08, Alexander Korotkov wrote: I've retried my case with v6 and it doesn't fail anymore. But I wonder how safe it is to reset xmin within the user-visible function? We have no guarantee that the function is not called inside the complex query. Then how will the rest of the

Re: Synchronizing slots from primary to standby

2023-12-08 Thread Amit Kapila
On Wed, Dec 6, 2023 at 4:53 PM shveta malik wrote: > > PFA v43, changes are: > I wanted to discuss 0003 patch about cascading standby's. It is not clear to me whether we want to allow physical standbys to further wait for cascading standby to sync their slots. If we allow such a feature one may

Re: [PoC] Improve dead tuple storage for lazy vacuum

2023-12-08 Thread Masahiko Sawada
On Fri, Dec 8, 2023 at 3:45 PM Masahiko Sawada wrote: > > On Fri, Dec 8, 2023 at 1:37 PM John Naylor wrote: > > > > On Fri, Dec 8, 2023 at 8:57 AM Masahiko Sawada > > wrote: > > > > > It's still unclear to me why the value doesn't need to contain the size. > > > > > > If I understand you

Re: Transaction timeout

2023-12-08 Thread Japin Li
On Thu, 07 Dec 2023 at 20:40, Andrey M. Borodin wrote: >> On 7 Dec 2023, at 06:25, Japin Li wrote: >> >> If idle_in_transaction_timeout is bigger than transaction_timeout, >> the idle-in-transaction timeout don't needed, right? > Yes, I think so. > Should we disable the