Re: persist logical slots to disk during shutdown checkpoint

2023-09-12 Thread Michael Paquier
On Tue, Sep 12, 2023 at 03:15:44PM +0530, Amit Kapila wrote: > I don't think it will become more responsive in any way, not sure what > made you think like that. The key idea is that after restart we want > to ensure that all the WAL data up to the shutdown checkpoint record > is sent to

Re: Row pattern recognition

2023-09-12 Thread Tatsuo Ishii
> I was looking for this but I only found ISO/IEC 19075-5:2021. https://www.iso.org/standard/78936.html Maybe 19075-5:2021 is the latest one? Best reagards, -- Tatsuo Ishii SRA OSS LLC English: http://www.sraoss.co.jp/index_en/ Japanese:http://www.sraoss.co.jp

Re: POC: GROUP BY optimization

2023-09-12 Thread Andrey Lepikhov
Hi, Here is the patch rebased on the current master. Also, I fixed some minor slips and one static analyzer warning. This is just for adding to the next commitfest and enforcing work with this patch. One extra difference in newly added postgres_fdw tests is caused by this patch - see changes

Re: JSON Path and GIN Questions

2023-09-12 Thread Erik Rijkers
Op 9/13/23 om 03:00 schreef Erik Wienhold: Hi David, On 13/09/2023 02:16 CEST David E. Wheeler wrote: CREATE TABLE MOVIES (id SERIAL PRIMARY KEY, movie JSONB NOT NULL); \copy movies(movie) from PROGRAM 'curl -s https://raw.githubusercontent.com/prust/wikipedia-movie-data/master/movies.json

Re: subscription TAP test has unused $result

2023-09-12 Thread Amit Kapila
On Wed, Sep 13, 2023 at 8:43 AM Peter Smith wrote: > > Yesterday noticed a TAP test assignment to an unused $result. > > PSA patch to remove that. > Though it is harmless I think we can clean it up. Your patch looks good to me. -- With Regards, Amit Kapila.

Re: Jumble the CALL command in pg_stat_statements

2023-09-12 Thread Michael Paquier
On Wed, Sep 13, 2023 at 12:48:48AM +, Imseih (AWS), Sami wrote: > The patch also modifies existing test cases for CALL handling in > pg_stat_statements > and adds additional tests which prove that a CALL to an overloaded procedure > will generate a different query_id. +CALL overload(1);

Re: Query execution in Perl TAP tests needs work

2023-09-12 Thread Andres Freund
Hi, On 2023-08-28 17:29:56 +1200, Thomas Munro wrote: > As an experiment, I hacked up a not-good-enough-to-share experiment > where $node->safe_psql() would automatically cache a BackgroundPsql > object and reuse it, and the times for that test dropped ~51 -> ~9s on > Windows, and ~7 -> ~2s on

Re: Make psql's qeury canceling test simple by using signal() routine of IPC::Run

2023-09-12 Thread Yugo NAGATA
On Wed, 13 Sep 2023 10:20:23 +0900 Michael Paquier wrote: > On Tue, Sep 12, 2023 at 03:18:05PM +0900, Michael Paquier wrote: > > On Wed, Sep 06, 2023 at 12:45:24AM +0900, Yugo NAGATA wrote: > > > I attached the update patch. I removed the incorrect comments and > > > unnecessary lines. Also, I

Re: Add 'worker_type' to pg_stat_subscription

2023-09-12 Thread Michael Paquier
On Tue, Sep 12, 2023 at 07:00:14PM +1000, Peter Smith wrote: > Right. I found just a single test currently using pg_stat_subscription > catalog. I added a worker_type check for that. This looks enough to me, thanks! -- Michael signature.asc Description: PGP signature

Re: Avoid a possible null pointer (src/backend/utils/adt/pg_locale.c)

2023-09-12 Thread Michael Paquier
On Wed, Sep 13, 2023 at 09:59:22AM +0900, Kyotaro Horiguchi wrote: > At Tue, 12 Sep 2023 09:03:27 +0900, Michael Paquier > wrote in > > On Mon, Sep 11, 2023 at 12:15:49PM -0700, Jeff Davis wrote: > > > That's fine with me. > > > > Okay. Then, please find attached a v4 for HEAD and

Re: Avoid a possible null pointer (src/backend/utils/adt/pg_locale.c)

2023-09-12 Thread Michael Paquier
On Tue, Sep 12, 2023 at 09:40:04PM -0300, Ranier Vilela wrote: > I think that is not a good idea. Hm? We already use __func__ across the tree even on Windows and nobody has complained about that. Using a macro for the elog() generated would be slightly more elegant, actually. -- Michael

Re: PSQL error: total cell count of XXX exceeded

2023-09-12 Thread Hongxu Ma
Thanks for pointing that, I did miss some other "ncols * nrows" places. Uploaded v3 patch to fix them. As for the Windows, I didn't test it before but I think it should also have the issue (and happens more possible since ​`cellsadded` is also a long type). My fix idea is simple: define a

subscription TAP test has unused $result

2023-09-12 Thread Peter Smith
Yesterday noticed a TAP test assignment to an unused $result. PSA patch to remove that. -- Kind Regards, Peter Smith. Fujitsu Australia v1-0001-remove-redundant-result-assignment.patch Description: Binary data

Re: Is the member name of hashctl inappropriate?

2023-09-12 Thread Tom Lane
ywgrit writes: > According to the description, the keycopy function only copies the key, but > in reality it copies the entire entry, i.e., the key and the value, On what grounds do you claim that? dynahash.c only ever passes "keysize" as the size parameter. regards,

Re: Make psql's qeury canceling test simple by using signal() routine of IPC::Run

2023-09-12 Thread Michael Paquier
On Tue, Sep 12, 2023 at 03:18:05PM +0900, Michael Paquier wrote: > On Wed, Sep 06, 2023 at 12:45:24AM +0900, Yugo NAGATA wrote: > > I attached the update patch. I removed the incorrect comments and > > unnecessary lines. Also, I rewrote the test to use "skip_all" instead > > of SKIP because we

Tab completion for ATTACH PARTITION

2023-09-12 Thread bt23nguyent
Hi, Currently, the psql's tab completion feature does not support properly for ATTACH PARTITION. When key is typed after "ALTER TABLE ATTACH PARTITION ", all possible table names should be displayed, however, foreign table names are not displayed. So I created a patch that addresses this

Is the member name of hashctl inappropriate?

2023-09-12 Thread ywgrit
The definition of hashctl is shown below typedef struct HASHCTL { long num_partitions; /* # partitions (must be power of 2) */ long ssize; /* segment size */ long dsize; /* (initial) directory size */ long

Re: JSON Path and GIN Questions

2023-09-12 Thread Erik Wienhold
Hi David, On 13/09/2023 02:16 CEST David E. Wheeler wrote: > CREATE TABLE MOVIES (id SERIAL PRIMARY KEY, movie JSONB NOT NULL); > \copy movies(movie) from PROGRAM 'curl -s > https://raw.githubusercontent.com/prust/wikipedia-movie-data/master/movies.json > | jq -c ".[]" | sed

Re: Avoid a possible null pointer (src/backend/utils/adt/pg_locale.c)

2023-09-12 Thread Kyotaro Horiguchi
At Tue, 12 Sep 2023 09:03:27 +0900, Michael Paquier wrote in > On Mon, Sep 11, 2023 at 12:15:49PM -0700, Jeff Davis wrote: > > That's fine with me. > > Okay. Then, please find attached a v4 for HEAD and REL_16_STABLE. For example, they result in the following message: ERROR: unsupported

Jumble the CALL command in pg_stat_statements

2023-09-12 Thread Imseih (AWS), Sami
Hi, The proposal by Bertrand in CC to jumble CALL and SET in [1] was rejected at the time for a more robust solution to jumble DDL. Michael also in CC made this possible with commit 3db72ebcbe. The attached patch takes advantage of the jumbling infrastructure added in the above mentioned commit

Re: Avoid a possible null pointer (src/backend/utils/adt/pg_locale.c)

2023-09-12 Thread Ranier Vilela
Em ter., 12 de set. de 2023 às 17:51, Jeff Davis escreveu: > On Tue, 2023-09-12 at 09:03 +0900, Michael Paquier wrote: > > On Mon, Sep 11, 2023 at 12:15:49PM -0700, Jeff Davis wrote: > > > That's fine with me. > > > > Okay. Then, please find attached a v4 for HEAD and REL_16_STABLE. > > One

Re: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-12 Thread Peter Smith
Hi Kuroda-san. Here are my review comments for patch v36-0002. == doc/src/sgml/ref/pgupgrade.sgml 1. Configure the servers for log shipping. (You do not need to run pg_backup_start() and pg_backup_stop() or take a file system backup as the standbys are still

Re: Document that server will start even if it's unable to open some TCP/IP ports

2023-09-12 Thread Gurjeet Singh
On Fri, Sep 8, 2023 at 7:52 AM Bruce Momjian wrote: > > On Thu, Sep 7, 2023 at 09:21:07PM -0700, Nathan Bossart wrote: > > On Thu, Sep 07, 2023 at 07:13:44PM -0400, Bruce Momjian wrote: > > > On Thu, Sep 7, 2023 at 02:54:13PM -0700, Nathan Bossart wrote: > > >> IMO the phrase "open a port" is

JSON Path and GIN Questions

2023-09-12 Thread David E. Wheeler
Greetings Hackers, Been a while! I’m working on some experiments with JSONB columns and GIN indexes, and have operated on the assumption that JSON Path operations would take advantage of GIN indexes, with json_path_ops as a nice optimization. But I’ve run into what appear to be some

Re: Cirrus-ci is lowering free CI cycles - what to do with cfbot, etc?

2023-09-12 Thread Andres Freund
Hi, On 2023-08-30 10:57:10 +0200, Daniel Gustafsson wrote: > > On 28 Aug 2023, at 14:32, Daniel Gustafsson wrote: > > > Attached is a patch with a quick PoC for using PQPing instead of using psql > > for > > connection checks in pg_regress. > > The attached v2 fixes a silly mistake which led

Re: [17] CREATE SUBSCRIPTION ... SERVER

2023-09-12 Thread Jeff Davis
On Tue, 2023-09-05 at 12:08 -0700, Jeff Davis wrote: > OK, so we could have a built-in FDW called pg_connection that would > do > the right kinds of validation; and then also allow other FDWs but the > subscription would have to do its own validation. While working on this, I found a minor bug

Pre-proposal: unicode normalized text

2023-09-12 Thread Jeff Davis
One of the frustrations with using the "C" locale (or any deterministic locale) is that the following returns false: SELECT 'á' = 'á'; -- false because those are the unicode sequences U&'\0061\0301' and U&'\00E1', respectively, so memcmp() returns non-zero. But it's really the same

Re: Row pattern recognition

2023-09-12 Thread Jacob Champion
On Mon, Sep 11, 2023 at 11:18 PM Tatsuo Ishii wrote: > What I am not sure about is, you and Vik mentioned that the > traditional NFA is superior that POSIX NFA in terms of performance. > But how "lexicographic ordering" is related to performance? I think they're only tangentially related. POSIX

Re: Faster "SET search_path"

2023-09-12 Thread Jeff Davis
On Mon, 2023-08-07 at 15:39 -0700, Nathan Bossart wrote: > 0003 is looking pretty good, too, but I think we > should get some more eyes on it, given the complexity. Attached rebased version of 0003. -- Jeff Davis PostgreSQL Contributor Team - AWS From f5b055aea1bf08928de1bffcfd7b202e28847595

Re: Avoid a possible null pointer (src/backend/utils/adt/pg_locale.c)

2023-09-12 Thread Jeff Davis
On Tue, 2023-09-12 at 09:03 +0900, Michael Paquier wrote: > On Mon, Sep 11, 2023 at 12:15:49PM -0700, Jeff Davis wrote: > > That's fine with me. > > Okay.  Then, please find attached a v4 for HEAD and REL_16_STABLE. One question: would it make sense to use __func__? Other than that, looks good.

Re: sslinfo extension - add notbefore and notafter timestamps

2023-09-12 Thread Jacob Champion
Hello, On 7/25/23 07:21, Daniel Gustafsson wrote: > The attached version passes ssl tests for me on 1.0.2 through OpenSSL Git > HEAD. Tests pass for me too, including LibreSSL 3.8. > + /* Calculate the diff from the epoch to the certificat timestamp */ "certificate" > +

Re: GenBKI emits useless open;close for catalogs without rows

2023-09-12 Thread Matthias van de Meent
On Fri, 1 Sept 2023 at 19:52, Tom Lane wrote: > > Alvaro Herrera writes: > > On 2023-Sep-01, Matthias van de Meent wrote: > >> A potential addition to the patch would to stop manually closing > >> relations: initdb and check-world succeed without manual 'close' > >> operations because the 'open'

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-09-12 Thread Tom Lane
Matthias van de Meent writes: > Hmm, maybe we should measure the overhead of serializing the tuples instead. > The difference between your patch and "serializing the tuples, but not > sending them" is that serializing also does the detoasting, but also > includes any time spent in the

Re: Document that PG_TRY block cannot have a return statement

2023-09-12 Thread Tom Lane
Serpent writes: > I'm talking about this part: > PG_TRY(); > { > ... code that might throw ereport(ERROR) ... > } Ah. Your phrasing needs work for clarity then. Also, "return" is hardly the only way to break it; break, continue, or goto leading out of the PG_TRY are other possibilities.

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-09-12 Thread stepan rutz
Hi Matthias, thanks for your feedback. I wasn't sure on the memory-contexts. I was actually also unsure on whether the array   TupleTableSlot.tts_isnull is also set up correctly by the previous call to slot_getallattrs(slot). This would allow to get rid of even more code from this patch,

Re: Adding a pg_get_owned_sequence function?

2023-09-12 Thread Dagfinn Ilmari Mannsåker
Tom Lane writes: > Peter Eisentraut writes: >> Would it work to just overload pg_get_serial_sequence with regclass >> argument types? > > Probably not; the parser would have no principled way to resolve > pg_get_serial_sequence('foo', 'bar') as one or the other. I'm > not sure offhand if it

Re: remaining sql/json patches

2023-09-12 Thread Tom Lane
Peter Eisentraut writes: > On 06.09.23 17:01, Alvaro Herrera wrote: >> Assert()ing that a pointer is not null, and in the next line >> dereferencing that pointer, is useless: the process would crash anyway >> at the time of dereference, so the Assert() adds no value. Better to >> leave the

Re: Adding a pg_get_owned_sequence function?

2023-09-12 Thread Tom Lane
Peter Eisentraut writes: > Would it work to just overload pg_get_serial_sequence with regclass > argument types? Probably not; the parser would have no principled way to resolve pg_get_serial_sequence('foo', 'bar') as one or the other. I'm not sure offhand if it would throw error or just

Re: Document that PG_TRY block cannot have a return statement

2023-09-12 Thread Tom Lane
Serpent writes: > I created a tiny patch that documents that the code block following > PG_TRY() cannot have any return statement. AFAIK, this is wrong. The actual requirement is already stated in the comment: * ... The error recovery code * can either do PG_RE_THROW to propagate the error

RE: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-12 Thread Hayato Kuroda (Fujitsu)
Dear Hou, Thank you for reviewing! > 1. > > #include "access/transam.h" > #include "catalog/pg_language_d.h" > +#include "fe_utils/string_utils.h" > #include "pg_upgrade.h" > > It seems we don't need this head file anymore. Removed. > 2. > + if (*invalidated &&

Re: pg_rewind WAL segments deletion pitfall

2023-09-12 Thread Alexander Kukushkin
Hi, Please find attached v5. What changed: 1. Now we collect which files should be kept in a separate hash table. 2. Decision whether to keep the file is made only when the file is actually missing on the source. That is, remaining WAL files will be copied over as it currently is, although it

RE: pg_upgrade and logical replication

2023-09-12 Thread Zhijie Hou (Fujitsu)
On Monday, September 11, 2023 6:32 PM vignesh C wrote: > > > The attached v7 patch has the changes for the same. Thanks for updating the patch, here are few comments: 1. +/* + * binary_upgrade_sub_replication_origin_advance + * + * Update the remote_lsn for the subscriber's replication

Re: Support prepared statement invalidation when result types change

2023-09-12 Thread Jelte Fennema
When running the Postgres JDBC tests with this patchset I found dumb mistake in my last patch where I didn't initialize the contents of orig_params correctly. This new patchset fixes that. v4-0001-Support-prepared-statement-invalidation-when-resu.patch Description: Binary data

Document that PG_TRY block cannot have a return statement

2023-09-12 Thread Serpent
Hi, I created a tiny patch that documents that the code block following PG_TRY() cannot have any return statement. Please CC me, as I'm not subscribed to this list. commit 1968e53b9a649691fbedbdc059e2e933aa2b471b Author: Serpent7776 Date: Tue Sep 12 14:38:09 2023 +0200 Document that

Re: Possibility to disable `ALTER SYSTEM`

2023-09-12 Thread Martín Marqués
Hi, > Maybe in addition to making "ALTER SYSTEM" throw an error, the feature that > disables it should also disable reading postgresql.auto.conf? Maybe even > delete it and make it an error if it is present on startup (maybe even warn > if it shows up while the DB is running?). The outcome

Re: Detoasting optionally to make Explain-Analyze less misleading

2023-09-12 Thread Matthias van de Meent
On Tue, 12 Sept 2023 at 12:56, stepan rutz wrote: > > Hi, > > I have fallen into this trap and others have too. If you run > EXPLAIN(ANALYZE) no de-toasting happens. This makes query-runtimes > differ a lot. The bigger point is that the average user expects more > from EXPLAIN(ANALYZE) than what

Re: Removing unneeded self joins

2023-09-12 Thread Andrey Lepikhov
On 5/7/2023 21:28, Andrey Lepikhov wrote: Hi, During the significant code revision in v.41 I lost some replacement operations. Here is the fix and extra tests to check this in the future. Also, Tom added the JoinDomain structure five months ago, and I added code to replace relids for that

RE: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-12 Thread Hayato Kuroda (Fujitsu)
Dear Peter, Thank you for reviewing! PSA new version. > src/backend/replication/slot.c > > 3. InvalidatePossiblyObsoleteSlot > > + /* > + * Raise an ERROR if the logical replication slot is invalidating. It > + * would not happen because max_slot_wal_keep_size is set to -1 during > + * the

RE: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-12 Thread Hayato Kuroda (Fujitsu)
Dear Peter, Thank you for reviewing! = > Commit message > > 1. > Note that the pg_resetwal command would remove WAL files, which are required > as > restart_lsn. If WALs required by logical replication slots are removed, they > are > unusable. Therefore, during the upgrade, slot

Server crash on RHEL 9/s390x platform against PG16

2023-09-12 Thread Suraj Kharage
Hi, Found server crash on RHEL 9/s390x platform with below test case - *Machine details:* *[edb@9428da9d2137 postgres]$ cat /etc/redhat-release AlmaLinux release 9.2 (Turquoise Kodkod)[edb@9428da9d2137 postgres]$ lscpuArchitecture: s390x CPU op-mode(s): 32-bit, 64-bit Address

Re: trying again to get incremental backup

2023-09-12 Thread Dilip Kumar
On Wed, Aug 30, 2023 at 9:20 PM Robert Haas wrote: > > Meanwhile, here's a rebased set of patches. The somewhat-primitive > attempts at writing tests are in 0009, but they don't work, for the > reasons explained above. I think I'd probably like to go ahead and > commit 0001 and 0002 soon if there

Re: persist logical slots to disk during shutdown checkpoint

2023-09-12 Thread Amit Kapila
On Tue, Sep 12, 2023 at 10:55 AM Michael Paquier wrote: > > On Mon, Sep 11, 2023 at 02:49:49PM +0530, Amit Kapila wrote: > > Please see the v11 attached, that rewords all the places of the patch > that need clarifications IMO. I've found that the comment additions > in

Detoasting optionally to make Explain-Analyze less misleading

2023-09-12 Thread stepan rutz
Hi, I have fallen into this trap and others have too. If you run EXPLAIN(ANALYZE) no de-toasting happens. This makes query-runtimes differ a lot. The bigger point is that the average user expects more from EXPLAIN(ANALYZE) than what it provides. This can be suprising. You can force detoasting

Re: CHECK Constraint Deferrable

2023-09-12 Thread vignesh C
On Thu, 7 Sept 2023 at 17:26, Himanshu Upadhyaya wrote: > > Attached is v2 of the patch, rebased against the latest HEAD. Thanks for working on this, few comments: 1) "CREATE TABLE check_constr_tbl (i int CHECK(i<>0) DEFERRABLE, t text)" is crashing in windows, the same was noticed in CFBot too:

Re: Infinite Interval

2023-09-12 Thread Dean Rasheed
On Thu, 24 Aug 2023 at 14:51, Ashutosh Bapat wrote: > > The patches still apply. But here's a rebased version with one white > space error fixed. Also ran pgindent. > This needs another rebase, and it looks like the infinite interval input code is broken. I took a quick look, and had a couple

Re: SQL:2011 application time

2023-09-12 Thread jian he
hi. some trivial issue: in src/backend/catalog/index.c /* * System attributes are never null, so no need to check. */ if (attnum <= 0) since you already checked attnum == 0 so here you can just attnum < 0? - ERROR: column "valid_at" named in

Re: Add 'worker_type' to pg_stat_subscription

2023-09-12 Thread Peter Smith
On Tue, Sep 12, 2023 at 1:44 PM Michael Paquier wrote: > > On Tue, Sep 12, 2023 at 01:07:51PM +1000, Peter Smith wrote: > > The type is only assigned during worker process launch, and during > > process cleanup [1]. It's only possible to be UNKNOWN after > > logicalrep_worker_cleanup(). > > > >

RE: pg_upgrade and logical replication

2023-09-12 Thread Hayato Kuroda (Fujitsu)
Dear Vignesh, Thank you for updating the patch! Here are some comments. Sorry if there are duplicate comments - the thread revived recently so I might lose my memory. 01. General Is there a possibility that apply worker on old cluster connects to the publisher during the upgrade? Regarding the

Re: Cleaning up array_in()

2023-09-12 Thread jian he
On Mon, Sep 11, 2023 at 8:00 PM Alexander Lakhin wrote: > > I can confirm that all those anomalies are fixed now. > But new version brings a warning when compiled with gcc: > arrayfuncs.c:659:9: warning: variable 'prev_tok' is uninitialized when used > here [-Wuninitialized] >

Re: Row pattern recognition

2023-09-12 Thread Tatsuo Ishii
Regarding v6 patch: > SELECT company, tdate, price, > first_value(price) OVER w, > last_value(price) OVER w, > max(price) OVER w, > min(price) OVER w, > sum(price) OVER w, > avg(price) OVER w, > count(price) OVER w > FROM stock > WINDOW w AS ( > PARTITION BY company > ROWS BETWEEN CURRENT

RE: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-12 Thread Hayato Kuroda (Fujitsu)
Dear Michael, > On Tue, Sep 12, 2023 at 02:33:25AM +, Zhijie Hou (Fujitsu) wrote: > > 2. > > + if (*invalidated && SlotIsLogical(s) && IsBinaryUpgrade) > > + elog(ERROR, "Replication slots must not be invalidated > during the upgrade."); > > > > I think normally

Re: Create shorthand for including all extra tests

2023-09-12 Thread Peter Eisentraut
On 04.09.23 22:30, Tom Lane wrote: Noah Misch writes: On Mon, Sep 04, 2023 at 08:16:44PM +0200, Daniel Gustafsson wrote: On 4 Sep 2023, at 17:01, Tom Lane wrote: I think this is a seriously bad idea. The entire point of not including certain tests in check-world by default is that the

Re: psql - pager support - using invisible chars for signalling end of report

2023-09-12 Thread Peter Eisentraut
On 06.09.23 05:07, Thomas Munro wrote: This sounds better than the QUERY_SEPARATOR hack from commit 664d757531e, and similar kludges elsewhere. I think Pavel and David are right about NUL being impossible in psql query output, no? Note: -z, --field-separator-zero

Re: remaining sql/json patches

2023-09-12 Thread Peter Eisentraut
On 06.09.23 17:01, Alvaro Herrera wrote: Assert()ing that a pointer is not null, and in the next line dereferencing that pointer, is useless: the process would crash anyway at the time of dereference, so the Assert() adds no value. Better to leave the assert out. I don't think this is quite

Re: proposal: psql: show current user in prompt

2023-09-12 Thread Peter Eisentraut
On 11.09.23 13:59, Jelte Fennema wrote: @Tom and @Robert, since you originally suggested extending the protocol for this, I think some input from you on the protocol design would be quite helpful. BTW, this protocol extension is the main reason I personally care for this patch, because it would

Re: Adding a pg_get_owned_sequence function?

2023-09-12 Thread Peter Eisentraut
On 09.06.23 21:19, Dagfinn Ilmari Mannsåker wrote: 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 (which is even acknowledged in the

Re: [ psql - review request ] review request for \d+ tablename, \d+ indexname indenting

2023-09-12 Thread 쿼리트릭스
Thank you for letting me know more about the test method. As you said, we applied the patch using git diff and created a test case on the src/test/regress/sql. Considering your question, we think it is enough to assume just one subpartition level. Because, Concidering the common partition

RE: [PoC] pg_upgrade: allow to upgrade publisher node

2023-09-12 Thread Hayato Kuroda (Fujitsu)
Dear Peter, Thank you for reviewing! Before posting new patch set, I want to respond some comments. > > == > 1. GENERAL -- Cluster Terminology > > This is not really a problem of your patch, but during message review, > I noticed the terms old/new cluster VERSUS source/target cluster and >

Re: Make --help output fit within 80 columns per line

2023-09-12 Thread Peter Eisentraut
I like this work a lot. It's good to give developers easy to verify guidance about formatting the --help messages. However, I think instead of just adding a bunch of line breaks to satisfy the test, we should really try to make the lines shorter by rewording. Otherwise, chances are we are

Re: Row pattern recognition

2023-09-12 Thread Tatsuo Ishii
>> What about leaving this (reevaluation) for now? Because: >> >> 1) we don't have CLASSIFIER >> 2) we don't allow to give CLASSIFIER to PREV as its arggument >> >> so I think we don't need to worry about this for now. > > Sure. I'm all for deferring features to make it easier to iterate; I >

Re: Make psql's qeury canceling test simple by using signal() routine of IPC::Run

2023-09-12 Thread Michael Paquier
On Wed, Sep 06, 2023 at 12:45:24AM +0900, Yugo NAGATA wrote: > I attached the update patch. I removed the incorrect comments and > unnecessary lines. Also, I rewrote the test to use "skip_all" instead > of SKIP because we skip the whole test rather than a part of it. Thanks for checking how

Re: pg_rewind with cascade standby doesn't work well

2023-09-12 Thread Michael Paquier
On Mon, Sep 11, 2023 at 07:04:30PM +0300, Aleksander Alekseev wrote: > Many thanks for submitting the patch. I added it to the nearest open > commitfest [1]. > > IMO a test is needed that makes sure no one is going to break this in > the future. You definitely need more complex test scenarios