Re: Making all nbtree entries unique by having heap TIDs participate in comparisons

2018-09-28 Thread Andrey Lepikhov
28.09.2018 23:08, Peter Geoghegan wrote: On Fri, Sep 28, 2018 at 7:50 AM Peter Eisentraut wrote: I think it might help this patch move along if it were split up a bit, for example 1) suffix truncation, 2) tid stuff, 3) new split strategies. That way, it would also be easier to test out each pie

Re: Odd 9.4, 9.3 buildfarm failure on s390x

2018-09-28 Thread Andrew Gierth
> "Mark" == Mark Wong writes: Mark> What should I try next? What is the size of a C "int" on this platform? -- Andrew (irc:RhodiumToad)

RE: auto_explain: Include JIT output if applicable

2018-09-28 Thread Shinoda, Noriyoshi (PN Japan GCS Delivery)
Hi, > I think it's better to stay closer to what explain.c itself is doing - it's > not like that if statement costs us anything really... Oh, I understood. Thank you. -Original Message- From: Andres Freund [mailto:and...@anarazel.de] Sent: Saturday, September 29, 2018 2:11 PM To: Shi

Re: auto_explain: Include JIT output if applicable

2018-09-28 Thread Andres Freund
Hi, On 2018-09-29 05:04:25 +, Shinoda, Noriyoshi (PN Japan GCS Delivery) wrote: > I tried this feature. > I think that 'if (es->costs)' of the source code auto_explain.c will always > be ‘true’. > > Because it is not changed after 'es-> cost = true' in NewExplainState () > function several

RE: auto_explain: Include JIT output if applicable

2018-09-28 Thread Shinoda, Noriyoshi (PN Japan GCS Delivery)
Hi, I tried this feature. I think that 'if (es->costs)' of the source code auto_explain.c will always be ‘true’. Because it is not changed after 'es-> cost = true' in NewExplainState () function several rows ago. So I attached a patch to delete this if statement. Regards, Noriyoshi Shinoda Fr

Re: [HACKERS] Something for the TODO list: deprecating abstime and friends

2018-09-28 Thread Tom Lane
Andres Freund writes: > Here's a refreshed version of this patch. First patch removes > contrib/spi/timetravel, second patch removes abstime, reltime, tinterval > together with timeofday(). I'd kind of like to keep timeofday(); it's the only simple way to get a time display that includes "native

Oid returned from AddSubscriptionRelState/UpdateSubscriptionRelState

2018-09-28 Thread Andres Freund
Hi, How come those two functions return oids, even though, as far as I understand, the underlying relation is BKI_WITHOUT_OIDS. I assume that's just an oversight? Greetings, Andres Freund

Re: Odd 9.4, 9.3 buildfarm failure on s390x

2018-09-28 Thread Mark Wong
Hi Andres, On Fri, Sep 28, 2018 at 03:41:27PM -0700, Andres Freund wrote: > On 2018-09-28 15:22:23 -0700, Mark Wong wrote: > > On Fri, Sep 28, 2018 at 11:52:15AM -0700, Andres Freund wrote: > > > Mark, is there anything odd for specific branches? > > > > No... I don't have anything in the config

Re: [PATCH] Include application_name in "connection authorized" log message

2018-09-28 Thread Don Seiler
Thanks for all the guidance! Don. On Fri, Sep 28, 2018, 18:12 Stephen Frost wrote: > Greetings, > > * Stephen Frost (sfr...@snowman.net) wrote: > > * Stephen Frost (sfr...@snowman.net) wrote: > > > I still don't see that as a reason for tools to be suseptible to > serious > > > issues if a funk

Re: Use durable_unlink for .ready and .done files for WAL segment removal

2018-09-28 Thread Stephen Frost
Greetings, * Michael Paquier (mich...@paquier.xyz) wrote: > On Fri, Sep 28, 2018 at 02:36:19PM -0400, Stephen Frost wrote: > > Is there an issue with making the archiver able to understand that > > situation instead of being confused by it..? Seems like that'd probably > > be a good thing to do r

Re: [PATCH] Include application_name in "connection authorized" log message

2018-09-28 Thread Stephen Frost
Greetings, * Stephen Frost (sfr...@snowman.net) wrote: > * Stephen Frost (sfr...@snowman.net) wrote: > > I still don't see that as a reason for tools to be suseptible to serious > > issues if a funky user gets created and I'd be surprised if there > > weren't other ways to get funky characters int

Re: Use durable_unlink for .ready and .done files for WAL segment removal

2018-09-28 Thread Michael Paquier
On Fri, Sep 28, 2018 at 02:36:19PM -0400, Stephen Frost wrote: > Is there an issue with making the archiver able to understand that > situation instead of being confused by it..? Seems like that'd probably > be a good thing to do regardless of this, but that would then remove the > need for this k

Re: Odd 9.4, 9.3 buildfarm failure on s390x

2018-09-28 Thread Andres Freund
Hi, On 2018-09-28 15:22:23 -0700, Mark Wong wrote: > On Fri, Sep 28, 2018 at 11:52:15AM -0700, Andres Freund wrote: > > Mark, is there anything odd for specific branches? > > No... I don't have anything in the config that would be applied to > specific branches... Could you perhaps do some manua

Re: Odd 9.4, 9.3 buildfarm failure on s390x

2018-09-28 Thread Mark Wong
On Fri, Sep 28, 2018 at 11:52:15AM -0700, Andres Freund wrote: > Mark, is there anything odd for specific branches? No... I don't have anything in the config that would be applied to specific branches... Regards, Mark -- Mark Wonghttp://www.2ndQuadrant.com/ Postg

Re: ALTER TABLE on system catalogs

2018-09-28 Thread Peter Eisentraut
On 21/08/2018 17:24, Andres Freund wrote: >> Attached is a patch that instead moves those special cases into >> needs_toast_table(), which was one of the options suggested by Andres. >> There were already similar checks there, so I guess this makes a bit of >> sense. > The big difference is that th

Re: Continue work on changes to recovery.conf API

2018-09-28 Thread Tom Lane
Andres Freund writes: > On 2018-09-28 16:36:35 -0400, Tom Lane wrote: >> No, they MUST be independently verifiable. The interactions between >> the check_xxx functions in this patch are utterly unsafe. We've >> learned that lesson before. > I'm not sure those concerns apply quite the same way h

Re: SQL/JSON: documentation

2018-09-28 Thread Tom Lane
Andrew Dunstan writes: > On 09/28/2018 01:29 PM, Peter Eisentraut wrote: >> - I don't think this should be moved to a separate file. Yes, func.sgml >> is pretty big, but if we're going to split it up, we should do it in a >> systematic way, not just one section. > I'm in favor of doing that. It'

Re: Continue work on changes to recovery.conf API

2018-09-28 Thread Andres Freund
Hi, On 2018-09-28 16:36:35 -0400, Tom Lane wrote: > Peter Eisentraut writes: > > I think this was the major point of contention. I reread the old > > thread, and it's still not clear why we need to change this. _type and > > _value look like an EAV system to me. GUC variables should be > > ver

Re: Continue work on changes to recovery.conf API

2018-09-28 Thread Tom Lane
Peter Eisentraut writes: > I think this was the major point of contention. I reread the old > thread, and it's still not clear why we need to change this. _type and > _value look like an EAV system to me. GUC variables should be > verifiable independent of another variable. No, they MUST be in

Re: SQL/JSON: documentation

2018-09-28 Thread Andrew Dunstan
On 09/28/2018 01:29 PM, Peter Eisentraut wrote: On 28/06/2018 01:36, Nikita Glukhov wrote: Attached patch with draft of SQL/JSON documentation written by Liudmila Mantrova, Oleg Bartunov and me. Also it can be found in our sqljson repository on sqljson_doc branch: https://github.com/postgres

Re: Continue work on changes to recovery.conf API

2018-09-28 Thread Peter Eisentraut
On 29/08/2018 17:43, Sergei Kornilov wrote: > Current patch moves recovery.conf settings into GUC system: > - if startup process found recovery.conf - it throw error OK > - recovery mode is turned on if new special file recovery.signal found OK > - standby_mode setting was removed. Standby mode

Re: Pithy patch for more detailed error reporting when effective_io_concurrency is set to nonzero on platforms lacking posix_fadvise()

2018-09-28 Thread Tom Lane
James Robinson writes: > Per Tom's suggestion on bug #15396, here's a patch to have platforms such as > OSX give a more descriptive message when rejecting a nonzero value for > effective_io_concurrency. Pushed with minor editorialization. regards, tom lane

Re: On-disk compatibility for nbtree-unique-key enhancement

2018-09-28 Thread Peter Geoghegan
On Fri, Sep 28, 2018 at 8:00 AM Peter Eisentraut wrote: > On 21/09/2018 01:18, Peter Geoghegan wrote: > > * This means that there is a compatibility issue for anyone that is > > already right on the threshold -- we *really* don't want to see a > > REINDEX fail, but that seems like a possibility th

Re: Odd 9.4, 9.3 buildfarm failure on s390x

2018-09-28 Thread Tom Lane
Andres Freund writes: > It seems Mark started a new buildfarm animal on s390x. It shows a pretty > odd failure on 9.3 and 9.4, but *not* on newer animals: No, lumpsucker is showing the same failure on 9.5 as well. I suspect that the reason 9.6 and up are OK is that 9.6 is where we introduced the

Re: ALTER TABLE on system catalogs

2018-09-28 Thread Alvaro Herrera
On 2018-Sep-28, Andres Freund wrote: > On 2018-09-28 16:06:30 -0300, Alvaro Herrera wrote: > > On 2018-Aug-21, Andres Freund wrote: > > > > > I still think it's wrong to work around this than to actually fix the > > > issue with pg_attribute not having a toast table. > > > > FWIW I'm still bothe

Re: doc - improve description of default privileges

2018-09-28 Thread Alvaro Herrera
On 2018-Sep-28, Peter Eisentraut wrote: > The psql commands seem out of place here. If you want to learn about > how to use psql, you can go to the psql documentation. There is a legitimate point in doing this, though, since the GRANT page is already explaining how does psql display privileges.

Re: ALTER TABLE on system catalogs

2018-09-28 Thread Andres Freund
On 2018-09-28 16:06:30 -0300, Alvaro Herrera wrote: > On 2018-Aug-21, Andres Freund wrote: > > > On 2018-08-21 17:04:41 +0200, Peter Eisentraut wrote: > > > > > That doesn't solve the original problem, which is being able to set > > > reloptions on pg_attribute, because pg_attribute doesn't have a

Re: automatic restore point

2018-09-28 Thread Peter Eisentraut
On 06/09/2018 02:16, Yotsunaga, Naoki wrote: > -Original Message- > From: Yotsunaga, Naoki [mailto:yotsunaga.na...@jp.fujitsu.com] > Sent: Tuesday, June 26, 2018 10:18 AM > To: Postgres hackers > Subject: automatic restore point > >> Hi, I attached a patch to output the LSN before execut

Re: ALTER TABLE on system catalogs

2018-09-28 Thread Alvaro Herrera
On 2018-Aug-21, Andres Freund wrote: > On 2018-08-21 17:04:41 +0200, Peter Eisentraut wrote: > > > That doesn't solve the original problem, which is being able to set > > reloptions on pg_attribute, because pg_attribute doesn't have a toast > > table but would need one according to existing rules.

Re: doc - improve description of default privileges

2018-09-28 Thread Peter Eisentraut
Some thoughts: We should keep the GRANT reference page about GRANT. There is a section about Privileges in the Data Definition chapter, which we could use to expand on general concepts. The ALTER DEFAULT PRIVILEGES reference page would be another place this could be put. The Owner column is red

Re: Let's stop with the retail rebuilds of src/port/ files already

2018-09-28 Thread Tom Lane
I wrote: > Now, if we go forward with that solution, there will be issues with > some other things that libpq exports without having defined itself: > src/backend/utils/mb/wchar.c: > pg_utf_mblen > src/backend/utils/mb/encnames.c: > pg_encoding_to_char > pg_char_to_encoding > pg_valid_server_encodi

Odd 9.4, 9.3 buildfarm failure on s390x

2018-09-28 Thread Andres Freund
Hi, It seems Mark started a new buildfarm animal on s390x. It shows a pretty odd failure on 9.3 and 9.4, but *not* on newer animals: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=lumpsucker&dt=2018-09-26%2020%3A30%3A58 == pgsql.build/src/test/regress/regression.diffs =

Pithy patch for more detailed error reporting when effective_io_concurrency is set to nonzero on platforms lacking posix_fadvise()

2018-09-28 Thread James Robinson
Per Tom's suggestion on bug #15396, here's a patch to have platforms such as OSX give a more descriptive message when rejecting a nonzero value for effective_io_concurrency. I had to adjust the GUC's wiring in the #ifndef case so that check_effective_io_concurrency() would be called when a nonz

Re: Use durable_unlink for .ready and .done files for WAL segment removal

2018-09-28 Thread Stephen Frost
Greetings, * Michael Paquier (mich...@paquier.xyz) wrote: > While reviewing the archiving code, I have bumped into the fact that > XLogArchiveCleanup() thinks that it is safe to do only a plain unlink() > for .ready and .done files when removing a past segment. I don't think > that it is a smart

Re: Adding a note to protocol.sgml regarding CopyData

2018-09-28 Thread Peter Eisentraut
On 25/09/2018 13:55, Amit Kapila wrote: > On Tue, Sep 25, 2018 at 4:51 AM Bradley DeJong wrote: >> >> On 2018-09-22, Amit Kapila wrote ... >> > ... duplicate the same information in different words at three >> different places ... >> >> I count 7 different places. In the protocol docs, there is t

Re: Making all nbtree entries unique by having heap TIDs participate in comparisons

2018-09-28 Thread Peter Geoghegan
On Fri, Sep 28, 2018 at 7:50 AM Peter Eisentraut wrote: > So. I don't know much about the btree code, so don't believe anything I > say. I think that showing up and reviewing this patch makes you somewhat of an expert, by default. There just isn't enough expertise in this area. > I was very int

Re: SQL/JSON: documentation

2018-09-28 Thread Peter Eisentraut
On 28/06/2018 01:36, Nikita Glukhov wrote: > Attached patch with draft of SQL/JSON documentation written by > Liudmila Mantrova, Oleg Bartunov and me. > > Also it can be found in our sqljson repository on sqljson_doc branch: > https://github.com/postgrespro/sqljson/tree/sqljson_doc > > We continu

Re: executor relation handling

2018-09-28 Thread Alvaro Herrera
On 2018-Sep-28, Amit Langote wrote: > On 2018/09/28 17:48, David Rowley wrote: > > Meh, I just noticed that the WARNING text claims "InitPlan" is the > > function name. I think it's best to get rid of that. It's pretty much > > redundant anyway if you do: \set VERBOSITY verbose > > Oops, good cat

Re: master, static inline and #ifndef FRONTEND

2018-09-28 Thread Andres Freund
Hi, On 2018-09-10 09:50:15 -0700, Andres Freund wrote: > On 2018-09-10 12:39:16 -0400, Tom Lane wrote: > > Andres Freund writes: > > > In a recent commit [1] I added a static inline which castoroides > > > dislikes: ... > > > It's obviously trivial to fix this case with by adding an #ifndef > > >

Re: C99 compliance for src/port/snprintf.c

2018-09-28 Thread Andres Freund
Hi, On 2018-08-25 13:08:18 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2018-08-16 11:41:30 -0400, Tom Lane wrote: > >> Andres Freund writes: > >>> While I'd personally have no problem kicking gcc 3.4 to the curb, I'm > >>> still confused what causes this error mode. Kinda looks like >

Re: On-disk compatibility for nbtree-unique-key enhancement

2018-09-28 Thread Peter Eisentraut
On 21/09/2018 01:18, Peter Geoghegan wrote: > * This means that there is a compatibility issue for anyone that is > already right on the threshold -- we *really* don't want to see a > REINDEX fail, but that seems like a possibility that we need to talk > about now. When would the REINDEX need to h

Re: Making all nbtree entries unique by having heap TIDs participate in comparisons

2018-09-28 Thread Peter Eisentraut
On 19/09/2018 20:23, Peter Geoghegan wrote: > Attached is v5, So. I don't know much about the btree code, so don't believe anything I say. I was very interested in the bloat test case that you posted on 2018-07-09 and I tried to understand it more. The current method for inserting a duplicate v

Re: heap_sync seems rather oblivious to partitioned tables (wal_level=minimal)

2018-09-28 Thread Tomas Vondra
On 09/28/2018 06:02 AM, Amit Langote wrote: > On 2018/09/28 12:12, Michael Paquier wrote: >> On Fri, Sep 28, 2018 at 02:46:30PM +1200, David Rowley wrote: >>> I don't agree that we can skip explaining why one of the optimisations >>> can't be applied just because we've explained why a similar >>

Re: Let's stop with the retail rebuilds of src/port/ files already

2018-09-28 Thread Andrew Dunstan
On 09/27/2018 03:48 PM, Tom Lane wrote: I wrote: Here's a partial patch for that: it adds the third build variant to src/port/ and teaches libpq to use it. We'd want to likewise modify src/common/ and fix up other callers such as ecpg, but this seems to be enough to test whether the idea wor

Re: buildfarm and git pull

2018-09-28 Thread Andrew Dunstan
On 09/27/2018 11:32 AM, Alexander Kuzmenkov wrote: Hi Andrew, I have a question about how buildfarm works with git, could you please help? We use buildfarm locally at PGPro to test our branches, and it breaks when I rebase and force push to the repository. To get the remote changes, buildf

Re: executor relation handling

2018-09-28 Thread Jesper Pedersen
Hi, On 9/28/18 4:58 AM, Amit Langote wrote: Okay, I've revised the text in the attached updated patch. Meh, I just noticed that the WARNING text claims "InitPlan" is the function name. I think it's best to get rid of that. It's pretty much redundant anyway if you do: \set VERBOSITY verbose O

Re: pgsql: Build src/port files as a library with -fPIC, and use that in li

2018-09-28 Thread Tom Lane
Christoph Berg writes: > Re: Tom Lane 2018-09-28 <19404.1538140...@sss.pgh.pa.us> >> I proposed in >> https://www.postgresql.org/message-id/19581.1538077...@sss.pgh.pa.us >> >> that we should remove pqsignal, as well as >> pg_utf_mblen >> pg_encoding_to_char >> pg_char_to_encoding >> pg_valid_ser

Re: pgsql: Build src/port files as a library with -fPIC, and use that in li

2018-09-28 Thread Christoph Berg
Re: Tom Lane 2018-09-28 <19404.1538140...@sss.pgh.pa.us> > > Is this is a problem for libpq5 users? > > I proposed in > https://www.postgresql.org/message-id/19581.1538077...@sss.pgh.pa.us > > that we should remove pqsignal, as well as > pg_utf_mblen > pg_encoding_to_char > pg_char_to_encoding >

Re: pgsql: Build src/port files as a library with -fPIC, and use that in li

2018-09-28 Thread Tom Lane
Christoph Berg writes: > Re: Tom Lane 2018-09-27 >> Build src/port files as a library with -fPIC, and use that in libpq. > This made the "pqsignal" symbol disappear from libpq5.so: Oh, interesting. I'd seen an actual error on prairiedog, but apparently some other linkers just silently omit the

Re: Progress reporting for pg_verify_checksums

2018-09-28 Thread Michael Banck
Hi, On Wed, Sep 26, 2018 at 10:46:06AM +0200, Fabien COELHO wrote: > The xml documentation should be updated! (It is kind of hard to notice what > is not there:-) > > See "doc/src/sgml/ref/pg_verify_checksums.sgml". Right, I've added a paragraph. > >>The time() granularity to the second makes

Re: [HACKERS] kqueue

2018-09-28 Thread Thomas Munro
On Fri, Sep 28, 2018 at 11:09 AM Andres Freund wrote: > On 2018-09-28 10:55:13 +1200, Thomas Munro wrote: > > Matteo Beccati reported a 5-10% performance drop on a > > low-end Celeron NetBSD box which we have no explanation for, and we > > have no reports from server-class machines on that OS -- s

Re: clarify documentation of BGW_NEVER_RESTART ?

2018-09-28 Thread Amit Kapila
On Wed, Sep 26, 2018 at 3:17 AM Chapman Flack wrote: > > I did not notice until today that there is some ambiguity in > this paragraph: > > bgw_restart_time is the interval, in seconds, that postgres should > wait before restarting the process, in case it crashes. It can be > any positive va

Re: pgsql: Build src/port files as a library with -fPIC, and use that in li

2018-09-28 Thread Christoph Berg
Re: Tom Lane 2018-09-27 > Build src/port files as a library with -fPIC, and use that in libpq. This made the "pqsignal" symbol disappear from libpq5.so: 13:27:55 dpkg-gensymbols: error: some symbols or patterns disappeared in the symbols file: see diff output below 13:27:55 dpkg-gensymbols: war

Re: Problem while setting the fpw with SIGHUP

2018-09-28 Thread Amit Kapila
On Fri, Sep 28, 2018 at 4:23 AM Michael Paquier wrote: > > On Thu, Sep 27, 2018 at 07:38:31PM +0530, Amit Kapila wrote: > > Okay, I am planning to commit the attached patch tomorrow unless you > > or anybody else has any objections to it. > > None from here. Thanks for taking care of it. > Thank

Re: Postgres 11 release notes

2018-09-28 Thread Bruce Momjian
On Fri, Sep 28, 2018 at 10:21:16AM +0900, Amit Langote wrote: > On 2018/09/27 23:24, Alvaro Herrera wrote: > > On 2018-Sep-27, Amit Langote wrote: > > > >> Sorry I couldn't reply sooner, but the following of your proposed text > >> needs to be updated a bit: > >> > >> + > >> + > >>

Re: transction_timestamp() inside of procedures

2018-09-28 Thread Bruce Momjian
On Wed, Sep 26, 2018 at 09:23:58PM +0200, Daniel Verite wrote: > Tom Lane wrote: > > > I agree that it would be surprising for transaction timestamp to be newer > > than statement timestamp. > > To me it's more surprising to start a new transaction and having > transaction_timestamp() stil

Re: Slotification of partition tuple conversion

2018-09-28 Thread Amit Langote
On 2018/09/28 19:06, Amit Khandekar wrote: > On Wed, 26 Sep 2018 at 03:33, Andres Freund wrote: >> >> Hi Amit, >> >> Could you rebase this patch, it doesn't apply anymore. > > Thanks for informing. Attached are both mine and Amit Langote's patch > rebased and attached ... Thanks Amit for also ta

Re: Slotification of partition tuple conversion

2018-09-28 Thread Amit Khandekar
On Wed, 26 Sep 2018 at 03:33, Andres Freund wrote: > > Hi Amit, > > Could you rebase this patch, it doesn't apply anymore. Thanks for informing. Attached are both mine and Amit Langote's patch rebased and attached ... -- Thanks, -Amit Khandekar EnterpriseDB Corporation The Postgres Database Co

Re: Postgres, fsync, and OSs (specifically linux)

2018-09-28 Thread Thomas Munro
On Fri, Sep 28, 2018 at 9:37 PM Thomas Munro wrote: > The 0013 patch also fixes a mistake in the 0010 patch: it is not > appropriate to call CFI() while waiting to notify the checkpointer of > a dirty segment, because then ^C could cause the following checkpoint > not to flush dirty data. (Though

Re: Postgres, fsync, and OSs (specifically linux)

2018-09-28 Thread Thomas Munro
On Thu, Aug 30, 2018 at 2:44 PM Craig Ringer wrote: > On 15 August 2018 at 07:32, Thomas Munro > wrote: >> I will soon post some more fix-up patches that add EXEC_BACKEND >> support, Windows support, and a counting scheme to fix the timing >> issue that I mentioned in my first review. I will pr

Re: executor relation handling

2018-09-28 Thread David Rowley
On 28 September 2018 at 20:28, Amit Langote wrote: > On 2018/09/28 17:21, David Rowley wrote: >> I think we maybe should switch the word "assert" for "verifies". The >> Assert is just checking we didn't get a NoLock and I don't think >> you're using "assert" meaning the Assert() marco, so likely s

RE: [HACKERS] Cached plans and statement generalization

2018-09-28 Thread Yamaji, Ryo
On Tuesday, August 7, 2018 at 0:36 AM, Konstantin Knizhnik wrote: > I have registered the patch for next commitfest. > For some reasons it doesn't find the latest autoprepare-10.patch and still > refer to autoprepare-6.patch as the latest attachement. I'm sorry for the late reply. I'm currently r

Re: [HACKERS] Removing LEFT JOINs in more cases

2018-09-28 Thread David Rowley
On 18 September 2018 at 20:02, Antonin Houska wrote: > Following are the findings from my review. Thanks for reviewing this. Time is short in this commitfest to make any changes, so I'm going to return this with feedback with the intention of addressing the items from your review for the next 'f

Re: executor relation handling

2018-09-28 Thread David Rowley
On 28 September 2018 at 20:00, Amit Langote wrote: > I've made minor tweaks, which find in > the attached updated patches (a .diff file containing changes from v6 to > v7 is also attached). Thanks for looking over the changes. I've looked at the v6 to v7 diff and it seems all good, apart from:

Re: transction_timestamp() inside of procedures

2018-09-28 Thread Peter Eisentraut
On 26/09/2018 23:48, Peter Eisentraut wrote: > On 26/09/2018 17:54, Alvaro Herrera wrote: >> What could be the use for the transaction timestamp? I think one of the >> most important uses (at least in pg_stat_activity) is to verify that >> transactions are not taking excessively long time to compl

Re: Libpq support to connect to standby server as priority

2018-09-28 Thread Haribabu Kommi
On Thu, Jul 19, 2018 at 10:59 PM Haribabu Kommi wrote: > > On Wed, Jul 18, 2018 at 10:53 PM Robert Haas > wrote: > >> On Wed, Jul 4, 2018 at 9:14 AM, Laurenz Albe >> wrote: >> > What about keeping the first successful connection open and storing >> it in a >> > variable if we are in "prefer

Re: Collation versioning

2018-09-28 Thread Christoph Berg
Re: Thomas Munro 2018-09-27 > > > 4. After creating a new database, update that row as appropriate in > > > the new database (!). Or find some other way to write a new table out > > > and switch it around, or something like that. > > > > I've been hatching this exact scheme since the very begin

Re: heap_sync seems rather oblivious to partitioned tables (wal_level=minimal)

2018-09-28 Thread David Rowley
On 28 September 2018 at 15:12, Michael Paquier wrote: > On Fri, Sep 28, 2018 at 02:46:30PM +1200, David Rowley wrote: >> I don't agree that we can skip explaining why one of the optimisations >> can't be applied just because we've explained why a similar >> optimisation cannot be applied somewhere

Re: [HACKERS] kqueue

2018-09-28 Thread Matteo Beccati
Hi Thomas, On 28/09/2018 00:55, Thomas Munro wrote: > I would like to commit this patch for PostgreSQL 12, based on this > report. We know it helps performance on macOS developer machines and > big FreeBSD servers, and it is the right kernel interface for the job > on principle. Matteo Beccati r