Re: [PATCH] Add features to pg_stat_statements

2020-09-22 Thread Katsuragi Yuta
On 2020-09-18 18:49, Julien Rouhaud wrote: Did you consider also adding the cumulated number of evicted entries? This could be useful to know how to configure pg_stat_statements.max. Thank you for your comments! I overlooked the cumulated number of evicted entries. This statistic looks importa

RE: [Patch] Optimize dropping of relation buffers using dlist

2020-09-22 Thread tsunakawa.ta...@fujitsu.com
From: Amit Kapila > The idea is that we can't use this optimization if the value is not > cached because we can't rely on lseek behavior. See all the discussion > between Horiguchi-San and me in the thread above. So, how would you > ensure that if we don't use Kirk-San's proposal? Hmm, buggy Linu

Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration

2020-09-22 Thread Peter Eisentraut
On 2020-09-23 03:50, Michael Paquier wrote: On Tue, Sep 22, 2020 at 11:45:14PM +0200, Peter Eisentraut wrote: However, I still think the integer type use is a bit inconsistent. In both cases, using strtoul() and dealing with unsigned integer types between parsing and final use would be more con

Re: Keep elog(ERROR) and ereport(ERROR) calls in the cold path

2020-09-22 Thread Peter Eisentraut
On 2020-09-22 22:42, David Rowley wrote: On Tue, 22 Sep 2020 at 19:08, David Rowley wrote: I ran another scale=5 TPCH benchmark on v4 against f859c2ffa using gcc 9.3. I'm unable to see any gains with this, however, the results were pretty noisy. I only ran pgbench for 60 seconds per query. I'll

Re: ALTER TABLE .. DETACH PARTITION CONCURRENTLY

2020-09-22 Thread Amit Langote
Hi Alvaro, Studying the patch to understand how it works. On Tue, Aug 4, 2020 at 8:49 AM Alvaro Herrera wrote: > Why two transactions? The reason is that in order for this to work, we > make a catalog change (mark it detached), and commit so that all > concurrent transactions can see the change

RE: Use appendStringInfoString and appendPQExpBufferStr where possible

2020-09-22 Thread Hou, Zhijie
Hi I made a slight update to the patch > > > I found some more places that should use appendPQExrBufferStr instead > > of appendPQExpBuffer. > > > > > > Here is the patch. > > > > Seems like a good idea. Please add it to the next commitfest. > > Thanks, added it to the next commitfest. > https:

RE: [Patch] Optimize dropping of relation buffers using dlist

2020-09-22 Thread tsunakawa.ta...@fujitsu.com
From: Jamison, Kirk/ジャミソン カーク > I revised the patch based from my understanding of Horiguchi-san's comment, > but I could be wrong. > Quoting: > > " > + /* Get the number of blocks for the supplied relation's > fork */ > + nblocks = smgrnblocks(smgr_reln, >

Re: [Patch] Optimize dropping of relation buffers using dlist

2020-09-22 Thread Amit Kapila
On Wed, Sep 23, 2020 at 8:04 AM tsunakawa.ta...@fujitsu.com wrote: > > From: Amit Kapila > > > > > Don't > > > > > we need to guarantee the cache to be valid while recovery? > > > > > > > > > > > > > One possibility could be that we somehow detect that the value we > > > > are using is cached one

Re: [Patch] Optimize dropping of relation buffers using dlist

2020-09-22 Thread Amit Kapila
On Wed, Sep 23, 2020 at 7:56 AM tsunakawa.ta...@fujitsu.com wrote: > > (3) > if (reln->smgr_cached_nblocks[forknum] == blocknum) > reln->smgr_cached_nblocks[forknum] = blocknum + 1; > else > + { > + /* > +* DropRelFileNodeBuffers

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

2020-09-22 Thread Amit Kapila
On Tue, Sep 22, 2020 at 5:18 PM Ajin Cherian wrote: > > On Sun, Sep 20, 2020 at 3:31 PM Dilip Kumar wrote: > > > 3. > > > > + /* > > + * If it's ROLLBACK PREPARED then handle it via callbacks. > > + */ > > + if (TransactionIdIsValid(xid) && > > + !SnapBuildXactNeedsSkip(ctx->snapshot_builder, buf

Re: Removing unneeded self joins

2020-09-22 Thread David Rowley
On Fri, 3 Apr 2020 at 17:43, Andrey Lepikhov wrote: > v.23 in attachment: Hi, This is only a partial review as I see the patch still does not incorporate the self join detection method I mentioned in March 2019 and the one the patch only partially works. Here's the partial review which contains

RE: [Patch] Optimize dropping of relation buffers using dlist

2020-09-22 Thread k.jami...@fujitsu.com
On Wednesday, September 23, 2020 11:26 AM, Tsunakawa, Takayuki wrote: > I looked at v14. Thank you for checking it! > (1) > + /* Get the total number of blocks for the supplied relation's > fork */ > + for (j = 0; j < nforks; j++) > + { > +

Re: Syncing pg_multixact directories

2020-09-22 Thread Thomas Munro
On Wed, Sep 23, 2020 at 4:09 PM Michael Paquier wrote: > On Tue, Sep 22, 2020 at 07:05:36PM -0700, Andres Freund wrote: > > On 2020-09-23 13:45:51 +1200, Thomas Munro wrote: > >> I think we should be ensuring that directory entries for newly created > >> multixact files are durable at checkpoint t

Re: Syncing pg_multixact directories

2020-09-22 Thread Michael Paquier
On Tue, Sep 22, 2020 at 07:05:36PM -0700, Andres Freund wrote: > On 2020-09-23 13:45:51 +1200, Thomas Munro wrote: >> I think we should be ensuring that directory entries for newly created >> multixact files are durable at checkpoint time. Please see attached. > > Good catch! Probably that should

Re: PostmasterIsAlive() in recovery (non-USE_POST_MASTER_DEATH_SIGNAL builds)

2020-09-22 Thread Thomas Munro
On Wed, Sep 23, 2020 at 2:27 PM David Rowley wrote: > I've gone as far as running the recovery tests on the v3-0001 patch > using a Windows machine. They pass: Thanks! I pushed that one, because it was effectively a bug fix (WaitLatch() without a latch was supposed to work). I'll wait longer fo

RE: [Patch] Optimize dropping of relation buffers using dlist

2020-09-22 Thread tsunakawa.ta...@fujitsu.com
From: Amit Kapila > > > > Don't > > > > we need to guarantee the cache to be valid while recovery? > > > > > > > > > > One possibility could be that we somehow detect that the value we > > > are using is cached one and if so then only do this optimization. > > > > I basically like this direction.

Re: PostmasterIsAlive() in recovery (non-USE_POST_MASTER_DEATH_SIGNAL builds)

2020-09-22 Thread David Rowley
On Sun, 20 Sep 2020 at 09:29, Thomas Munro wrote: > > Although I know from CI that this builds and passes "make check" on > Windows, I'm hoping to attract some review of the 0001 patch from a > Windows person, and confirmation that it passes "check-world" (or at > least src/test/recovery check) th

RE: [Patch] Optimize dropping of relation buffers using dlist

2020-09-22 Thread tsunakawa.ta...@fujitsu.com
I looked at v14. (1) + /* Get the total number of blocks for the supplied relation's fork */ + for (j = 0; j < nforks; j++) + { + BlockNumber block = smgrnblocks(smgr_reln, forkNum[j]); + nblocks +

Re: Command statistics system (cmdstats)

2020-09-22 Thread Michael Paquier
On Wed, Sep 23, 2020 at 10:41:10AM +0900, Michael Paquier wrote: > I think that this remark is a bit unfair. When it comes to any patch > in the commit fest, and I have managed a couple of them over the > years, I have tried to keep a neutral view for all of them, meaning > that I only let the num

Re: Syncing pg_multixact directories

2020-09-22 Thread Andres Freund
Hi, On 2020-09-23 13:45:51 +1200, Thomas Munro wrote: > I think we should be ensuring that directory entries for newly created > multixact files are durable at checkpoint time. Please see attached. Good catch! Probably that should probably be backpatched... Greetings, Andres Freund

Re: Missing TOAST table for pg_class

2020-09-22 Thread Michael Paquier
On Tue, Sep 22, 2020 at 05:35:48PM -0400, Tom Lane wrote: > What exactly do you argue has changed since the previous decision > that should cause us to change it? In particular, where is the > additional data to change our minds about the safety of such a thing? Not sure that's safe, as we also w

Re: Handing off SLRU fsyncs to the checkpointer

2020-09-22 Thread Thomas Munro
On Tue, Sep 22, 2020 at 9:08 AM Thomas Munro wrote: > On Mon, Sep 21, 2020 at 2:19 PM Thomas Munro wrote: > > While scanning for comments and identifier names that needed updating, > > I realised that this patch changed the behaviour of the ShutdownXXX() > > functions, since they currently flush

Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration

2020-09-22 Thread Michael Paquier
On Tue, Sep 22, 2020 at 11:45:14PM +0200, Peter Eisentraut wrote: > However, I still think the integer type use is a bit inconsistent. In both > cases, using strtoul() and dealing with unsigned integer types between > parsing and final use would be more consistent. No objections to that either, s

Syncing pg_multixact directories

2020-09-22 Thread Thomas Munro
Hello hackers, I think we should be ensuring that directory entries for newly created multixact files are durable at checkpoint time. Please see attached. From 89e5b787ea5efd03ced8da46f95f236e03bf4adf Mon Sep 17 00:00:00 2001 From: Thomas Munro Date: Wed, 23 Sep 2020 13:02:27 +1200 Subject: [PAT

Re: Command statistics system (cmdstats)

2020-09-22 Thread Michael Paquier
On Mon, Sep 21, 2020 at 10:41:46AM -0300, Alvaro Herrera wrote: > "A couple of weeks" of inactivity is not sufficient, in my view, to boot > a patch out of the commitfest process. Whenever the patch is > resurrected, it will be a new entry which won't have the history that it > had accumulated in

Re: new heapcheck contrib module

2020-09-22 Thread Tom Lane
Peter Geoghegan writes: > On Mon, Sep 21, 2020 at 2:09 PM Robert Haas wrote: >> +REVOKE ALL ON FUNCTION >> +verify_heapam(regclass, boolean, boolean, cstring, bigint, bigint) >> +FROM PUBLIC; >> >> This too. > Do we really want to use a cstring as an enum-like argument? Ugh. We should not be

Re: Lift line-length limit for pg_service.conf

2020-09-22 Thread Tom Lane
I wrote: > Yeah. In a quick scan, it appears that there is only one caller that > tries to save the result directly. So I considered making that caller > do a pstrdup and eliminating the extra thrashing in t_readline itself. > But it seemed too fragile; somebody would get it wrong and then have >

RE: Global snapshots

2020-09-22 Thread tsunakawa.ta...@fujitsu.com
From: Andrey Lepikhov > Thank you for this work! > As I can see, main development difficulties placed in other areas: CSN, > resolver, > global deadlocks, 2PC commit... I'm not lawyer too. But if we get remarks from > the patent holders, we can rewrite our Clock-SI implementation. Yeah, I unders

Re: new heapcheck contrib module

2020-09-22 Thread Peter Geoghegan
On Sat, Aug 29, 2020 at 10:48 AM Mark Dilger wrote: > I had an earlier version of the verify_heapam patch that included a > non-throwing interface to clog. Ultimately, I ripped that out. My reasoning > was that a simpler patch submission was more likely to be acceptable to the > community. I

Re: new heapcheck contrib module

2020-09-22 Thread Peter Geoghegan
On Mon, Sep 21, 2020 at 2:09 PM Robert Haas wrote: > +REVOKE ALL ON FUNCTION > +verify_heapam(regclass, boolean, boolean, cstring, bigint, bigint) > +FROM PUBLIC; > > This too. Do we really want to use a cstring as an enum-like argument? I think that I see a bug at this point in check_tuple() (i

Re: Lift line-length limit for pg_service.conf

2020-09-22 Thread Tom Lane
Daniel Gustafsson writes: >> On 22 Sep 2020, at 23:24, Tom Lane wrote: >> In the same vein, here's a patch to remove the hard-coded line length >> limit for tsearch dictionary files. > LGTM. I like the comment on why not to return buf.data directly, that detail > would be easy to miss. Yeah.

Re: Range checks of pg_test_fsync --secs-per-test and pg_test_timing --duration

2020-09-22 Thread Peter Eisentraut
On 2020-09-20 05:41, Michael Paquier wrote: On Fri, Sep 18, 2020 at 05:22:15PM +0900, Michael Paquier wrote: Okay, after looking at that, here is v3. This includes range checks as well as errno checks based on strtol(). What do you think? This fails in the CF bot on Linux because of pg_loggi

Re: Missing TOAST table for pg_class

2020-09-22 Thread Tom Lane
=?UTF-8?Q?Fabr=C3=ADzio_de_Royes_Mello?= writes: > Attached patch adds the TOAST to pg_class, and let's open again the > discussion around it. What exactly do you argue has changed since the previous decision that should cause us to change it? In particular, where is the additional data to chang

Re: Lift line-length limit for pg_service.conf

2020-09-22 Thread Daniel Gustafsson
> On 22 Sep 2020, at 23:24, Tom Lane wrote: > > In the same vein, here's a patch to remove the hard-coded line length > limit for tsearch dictionary files. LGTM. I like the comment on why not to return buf.data directly, that detail would be easy to miss. cheers ./daniel

Re: Binaries on s390x arch

2020-09-22 Thread Devrim Gündüz
Hi, On Tue, 2020-09-22 at 10:57 +0200, Christoph Berg wrote: > Note that I'm working on the .deb packages for Debian and Ubuntu. For > .rpm (RHEL, SLES) you need to get Devrim on board. (I'm putting him > on Cc.) Thanks! To be able to keep up with the other architectures when building > binarie

Re: Lift line-length limit for pg_service.conf

2020-09-22 Thread Tom Lane
In the same vein, here's a patch to remove the hard-coded line length limit for tsearch dictionary files. regards, tom lane diff --git a/src/backend/tsearch/dict_thesaurus.c b/src/backend/tsearch/dict_thesaurus.c index cb0835982d..64c979086d 100644 --- a/src/backend/tsearc

Missing TOAST table for pg_class

2020-09-22 Thread Fabrízio de Royes Mello
Hi all, I know it has been discussed before [1] but one of our customers complained about something weird on one of their multi-tenancy databases (thousands of schemas with a lot of objects inside and one user by schema). So when I checked the problem is because the missing TOAST for pg_class, an

RE: Transactions involving multiple postgres foreign servers, take 2

2020-09-22 Thread tsunakawa.ta...@fujitsu.com
From: Ashutosh Bapat > parallelism here has both pros and cons. If one of the servers errors > out while preparing for a transaction, there is no point in preparing > the transaction on other servers. In parallel execution we will > prepare on multiple servers before realising that one of them has

Re: Keep elog(ERROR) and ereport(ERROR) calls in the cold path

2020-09-22 Thread David Rowley
On Tue, 22 Sep 2020 at 19:08, David Rowley wrote: > I ran another scale=5 TPCH benchmark on v4 against f859c2ffa using gcc > 9.3. I'm unable to see any gains with this, however, the results were > pretty noisy. I only ran pgbench for 60 seconds per query. I'll likely > need to run that a bit longe

Re: new heapcheck contrib module

2020-09-22 Thread Peter Geoghegan
On Tue, Sep 22, 2020 at 12:41 PM Robert Haas wrote: > But now I see that there's no secondary permission check in the > verify_nbtree.c code. Is that intentional? Peter, what's the > justification for that? As noted by comments in contrib/amcheck/sql/check_btree.sql (the verify_nbtree.c tests), t

Re: Improper use about DatumGetInt32

2020-09-22 Thread Tom Lane
Robert Haas writes: > On Mon, Sep 21, 2020 at 3:53 PM Andres Freund wrote: >> I think we mostly use it for the few places where we currently expose >> data as a signed integer on the SQL level, but internally actually treat >> it as a unsigned data. > So why is the right solution to that not Dat

Re: Lift line-length limit for pg_service.conf

2020-09-22 Thread Tom Lane
Daniel Gustafsson writes: > [ 0001-Refactor-pg_service.conf-and-pg_restore-TOC-file-par.patch ] I reviewed this and noticed that you'd missed adding resetStringInfo calls in some code paths, which made me realize that while pg_get_line_append() is great for its original customer in hba.c, it kind

Re: Improper use about DatumGetInt32

2020-09-22 Thread Robert Haas
On Mon, Sep 21, 2020 at 3:53 PM Andres Freund wrote: > On 2020-09-21 14:08:22 -0400, Robert Haas wrote: > > There is no SQL type corresponding to the C data type uint32, so I'm > > not sure why we even have DatumGetUInt32. I'm sort of suspicious that > > there's some fuzzy thinking going on there

Re: new heapcheck contrib module

2020-09-22 Thread Robert Haas
On Tue, Sep 22, 2020 at 1:55 PM Mark Dilger wrote: > I am inclined to just restrict verify_heapam() to superusers and be done. > What do you think? I think that's an old and largely failed approach. If you want to use pg_class_ownercheck here rather than pg_class_aclcheck or something like that

Re: SEARCH and CYCLE clauses

2020-09-22 Thread Pavel Stehule
Hi I found another bug create view xx as WITH recursive destinations (departure, arrival, connections, cost, itinerary) AS (SELECT f.departure, f.arrival, 1, price, CAST(f.departure || f.arrival AS VARCHAR(2000)) FROM flights f WHERE f.departure = 'New

Re: SEARCH and CYCLE clauses

2020-09-22 Thread Pavel Stehule
Hi út 22. 9. 2020 v 20:01 odesílatel Peter Eisentraut < peter.eisentr...@2ndquadrant.com> napsal: > I have implemented the SEARCH and CYCLE clauses. > > This is standard SQL syntax attached to a recursive CTE to compute a > depth- or breadth-first ordering and cycle detection, respectively. > Thi

Re: new heapcheck contrib module

2020-09-22 Thread Peter Geoghegan
On Tue, Sep 22, 2020 at 10:55 AM Mark Dilger wrote: > I am inclined to just restrict verify_heapam() to superusers and be done. > What do you think? The existing amcheck functions were designed to have execute privilege granted to non-superusers, though we never actually advertised that fact. M

Re: new heapcheck contrib module

2020-09-22 Thread Mark Dilger
> On Sep 21, 2020, at 2:09 PM, Robert Haas wrote: > > I think there should be a call to pg_class_aclcheck() here, just like > the one in pg_prewarm, so that if the superuser does choose to grant > access, users given access can check tables they anyway have > permission to access, but not othe

Re: Asynchronous Append on postgres_fdw nodes.

2020-09-22 Thread Etsuro Fujita
On Tue, Sep 22, 2020 at 9:52 PM Konstantin Knizhnik wrote: > On 20.08.2020 10:36, Kyotaro Horiguchi wrote: > > Come to think of "complex", ExecAsync stuff in this patch might be > > too-much for a short-term solution until executor overhaul, if it > > comes shortly. (the patch of mine here as a wh

Re: pgindent vs dtrace on macos

2020-09-22 Thread Tom Lane
After further thought about this, I concluded that a much better idea is to just exclude fmgrprotos.h from the pgindent run. While renaming these two functions may or may not be worthwhile, it doesn't provide any sort of permanent fix for fmgrprotos.h, because new typedef conflicts could arise at

Re: Asynchronous Append on postgres_fdw nodes.

2020-09-22 Thread Konstantin Knizhnik
On 22.09.2020 16:40, Konstantin Knizhnik wrote: On 22.09.2020 15:52, Konstantin Knizhnik wrote: On 20.08.2020 10:36, Kyotaro Horiguchi wrote: At Wed, 19 Aug 2020 23:25:36 -0500, Justin Pryzby wrote in On Thu, Jul 02, 2020 at 11:14:48AM +0900, Kyotaro Horiguchi wrote: As the result of a

Re: [patch] Fix checksum verification in base backups for zero page headers

2020-09-22 Thread Michael Banck
Hi, Am Dienstag, den 22.09.2020, 16:26 +0200 schrieb Michael Banck: > Am Mittwoch, den 02.09.2020, 16:50 +0300 schrieb Anastasia Lubennikova: > > I've looked through the previous discussion. As far as I got it, most of > > the controversy was about online checksums improvements. > > > > The warn

Re: [patch] Fix checksum verification in base backups for zero page headers

2020-09-22 Thread Michael Banck
Hi, Am Mittwoch, den 02.09.2020, 16:50 +0300 schrieb Anastasia Lubennikova: > On 01.09.2020 13:22, Michael Banck wrote: > > as a continuation of [1], I've split-off the zero page header case from > > the last patch, as this one seems less contentious. > > [1] https://commitfest.postgresql.org/28/2

Re: pgindent vs dtrace on macos

2020-09-22 Thread Tom Lane
Daniel Gustafsson writes: >> On 21 Sep 2020, at 20:55, Tom Lane wrote: >> Here's a proposed patch to fix it that way. > +1 on this patch. Do you think it's worth adding a note about this in the > documentation to save the next one staring at this a few minutes? Something > along the lines of:

Re: Asynchronous Append on postgres_fdw nodes.

2020-09-22 Thread Konstantin Knizhnik
On 22.09.2020 15:52, Konstantin Knizhnik wrote: On 20.08.2020 10:36, Kyotaro Horiguchi wrote: At Wed, 19 Aug 2020 23:25:36 -0500, Justin Pryzby wrote in On Thu, Jul 02, 2020 at 11:14:48AM +0900, Kyotaro Horiguchi wrote: As the result of a discussion with Fujita-san off-list, I'm going to

Re: Transactions involving multiple postgres foreign servers, take 2

2020-09-22 Thread Ashutosh Bapat
On Tue, Sep 22, 2020 at 6:48 AM tsunakawa.ta...@fujitsu.com wrote: > > > > I think it's not necessarily that all FDW implementations need to be > > able to support xa_complete(). We can support both synchronous and > > asynchronous executions of prepare/commit/rollback. > > Yes, I think parallel p

Re: Asynchronous Append on postgres_fdw nodes.

2020-09-22 Thread Konstantin Knizhnik
On 20.08.2020 10:36, Kyotaro Horiguchi wrote: At Wed, 19 Aug 2020 23:25:36 -0500, Justin Pryzby wrote in On Thu, Jul 02, 2020 at 11:14:48AM +0900, Kyotaro Horiguchi wrote: As the result of a discussion with Fujita-san off-list, I'm going to hold off development until he decides whether mine

Re: OpenSSL 3.0.0 compatibility

2020-09-22 Thread Daniel Gustafsson
> On 22 Sep 2020, at 11:37, Peter Eisentraut > wrote: > > On 2020-09-18 16:11, Daniel Gustafsson wrote: >> Since we support ciphers that are now deprecated, we have no other choice >> than >> to load the legacy provider. > > Well, we could just have deprecated ciphers fail, unless the user loa

Re: Lift line-length limit for pg_service.conf

2020-09-22 Thread Daniel Gustafsson
> On 21 Sep 2020, at 17:09, Tom Lane wrote: > > Daniel Gustafsson writes: >> The pg_service.conf parsing thread [0] made me realize that we have a >> hardwired >> line length of max 256 bytes. Lifting this would be in line with recent work >> for ecpg, pg_regress and pg_hba (784b1ba1a2 and 8f8

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

2020-09-22 Thread Ajin Cherian
On Sun, Sep 20, 2020 at 3:31 PM Dilip Kumar wrote: > 1. > + /* > + * Process invalidation messages, even if we're not interested in the > + * transaction's contents, since the various caches need to always be > + * consistent. > + */ > + if (parsed->nmsgs > 0) > + { > + if (!ctx->fast_forward) >

Re: Logical replication from PG v13 and below to PG v14 (devel version) is not working.

2020-09-22 Thread Dilip Kumar
On Tue, Sep 22, 2020 at 12:02 PM Amit Kapila wrote: > > On Tue, Sep 22, 2020 at 8:34 AM Ashutosh Sharma wrote: > > > > On Mon, Sep 21, 2020 at 6:58 PM Amit Kapila wrote: > > > > > > On Mon, Sep 21, 2020 at 6:27 PM Ashutosh Sharma > > > wrote: > > > > > > > > Thanks Dilip for the patch. AFAIU,

Re: Parallel copy

2020-09-22 Thread Bharath Rupireddy
On Thu, Sep 17, 2020 at 11:06 AM Bharath Rupireddy < bharath.rupireddyforpostg...@gmail.com> wrote: > > On Wed, Sep 16, 2020 at 1:20 PM Greg Nancarrow wrote: > > > > Fortunately I have been given permission to share the exact table > > definition and data I used, so you can check the behaviour and

Re: OpenSSL 3.0.0 compatibility

2020-09-22 Thread Peter Eisentraut
On 2020-09-18 16:11, Daniel Gustafsson wrote: Since we support ciphers that are now deprecated, we have no other choice than to load the legacy provider. Well, we could just have deprecated ciphers fail, unless the user loads the legacy provider in the OS configuration. There might be an argu

Re: Binaries on s390x arch

2020-09-22 Thread Christoph Berg
Re: Namrata Bhave > We will be glad to obtain binaries for s390x on RHEL, SLES and Ubuntu > distros. Hi Namrata, thanks for getting back to me. Note that I'm working on the .deb packages for Debian and Ubuntu. For .rpm (RHEL, SLES) you need to get Devrim on board. (I'm putting him on Cc.) > We

RE: Use appendStringInfoString and appendPQExpBufferStr where possible

2020-09-22 Thread Hou, Zhijie
> On Tue, 22 Sep 2020 at 17:00, Hou, Zhijie wrote: > > I found some more places that should use appendPQExrBufferStr instead > of appendPQExpBuffer. > > > > Here is the patch. > > Seems like a good idea. Please add it to the next commitfest. Thanks, added it to the next commitfest. https://comm

Re: pgindent vs dtrace on macos

2020-09-22 Thread Daniel Gustafsson
> On 21 Sep 2020, at 20:55, Tom Lane wrote: > > Oh wait, I forgot about the fmgrprotos.h discrepancy. > > I wrote: >> It strikes me that a low-cost workaround would be to rename these >> C functions. There's no law that their C names must match the >> SQL names. > > Here's a proposed patch to

Re: Global snapshots

2020-09-22 Thread Andrey Lepikhov
22.09.2020 03:47, tsunakawa.ta...@fujitsu.com пишет: Does this make sense from your viewpoint, and can we think that we can use Clock-SI without infrindging on the patent? According to the patent holder, the difference between Clock-SI and the patent seems to be fewer than the similarities

Re: Use appendStringInfoString and appendPQExpBufferStr where possible

2020-09-22 Thread David Rowley
On Tue, 22 Sep 2020 at 17:00, Hou, Zhijie wrote: > I found some more places that should use appendPQExrBufferStr instead of > appendPQExpBuffer. > > Here is the patch. Seems like a good idea. Please add it to the next commitfest. David

Re: VACUUM PARALLEL option vs. max_parallel_maintenance_workers

2020-09-22 Thread David Rowley
On Mon, 21 Sep 2020 at 19:15, Peter Eisentraut wrote: > > On 2020-09-21 05:48, Amit Kapila wrote: > > What according to you should be the behavior here and how will it be > > better than current? > > I think if I write VACUUM (PARALLEL 5), it should use up to 5 workers > (up to the number of index

Re: Keep elog(ERROR) and ereport(ERROR) calls in the cold path

2020-09-22 Thread David Rowley
On Fri, 11 Sep 2020 at 02:01, Peter Eisentraut wrote: > > On 2020-09-06 02:24, David Rowley wrote: > >> I would add DEBUG1 back into the conditional, like > >> > >> if (__builtin_constant_p(elevel) && ((elevel) >= ERROR || (elevel) <= > >> DEBUG1) ? \ > > > > hmm, but surely we don't want to move