Re: speed up unicode decomposition and recomposition

2020-10-23 Thread Michael Paquier
On Fri, Oct 23, 2020 at 08:24:06PM -0400, Tom Lane wrote: > I'd advise not putting conv_compare() between get_code_entry() and > the header comment for get_code_entry(). Looks good otherwise. Indeed. I have adjusted the position of the comment, and applied the fix. Thanks for the report. -- Mic

Re: Tab complete for alter table rls

2020-10-23 Thread Li Japin
Thanks Michael! -- Best regards Japin Li > On Oct 24, 2020, at 9:49 AM, Michael Paquier wrote: > > On Fri, Oct 23, 2020 at 04:37:18PM +0900, Michael Paquier wrote: >> No worries. Good catch. I'll try to test that and apply it later, >> but by reading the code it looks like you got that righ

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Tom Lane
Heikki Linnakangas writes: > On 23/10/2020 17:51, Tom Lane wrote: >> Seems like we could have gotten rid of that by now, but when exactly >> does it become fair game? And can we have a non-ad-hoc process for >> getting rid of such cruft? > I did some grepping for strings like "version 7", "pre-8

Re: Tab complete for alter table rls

2020-10-23 Thread Michael Paquier
On Fri, Oct 23, 2020 at 04:37:18PM +0900, Michael Paquier wrote: > No worries. Good catch. I'll try to test that and apply it later, > but by reading the code it looks like you got that right. Checked and applied on HEAD, thanks! -- Michael signature.asc Description: PGP signature

Re: speed up unicode decomposition and recomposition

2020-10-23 Thread Tom Lane
Michael Paquier writes: > On Fri, Oct 23, 2020 at 04:18:13PM -0700, Mark Dilger wrote: >> On Oct 23, 2020, at 9:07 AM, Tom Lane wrote: >>> genhtml: WARNING: function data mismatch at >>> /home/postgres/pgsql/src/common/unicode_norm.c:102 > I can see the problem on Debian GID with lcov 1.14-2.

Re: minor problem in boolean cast

2020-10-23 Thread Tom Lane
Cary Huang writes: > I noticed that when casting a string to boolean value with input 'of' it > still cast it to 'f'. I think with 'of', it should give an error because > 'off' is the expected candidate. This may not be intended so I made a simple > patch to address this.  It's absolutely inte

Re: speed up unicode decomposition and recomposition

2020-10-23 Thread Michael Paquier
On Fri, Oct 23, 2020 at 04:18:13PM -0700, Mark Dilger wrote: > On Oct 23, 2020, at 9:07 AM, Tom Lane wrote: >> genhtml: WARNING: function data mismatch at >> /home/postgres/pgsql/src/common/unicode_norm.c:102 >> >> I've never seen anything like that before. I suppose it means that >> something

minor problem in boolean cast

2020-10-23 Thread Cary Huang
Hi I noticed that when casting a string to boolean value with input 'of' it still cast it to 'f'. I think with 'of', it should give an error because 'off' is the expected candidate. This may not be intended so I made a simple patch to address this.  ``` postgres=# select cast('of' as boole

Re: new heapcheck contrib module

2020-10-23 Thread Mark Dilger
> On Oct 23, 2020, at 4:12 PM, Tom Lane wrote: > > Mark Dilger writes: >> You certainly appear to be right about that. I've added the extra checks, >> and extended the regression test to include them. Patch attached. > > Pushed with some more fooling about. The "bit reversal" idea is not

Re: speed up unicode decomposition and recomposition

2020-10-23 Thread Mark Dilger
> On Oct 23, 2020, at 9:07 AM, Tom Lane wrote: > > I chanced to do an --enable-coverage test run today, and I got this > weird message during "make coverage-html": > > genhtml: WARNING: function data mismatch at > /home/postgres/pgsql/src/common/unicode_norm.c:102 > > I've never seen anythi

Re: new heapcheck contrib module

2020-10-23 Thread Tom Lane
Mark Dilger writes: > You certainly appear to be right about that. I've added the extra checks, > and extended the regression test to include them. Patch attached. Pushed with some more fooling about. The "bit reversal" idea is not a sufficient guide to picking values that will hit all the co

Re: new heapcheck contrib module

2020-10-23 Thread Tom Lane
Mark Dilger writes: >> On Oct 23, 2020, at 11:51 AM, Tom Lane wrote: >> I do not have 64-bit big-endian hardware to play with unfortunately. >> But what I suspect is happening here is less about endianness and >> more about alignment pickiness; or maybe we were unlucky enough to >> index off the

Re: Mop-up around psql's \connect behavior

2020-10-23 Thread Tom Lane
Kyotaro Horiguchi writes: > At Thu, 22 Oct 2020 15:23:04 -0400, Tom Lane wrote in >> ... The only real objection I can see is that it could >> hold a server connection open when the user thinks there is none; >> but that could only happen in a non-interactive script, and it does >> not seem like

Re: new heapcheck contrib module

2020-10-23 Thread Mark Dilger
> On Oct 23, 2020, at 11:51 AM, Tom Lane wrote: > > Hmm, we're not out of the woods yet: thorntail is even less happy > than before. > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=thorntail&dt=2020-10-23%2018%3A08%3A11 > > I do not have 64-bit big-endian hardware to play with unf

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Heikki Linnakangas
On 23/10/2020 17:51, Tom Lane wrote: But anyway, this was about documentation not code. What I'm wondering about is when to drop things like, say, this bit in the regex docs: Two significant incompatibilities exist between AREs and the ERE syntax recognized by pre-7.4 releases of Post

Re: new heapcheck contrib module

2020-10-23 Thread Peter Geoghegan
On Fri, Oct 23, 2020 at 11:51 AM Tom Lane wrote: > /* Set up context information about this next tuple */ > ctx.lp_len = ItemIdGetLength(ctx.itemid); > ctx.tuphdr = (HeapTupleHeader) PageGetItem(ctx.page, ctx.itemid); > ctx.natts = HeapTupleHeaderGet

Re: new heapcheck contrib module

2020-10-23 Thread Tom Lane
Hmm, we're not out of the woods yet: thorntail is even less happy than before. https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=thorntail&dt=2020-10-23%2018%3A08%3A11 I do not have 64-bit big-endian hardware to play with unfortunately. But what I suspect is happening here is less about end

Re: [var]char versus character [varying]

2020-10-23 Thread Tom Lane
James Coleman writes: > I've been wondering recently why the external canonical form of types > like char and varchar doesn't match the typname in pg_type. Mostly because the SQL standard wants certain spellings, some of which aren't even single words (e.g. DOUBLE PRECISION). There are cases whe

Re: new heapcheck contrib module

2020-10-23 Thread Mark Dilger
> On Oct 23, 2020, at 11:04 AM, Tom Lane wrote: > > I wrote: >> Mark Dilger writes: >>> The patch I *should* have attached last night this time: > >> Thanks, I'll do some big-endian testing with this. > > Seems to work, so I pushed it (after some compulsive fooling > about with whitespace a

Re: vacuum -vs reltuples on insert only index

2020-10-23 Thread Peter Geoghegan
On Fri, Oct 23, 2020 at 8:51 AM Jehan-Guillaume de Rorthais wrote: > Before 0d861bbb70, btvacuumpage was adding to relation stats the number of > leaving lines in the block using: > > stats->num_index_tuples += maxoff - minoff + 1; > > After 0d861bbb70, it is set using new variable nhtidslive: >

[var]char versus character [varying]

2020-10-23 Thread James Coleman
I've been wondering recently why the external canonical form of types like char and varchar doesn't match the typname in pg_type. Additionally, the alternative/extended names are hardcoded in format_type.c rather than being an additional column in that catalog table. I would have assumed there wer

Re: new heapcheck contrib module

2020-10-23 Thread Tom Lane
I wrote: > Mark Dilger writes: >> The patch I *should* have attached last night this time: > Thanks, I'll do some big-endian testing with this. Seems to work, so I pushed it (after some compulsive fooling about with whitespace and perltidy-ing). It appears to me that the code coverage for verif

Re: Deleting older versions in unique indexes to avoid page splits

2020-10-23 Thread Peter Geoghegan
On Fri, Oct 23, 2020 at 9:03 AM Simon Riggs wrote: > Please publish details of how long a pre-split cleaning operation > takes and what that does to transaction latency. It *might* be true > that the cost of avoiding splits is worth it in balance against the > cost of splitting, but it might not.

Re: The ultimate extension hook.

2020-10-23 Thread Jehan-Guillaume de Rorthais
On Thu, 24 Sep 2020 17:08:44 +1200 David Rowley wrote: [...] > I wondered if there was much in the way of use-cases like a traffic > filter, or statement replication. I wasn't sure if it was a solution > looking for a problem or not, but it seems like it could be productive > to talk about possibi

Re: [PATCH] Add section headings to index types doc

2020-10-23 Thread David G. Johnston
On Fri, Oct 23, 2020 at 3:18 AM Jürgen Purtz wrote: > and add a link to the "CREATE INDEX" command from the chapter preamble. > > is the link necessary? > I suppose it would make more sense to add it to the previous section - the introduction page. I do think having a link (or more than one) to

Re: speed up unicode decomposition and recomposition

2020-10-23 Thread Tom Lane
I chanced to do an --enable-coverage test run today, and I got this weird message during "make coverage-html": genhtml: WARNING: function data mismatch at /home/postgres/pgsql/src/common/unicode_norm.c:102 I've never seen anything like that before. I suppose it means that something about 783f0c

Re: Deleting older versions in unique indexes to avoid page splits

2020-10-23 Thread Simon Riggs
On Thu, 22 Oct 2020 at 18:42, Peter Geoghegan wrote: > > The average latency is x2. What is the distribution of latencies? > > Occasional very long or all uniformly x2? > > The latency is generally very even with the patch. There is a constant > hum of cleanup by the new mechanism in the case of

vacuum -vs reltuples on insert only index

2020-10-23 Thread Jehan-Guillaume de Rorthais
Hello, I've found a behavior change with pg_class.reltuples on btree index. With only insert activity on a table, when an index is processed, its related reltuples is set to 0. Here is a demo script: -- force index cleanup set vacuum_cleanup_index_scale_factor to 0; drop table if exists t;

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Stephen Frost
Greetings, * Tom Lane (t...@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > We do need to decide at what point we're going to move forward pg_dump's > > oldest server version support. > > I'm not really in a big hurry to move it forward at all. There were > good solid reasons to drop support

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Tom Lane
Stephen Frost writes: > We do need to decide at what point we're going to move forward pg_dump's > oldest server version support. I'm not really in a big hurry to move it forward at all. There were good solid reasons to drop support for pre-schema and pre-pg_depend servers, because of the messy

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Ian Lawrence Barwick
2020年10月23日(金) 23:12 Stephen Frost : > > Greetings, > > * Tom Lane (t...@sss.pgh.pa.us) wrote: > > Stephen Frost writes: > > > Isn't this a bit pre-mature as we still support running pg_dump against > > > 8.0 clusters..? > > > > The removed para was discussing the behavior of pg_dump itself. What

Re: new heapcheck contrib module

2020-10-23 Thread Tom Lane
Mark Dilger writes: > The patch I *should* have attached last night this time: Thanks, I'll do some big-endian testing with this. regards, tom lane

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Stephen Frost
Greetings, * Tom Lane (t...@sss.pgh.pa.us) wrote: > Stephen Frost writes: > > Isn't this a bit pre-mature as we still support running pg_dump against > > 8.0 clusters..? > > The removed para was discussing the behavior of pg_dump itself. What > server version you run it against isn't relevant.

Re: new heapcheck contrib module

2020-10-23 Thread Mark Dilger
> On Oct 22, 2020, at 9:21 PM, Mark Dilger wrote: > > > >> On Oct 22, 2020, at 7:01 PM, Tom Lane wrote: >> >> Mark Dilger writes: >>> Ahh, crud. It's because >>> syswrite($fh, '\x77\x77\x77\x77', 500) >>> is wrong twice. The 500 was wrong, but the string there isn't the bit >>> patt

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Tom Lane
Stephen Frost writes: > Isn't this a bit pre-mature as we still support running pg_dump against > 8.0 clusters..? The removed para was discussing the behavior of pg_dump itself. What server version you run it against isn't relevant. Having said that, there are a *lot* of past-their-sell-by-date

Re: git clone failed in windows

2020-10-23 Thread Sridhar N Bamandlapally
Thanks All, it wotked with git://git.postgresql.org/git/postgresql.git Thanks Sridhar On Fri, Oct 23, 2020 at 7:02 PM Amit Kapila wrote: > On Fri, Oct 23, 2020 at 6:21 PM Dave Page wrote: > > > > On Fri, Oct 23, 2020 at 1:39 PM Amit Kapila > wrote: > >> > >> On Fri, Oct 23, 2020 at 4:39 PM

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Stephen Frost
Greetings, * Heikki Linnakangas (hlinn...@iki.fi) wrote: > On 06/10/2020 15:15, Ian Lawrence Barwick wrote: > >2020年10月6日(火) 21:13 Ian Lawrence Barwick : > >>The pg_dump doc page [1], under the -t/--table option, contains a Note > >>documenting the behavioural differences introduced in PostgreSQL

Re: git clone failed in windows

2020-10-23 Thread Amit Kapila
On Fri, Oct 23, 2020 at 6:21 PM Dave Page wrote: > > On Fri, Oct 23, 2020 at 1:39 PM Amit Kapila wrote: >> >> On Fri, Oct 23, 2020 at 4:39 PM Sridhar N Bamandlapally >> wrote: >> > >> > Am trying to clone postgresql git, getting error >> > >> > D:\sridhar>git clone https://git.postgresql.org/git

Re: Parallel copy

2020-10-23 Thread Ashutosh Sharma
On Fri, Oct 23, 2020 at 5:42 PM Ashutosh Sharma wrote: > > Hi Vignesh, > > Thanks for the updated patches. Here are some more comments that I can > find after reviewing your latest patches: > > +/* > + * This structure helps in storing the common data from CopyStateData that > are > + * required

Re: Enumize logical replication message actions

2020-10-23 Thread Ashutosh Bapat
On Fri, 23 Oct 2020 at 18:23, Amit Kapila wrote: > On Fri, Oct 23, 2020 at 11:50 AM Kyotaro Horiguchi > wrote: > > > > At Thu, 22 Oct 2020 22:31:41 -0300, Alvaro Herrera < > alvhe...@alvh.no-ip.org> wrote in > > > On 2020-Oct-22, Ashutosh Bapat wrote: > > > > > > > On Thu, 22 Oct 2020 at 14:46,

Re: Enumize logical replication message actions

2020-10-23 Thread Ashutosh Bapat
On Fri, 23 Oct 2020 at 17:02, Kyotaro Horiguchi wrote: > At Fri, 23 Oct 2020 19:53:00 +1100, Peter Smith > wrote in > > On Fri, Oct 23, 2020 at 5:20 PM Kyotaro Horiguchi > > wrote: > > > > > > At Thu, 22 Oct 2020 22:31:41 -0300, Alvaro Herrera < > alvhe...@alvh.no-ip.org> wrote in > > > > On 20

Re: Enumize logical replication message actions

2020-10-23 Thread Amit Kapila
On Fri, Oct 23, 2020 at 11:50 AM Kyotaro Horiguchi wrote: > > At Thu, 22 Oct 2020 22:31:41 -0300, Alvaro Herrera > wrote in > > On 2020-Oct-22, Ashutosh Bapat wrote: > > > > > On Thu, 22 Oct 2020 at 14:46, Kyotaro Horiguchi > > > wrote: > > > > > > pg_send_logicalrep_msg_type() looks somewhat t

Re: git clone failed in windows

2020-10-23 Thread Dave Page
On Fri, Oct 23, 2020 at 1:39 PM Amit Kapila wrote: > On Fri, Oct 23, 2020 at 4:39 PM Sridhar N Bamandlapally > wrote: > > > > Am trying to clone postgresql git, getting error > > > > D:\sridhar>git clone https://git.postgresql.org/git/postgresql.git > > Cloning into 'postgresql'... > > remote: E

Re: Enumize logical replication message actions

2020-10-23 Thread Ashutosh Bapat
On Fri, 23 Oct 2020 at 06:50, Kyotaro Horiguchi wrote: > > Those two switch()es are apparently redundant. That code is exactly > equivalent to: > > apply_dispatch(s) > { > LogicalRepMsgType msgtype = pq_getmsgtype(s); > > switch (msgtype) > { > case LOGICAL_REP_MSG_BEGIN: > app

Re: git clone failed in windows

2020-10-23 Thread Amit Kapila
On Fri, Oct 23, 2020 at 4:39 PM Sridhar N Bamandlapally wrote: > > Am trying to clone postgresql git, getting error > > D:\sridhar>git clone https://git.postgresql.org/git/postgresql.git > Cloning into 'postgresql'... > remote: Enumerating objects: 806507, done. > remote: Counting objects: 100% (8

Re: git clone failed in windows

2020-10-23 Thread Andrey Borodin
Hi Sridhar! > 23 окт. 2020 г., в 16:09, Sridhar N Bamandlapally > написал(а): > > Am trying to clone postgresql git, getting error > > D:\sridhar>git clone https://git.postgresql.org/git/postgresql.git > Cloning into 'postgresql'... > remote: Enumerating objects: 806507, done. > remote: Counti

Logical replication from HA cluster

2020-10-23 Thread Andrey Borodin
Hi! I'm working on providing smooth failover to a CDC system in HA cluster. Currently, we do not replicate logical slots and when we promote a replica. This renders impossible continuation of changed data capture (CDC) from new primary after failover. We cannot start logical replication from LS

Re: git clone failed in windows

2020-10-23 Thread Sridhar N Bamandlapally
git clone repository showing failed from Visual studio [image: git-clone-error.PNG] Please let me know is there any issue, Thanks Sridhar BN On Fri, Oct 23, 2020 at 4:39 PM Sridhar N Bamandlapally < sridhar@gmail.com> wrote: > Am trying to clone postgresql git, getting error > > D:\sridha

Re: Error in pg_restore (could not close data file: Success)

2020-10-23 Thread Andrii Tkach
Maybe it would be better to commit this patches to mainstream, but I don't realy know. ср, 21 окт. 2020 г. в 09:20, Kyotaro Horiguchi : > At Wed, 21 Oct 2020 13:45:15 +0900 (JST), Kyotaro Horiguchi < > horikyota@gmail.com> wrote in > > > https://www.postgresql.org/message-id/flat/20200416.181

Re: Parallel copy

2020-10-23 Thread Ashutosh Sharma
Hi Vignesh, Thanks for the updated patches. Here are some more comments that I can find after reviewing your latest patches: +/* + * This structure helps in storing the common data from CopyStateData that are + * required by the workers. This information will then be allocated and stored + * into

Re: Enumize logical replication message actions

2020-10-23 Thread Kyotaro Horiguchi
At Fri, 23 Oct 2020 19:53:00 +1100, Peter Smith wrote in > On Fri, Oct 23, 2020 at 5:20 PM Kyotaro Horiguchi > wrote: > > > > At Thu, 22 Oct 2020 22:31:41 -0300, Alvaro Herrera > > wrote in > > > On 2020-Oct-22, Ashutosh Bapat wrote: > > > > > > > On Thu, 22 Oct 2020 at 14:46, Kyotaro Horiguc

Re: Autovacuum on partitioned table (autoanalyze)

2020-10-23 Thread Kyotaro Horiguchi
Thanks you for the new version. At Fri, 23 Oct 2020 15:12:51 +0900, yuzuko wrote in > Hello, > > I reconsidered a way based on the v5 patch in line with > Horiguchi-san's comment. > > This approach is as follows: > - A partitioned table is checked whether it needs analyze like a plain > tab

git clone failed in windows

2020-10-23 Thread Sridhar N Bamandlapally
Am trying to clone postgresql git, getting error D:\sridhar>git clone https://git.postgresql.org/git/postgresql.git Cloning into 'postgresql'... remote: Enumerating objects: 806507, done. remote: Counting objects: 100% (806507/806507), done. remote: Compressing objects: 100% (122861/122861), done.

Re: [PATCH] Add extra statistics to explain for Nested Loop

2020-10-23 Thread e . sokolova
wrote: You should update the explain_parallel_append() plpgsql function created in that test file to make sure that both "rows" and the two new counters are changed to "N". There might be other similar changes needed. Thank you for watching this issue. I made the necessary changes in tests f

Re: [HACKERS] logical decoding of two-phase transactions

2020-10-23 Thread Amit Kapila
On Fri, Oct 23, 2020 at 3:41 PM Ajin Cherian wrote: > > > Amit, > I have also modified the stream callback APIs to not include > stream_commit_prpeared and stream_rollback_prepared, instead use the > non-stream APIs for the same functionality. > I have also updated the test_decoding and pgoutput p

Re: [PATCH] Add section headings to index types doc

2020-10-23 Thread Jürgen Purtz
On 21.10.20 23:12, David G. Johnston wrote: On Wed, Sep 30, 2020 at 4:25 AM Dagfinn Ilmari Mannsåker mailto:ilm...@ilmari.org>> wrote: Michael Paquier mailto:mich...@paquier.xyz>> writes: > On Mon, Aug 10, 2020 at 12:52:17PM +, Jürgen Purtz wrote: >> The new status of this

Re: speed up unicode decomposition and recomposition

2020-10-23 Thread John Naylor
On Thu, Oct 22, 2020 at 10:11 PM Michael Paquier wrote: > On Thu, Oct 22, 2020 at 05:50:52AM -0400, John Naylor wrote: > > Looks good to me. > > Thanks. Committed, then. Great work! > Thank you! -- John Naylor EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company

Re: partition routing layering in nodeModifyTable.c

2020-10-23 Thread Amit Langote
On Fri, Oct 23, 2020 at 4:04 PM Heikki Linnakangas wrote: > On 22/10/2020 16:49, Amit Langote wrote: > > On Tue, Oct 20, 2020 at 9:57 PM Amit Langote > > wrote: > >> On Mon, Oct 19, 2020 at 8:55 PM Heikki Linnakangas wrote: > >>> It's probably true that there's no performance gain from initiali

Re: Online checksums verification in the backend

2020-10-23 Thread Michael Paquier
On Fri, Oct 23, 2020 at 04:31:56PM +0800, Julien Rouhaud wrote: > I agree. However I'm assuming that this refactor is relying on the > not yet committed patch (in the nearby thread dealing with base backup > checksums check) to also refactor PageIsVerified? As all the logic > you removed was done

Re: dynamic result sets support in extended query protocol

2020-10-23 Thread Peter Eisentraut
On 2020-10-20 12:24, Dave Cramer wrote: Finally, we could do it an a best-effort basis.  We use binary format for registered types, until there is some invalidation event for the type, at which point we revert to default/text format until the end of a session (or until another

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Ian Lawrence Barwick
2020年10月23日(金) 17:52 Heikki Linnakangas : > > On 06/10/2020 15:15, Ian Lawrence Barwick wrote: > > 2020年10月6日(火) 21:13 Ian Lawrence Barwick : > >> > >> Hi > >> > >> The pg_dump doc page [1], under the -t/--table option, contains a Note > >> documenting the behavioural differences introduced in Post

Re: [doc] remove reference to pg_dump pre-8.1 switch behaviour

2020-10-23 Thread Heikki Linnakangas
On 06/10/2020 15:15, Ian Lawrence Barwick wrote: 2020年10月6日(火) 21:13 Ian Lawrence Barwick : Hi The pg_dump doc page [1], under the -t/--table option, contains a Note documenting the behavioural differences introduced in PostgreSQL 8.2. As it's been almost exactly 14 years since that note was

Re: Enumize logical replication message actions

2020-10-23 Thread Peter Smith
On Fri, Oct 23, 2020 at 5:20 PM Kyotaro Horiguchi wrote: > > At Thu, 22 Oct 2020 22:31:41 -0300, Alvaro Herrera > wrote in > > On 2020-Oct-22, Ashutosh Bapat wrote: > > > > > On Thu, 22 Oct 2020 at 14:46, Kyotaro Horiguchi > > > wrote: > > > > > > pg_send_logicalrep_msg_type() looks somewhat to

Re: Parallel copy

2020-10-23 Thread Heikki Linnakangas
I had a brief look at at this patch. Important work! A couple of first impressions: 1. The split between patches 0002-Framework-for-leader-worker-in-parallel-copy.patch and 0003-Allow-copy-from-command-to-process-data-from-file.patch is quite artificial. All the stuff introduced in the first

Re: Online checksums verification in the backend

2020-10-23 Thread Julien Rouhaud
On Fri, Oct 23, 2020 at 3:28 PM Michael Paquier wrote: > > On Mon, Oct 19, 2020 at 04:52:48PM +0900, Michael Paquier wrote: > > No issues with reporting the block number and the fork type in the SRF > > at least of course as this is helpful to detect the position of the > > broken blocks. For the

Re: warn_unused_results

2020-10-23 Thread Peter Eisentraut
On 2020-10-17 17:58, Tom Lane wrote: Peter Eisentraut writes: Forgetting to assign the return value of list APIs such as lappend() is a perennial favorite. The compiler can help point out such mistakes. GCC has an attribute warn_unused_results. Also C++ has standardized this under the name "n

Re: Bizarre coding in recovery target GUC management

2020-10-23 Thread Peter Eisentraut
On 2020-10-12 18:00, Tom Lane wrote: Would someone explain to me why assign_recovery_target_lsn and related GUC assign hooks throw errors, rather than doing so in the associated check hooks? An assign hook is not supposed to throw an error. Full stop, no exceptions. We wouldn't bother to separ

Re: "unix_socket_directories" should be GUC_LIST_INPUT?

2020-10-23 Thread Michael Paquier
On Fri, Oct 23, 2020 at 12:49:57AM -0400, Tom Lane wrote: > Although ... just to argue against myself for a moment, how likely > is it that pg_dump is going to be faced with the need to dump a > value for unix_socket_directories? I am trying to think about some scenarios here, but honestly I canno

Re: Implementing Incremental View Maintenance

2020-10-23 Thread Yugo NAGATA
Hi Adam, On Thu, 22 Oct 2020 10:07:29 -0400 Adam Brusselback wrote: > Hey there Yugo, > I've asked a coworker to prepare a self contained example that encapsulates > our multiple use cases. Thank you very much! > The immediate/eager approach is exactly what we need, as within the same > transa

Re: Hash support for row types

2020-10-23 Thread Peter Eisentraut
On 2020-10-20 17:10, Peter Eisentraut wrote: On 2020-10-20 01:32, Andres Freund wrote: How does this deal with row types with a field that doesn't have a hash function? Erroring out at runtime could cause queries that used to succeed, e.g. because all fields have btree ops, to fail, if we just h

Re: Tab complete for alter table rls

2020-10-23 Thread Michael Paquier
On Fri, Oct 23, 2020 at 05:22:57AM +, Li Japin wrote: > Sorry, I forgot add the subject. No worries. Good catch. I'll try to test that and apply it later, but by reading the code it looks like you got that right. -- Michael signature.asc Description: PGP signature

Re: Online checksums verification in the backend

2020-10-23 Thread Michael Paquier
On Mon, Oct 19, 2020 at 04:52:48PM +0900, Michael Paquier wrote: > No issues with reporting the block number and the fork type in the SRF > at least of course as this is helpful to detect the position of the > broken blocks. For the checksum found in the header and the one > calculated (named expe

Re: partition routing layering in nodeModifyTable.c

2020-10-23 Thread Heikki Linnakangas
On 22/10/2020 16:49, Amit Langote wrote: On Tue, Oct 20, 2020 at 9:57 PM Amit Langote wrote: On Mon, Oct 19, 2020 at 8:55 PM Heikki Linnakangas wrote: It's probably true that there's no performance gain from initializing them more lazily. But the reasoning and logic around the initialization