Re: Question about commit 11cf92f6e2e13c0a6e3f98be3e629e6bd90b74d5

2019-03-05 Thread Etsuro Fujita
(2019/03/02 1:10), Robert Haas wrote: On Fri, Mar 1, 2019 at 5:47 AM Etsuro Fujita wrote: Robert, I CCed you because you are the author of that commit. Before that commit ("Rewrite the code that applies scan/join targets to paths."), apply_scanjoin_target_to_paths() had a boolean parameter na

Re: Re: [PATCH] pgbench tap tests fail if the path contains a perl special character

2019-03-05 Thread David Steele
On 2/8/19 3:30 PM, Raúl Marín wrote: The following review has been posted through the commitfest application: make installcheck-world: tested, failed Implements feature: not tested Spec compliant: not tested Documentation:not tested Tested `pgbench-tap-glob-fix-1.pat

Re: Problems with plan estimates in postgres_fdw

2019-03-05 Thread Etsuro Fujita
(2019/03/02 1:14), Antonin Houska wrote: Etsuro Fujita wrote: (2019/03/01 20:00), Antonin Houska wrote: Sorry, my explanation was not enough again, but I showed that query ("SELECT a+b, random() FROM foreign_table GROUP BY a+b ORDER BY a+b;") to explain why the following code bit is needed:

Re: Re: NOT IN subquery optimization

2019-03-05 Thread David Steele
On 2/27/19 2:26 AM, David Rowley wrote: On Wed, 27 Feb 2019 at 13:13, Tom Lane wrote: "Li, Zheng" writes: However, given that the March CommitFest is imminent and the runtime smarts patent concerns David had pointed out (which I was not aware of before), we would not move that direction at

Re: Re: [HACKERS] CLUSTER command progress monitor

2019-03-05 Thread David Steele
On 3/1/19 7:48 AM, Etsuro Fujita wrote: (2019/03/01 14:17), Tatsuro Yamada wrote: Attached patch is wip patch. Is it possible to remove the following patch? Because I registered the patch twice on CF Mar. https://commitfest.postgresql.org/22/2049/ Please remove the above and keep this: htt

Re: Re: SQL:2011 PERIODS vs Postgres Ranges?

2019-03-05 Thread David Steele
Hi Paul, On 11/24/18 4:55 AM, Paul A Jungwirth wrote: On Fri, Nov 23, 2018 at 3:41 PM Paul A Jungwirth wrote: Here is a patch for my progress on this so far. Well this is embarrassing, but my last patch used the mistaken syntax `PRIMARY KEY (cols, WITHOUT OVERLAPS col)`. Here is a new patch

Re: Problem with default partition pruning

2019-03-05 Thread yuzuko
Imai-san, Thanks for sharing your tests! On Thu, Feb 28, 2019 at 5:27 PM Imai, Yoshikazu wrote: > > Hosoya-san > > On Wed, Feb 27, 2019 at 6:51 AM, Yuzuko Hosoya wrote: > > > From: Amit Langote [mailto:langote_amit...@lab.ntt.co.jp] > > > Sent: Wednesday, February 27, 2019 11:22 AM > > > > > > H

Re: [HACKERS] CLUSTER command progress monitor

2019-03-05 Thread Tatsuro Yamada
Hi David, On 2019/03/05 17:29, David Steele wrote: On 3/1/19 7:48 AM, Etsuro Fujita wrote: (2019/03/01 14:17), Tatsuro Yamada wrote: Attached patch is wip patch. Is it possible to remove the following patch? Because I registered the patch twice on CF Mar. https://commitfest.postgresql.org/2

Re: Re: [HACKERS] [PROPOSAL] Temporal query processing with range types

2019-03-05 Thread David Steele
Hi Peter, On 2/28/19 11:43 PM, Peter Moser wrote: Dear all, we rebased our temporal normalization patch on top of 554ebf687852d045f0418d3242b978b49f160f44 from 2019-02-28. I will also add this prototype (WIP) patch to the commitfest of March, as suggested by two developers met at the FOSDEM

Re: Re: NOT IN subquery optimization

2019-03-05 Thread David Rowley
On Tue, 5 Mar 2019 at 21:21, David Steele wrote: > > On 2/27/19 2:26 AM, David Rowley wrote: > > FWIW, I did add this to the March CF, but I set the target version to > > 13. I wasn't considering this for PG12. I see Zheng was, but I agree > > with you on PG13 being the target for this. > > Looks

RE: libpq debug log

2019-03-05 Thread Iwata, Aya
Hi Horiguchi-san, Thank you for your reply and suggestions. > > 1. Expand PQtrace() facility and improve libpq logging. > > > > 2. Prepare "output level". There are 3 type of levels; > > - TRADITIONAL : if set, outputs protocol messages > > - LEVEL1: if set, outputs ph

Re: [HACKERS] CLUSTER command progress monitor

2019-03-05 Thread Tatsuro Yamada
Hi Robert! On 2019/03/05 11:35, Robert Haas wrote: On Mon, Mar 4, 2019 at 5:38 AM Tatsuro Yamada wrote: === Current design === CLUSTER command uses Index Scan or Seq Scan when scanning the heap. Depending on which one is chosen, the command will proceed in the following sequence of phases:

Re: NOT IN subquery optimization

2019-03-05 Thread David Steele
On 3/5/19 10:53 AM, David Rowley wrote: On Tue, 5 Mar 2019 at 21:21, David Steele wrote: On 2/27/19 2:26 AM, David Rowley wrote: FWIW, I did add this to the March CF, but I set the target version to 13. I wasn't considering this for PG12. I see Zheng was, but I agree with you on PG13 being t

Re: Problem with default partition pruning

2019-03-05 Thread yuzuko
Hi Ibrar, On Tue, Mar 5, 2019 at 2:37 AM Ibrar Ahmed wrote: > > Hi Yuzuko Hosoya, > > Ignore my last message, I think this is also a legitimate scan on default > partition. > Oh, I got it. Thanks a lot. > > On Mon, Mar 4, 2019 at 10:29 PM Ibrar Ahmed wrote: >> >> Hi >> >> Patch work fine to

Re: [PATCH 0/3] Introduce spgist quadtree @<(point,circle) operator

2019-03-05 Thread Matwey V. Kornilov
сб, 2 мар. 2019 г. в 12:14, Alexander Korotkov : > > Hi! Thanks for reply. Comments and questions are below. > > On Fri, Feb 1, 2019 at 7:08 PM Matwey V. Kornilov > wrote: > > This patch series is to add support for spgist quadtree @<(point,circle) > > operator. The first two patches are to refa

Re: extension patch of CREATE OR REPLACE TRIGGER

2019-03-05 Thread David Steele
On 2/28/19 10:43 AM, Osumi, Takamichi wrote: One past thread about introducing CREATE OR REPLACE TRIGGER into the syntax had stopped without complete discussion in terms of LOCK level. The past thread is this. I'd like to inherit this one. Since this patch landed at the last moment in the la

Re: Problems with plan estimates in postgres_fdw

2019-03-05 Thread Etsuro Fujita
(2019/03/04 16:46), Antonin Houska wrote: Etsuro Fujita wrote: (2019/03/01 20:00), Antonin Houska wrote: It's still unclear to me why add_foreign_ordered_paths() passes the input relation (input_rel) to estimate_path_cost_size(). If it passed the output rel (i.e. ordered_rel in this case) li

Re: New vacuum option to do only freezing

2019-03-05 Thread Masahiko Sawada
On Tue, Mar 5, 2019 at 8:27 AM Bossart, Nathan wrote: > > On 2/28/19, 12:13 AM, "Masahiko Sawada" wrote: > > Attached the updated version patch. I've incorporated all review > > comments I got and have changed the number of tuples being reported as > > 'removed tuples'. With this option, tuples c

Re: NOT IN subquery optimization

2019-03-05 Thread David Rowley
On Sun, 3 Mar 2019 at 01:34, Jim Finnerty wrote: > I agree with Tom's comment above - when the cost of the NOT IN is dominated > by the cost of the outer scan (i.e. when the cardinality of the outer > relation is large relative to the cardinality of the subquery), and if the > inner cardinality is

Re: Problems with plan estimates in postgres_fdw

2019-03-05 Thread Etsuro Fujita
(2019/03/01 20:16), Antonin Houska wrote: Etsuro Fujita wrote: Conversely, it appears that add_foreign_ordered_paths() added by the patchset would generate such pre-sorted paths *redundantly* when the input_rel is the final scan/join relation. Will look into that. Currently I have no idea

Re: Minimal logical decoding on standbys

2019-03-05 Thread tushar
On 03/04/2019 10:57 PM, Andres Freund wrote: Note that hot_standby_feedback=on needs to be set on a standby, not on the primary (although it doesn't do any harm there). Right, This parameter was enabled on both Master and slave. Is someone able to reproduce this issue ? -- regards,tushar Ente

Re: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS)

2019-03-05 Thread Masahiko Sawada
On Tue, Mar 5, 2019 at 3:46 AM Tomas Vondra wrote: > > > > On 3/4/19 6:40 AM, Masahiko Sawada wrote: > > On Sat, Mar 2, 2019 at 5:27 AM Robert Haas wrote: > >> > >> On Thu, Feb 7, 2019 at 3:28 AM Masahiko Sawada > >> wrote: > >>> WAL encryption will follow as an additional feature. > >> > >> I

Re: Refactoring the checkpointer's fsync request queue

2019-03-05 Thread Thomas Munro
On Tue, Mar 5, 2019 at 2:25 PM Shawn Debnath wrote: > [v11 patch] Thanks. Hmm, something is wrong here because make check is dramatically slower -- for example the "insert" test runs in ~8-13 seconds instead of the usual ~0.2 seconds according to Travis, AppVeyor and my local FreeBSD system (not

RE: libpq debug log

2019-03-05 Thread Iwata, Aya
Hi everyone, I appreciate all the helpful advice. I agree to display message more clearly. I will follow your advice. I would like to add timestamp per line and when command processing function start/end. I think it is useful to know the application process start/end for diagnosis. So I

[Issue] Can't recompile cube extension as PGXS, utils/float.h is not installed

2019-03-05 Thread Siarhei Siniak
1. Currently, cube extension has CUBE_MAX_DIM set as 100. A recent github issue. [1] 2. To compile a custom version of the extension off the tree requires: ``` make -C contrib/custom_cube USE_PGXS=1 ``` 3. But utils/float.h required by cube.c and cubeparse.y is not installed. It's not present in

Re: Optimization of some jsonb functions

2019-03-05 Thread David Steele
On 2/22/19 2:05 AM, Nikita Glukhov wrote: Attached set of patches with some jsonb optimizations that were made during comparison of performance of ordinal jsonb operators and jsonpath operators. This patch was submitted just before the last commitfest for PG12 and seems to have potential for b

Re: speeding up planning with partitions

2019-03-05 Thread Amit Langote
On 2019/03/05 9:50, Amit Langote wrote: > I'll post the updated patches after diagnosing what > I'm suspecting a memory over-allocation bug in one of the patches. If you > configure build with --enable-cassert, you'll see that throughput > decreases as number of partitions run into many thousands,

Re: speeding up planning with partitions

2019-03-05 Thread Amit Langote
On 2019/03/04 19:38, Amit Langote wrote: > 2. Defer inheritance expansion to add_other_rels_to_query(). Although the > purpose of doing this is to perform partition pruning before adding the > children, this patch doesn't change when the pruning occurs. It deals > with other issues that must be t

Re: query logging of prepared statements

2019-03-05 Thread Arthur Zakirov
On 04.03.2019 21:31, Justin Pryzby wrote: It wasn't intentional. Find attached v3 patch which handles that case, by removing the 2nd call to errdetail_execute() ; since it's otherwise unused, so remove that function entirely. Thank you. Thanks for reviewing. I'm also interested in discussio

Re: Re: [PATCH] pgbench tap tests fail if the path contains a perl special character

2019-03-05 Thread Raúl Marín Rodríguez
> Marking the patch as either Ready for Committer or Waiting on Author will help move things along. Thanks for the heads-up, I've retested it again and it applies cleanly on top of master and addresses the issue. I've moved it to `Ready for Committer`. -- Raúl Marín Rodríguez carto.com

Re: New vacuum option to do only freezing

2019-03-05 Thread Kyotaro HORIGUCHI
Hello, I have some other comments. At Mon, 4 Mar 2019 23:27:10 +, "Bossart, Nathan" wrote in <48410154-e6c5-4c07-8122-8d04e3bcd...@amazon.com> > On 2/28/19, 12:13 AM, "Masahiko Sawada" wrote: > > Attached the updated version patch. I've incorporated all review > > comments I got and have ch

Re: Fix memleaks and error handling in jsonb_plpython

2019-03-05 Thread Nikita Glukhov
On 05.03.2019 6:45, Michael Paquier wrote: On Fri, Mar 01, 2019 at 05:24:39AM +0300, Nikita Glukhov wrote: Unfortunately, contrib/jsonb_plpython still contain a lot of problems in error handling that can lead to memory leaks: - not all Python function calls are checked for the success - not

Re: Rare SSL failures on eelpout

2019-03-05 Thread Thomas Munro
On Tue, Mar 5, 2019 at 11:35 AM Tom Lane wrote: > True. I've spent some time today running the ssl tests on various > machines here, without any luck reproducing. BTW, I went looking for other failures on the buildfarm I noticed that even for eelpout it's only happening on master and REL_11_STAB

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

2019-03-05 Thread Heikki Linnakangas
I'm looking at the first patch in the series now. I'd suggest that you commit that very soon. It's useful on its own, and seems pretty much ready to be committed already. I don't think it will be much affected by whatever changes we make to the later patches, anymore. I did some copy-editing o

Re: Re: Patch for SortSupport implementation on inet/cdir

2019-03-05 Thread David Steele
On 2/16/19 4:13 AM, Andres Freund wrote: On 2019-02-09 20:12:53 +1300, Edmund Horner wrote: I had a look at this. Your V2 patch applies cleanly, and the code was straightforward and well commented. I appreciate the big comment at the top of network_abbrev_convert explaining how you encode the

Re: Prevent extension creation in temporary schemas

2019-03-05 Thread Chris Travers
The following review has been posted through the commitfest application: make installcheck-world: tested, passed Implements feature: tested, passed Spec compliant: tested, passed Documentation:not tested I ran make checkworld and everything passed. I tried installing

Re: Should we increase the default vacuum_cost_limit?

2019-03-05 Thread Tomas Vondra
On 3/5/19 1:14 AM, Peter Geoghegan wrote: > On Mon, Feb 25, 2019 at 8:48 AM Robert Haas wrote: >> +1 for raising the default substantially. In my experience, and it >> seems others are in a similar place, nobody ever gets into trouble >> because the default is too high, but sometimes people get i

Re: Online verification of checksums

2019-03-05 Thread Tomas Vondra
On 3/5/19 4:12 AM, Michael Paquier wrote: > On Mon, Mar 04, 2019 at 03:08:09PM +0100, Tomas Vondra wrote: >> I still don't understand what issue you see in how basebackup verifies >> checksums. Can you point me to the explanation you've sent after 11 was >> released? > > The history is mostly on t

Re: GiST VACUUM

2019-03-05 Thread Heikki Linnakangas
On 05/03/2019 02:26, Andrey Borodin wrote: I also tried your amcheck tool with this. It did not report any errors. Attached is also latest version of the patch itself. It is the same as your latest patch v19, except for some tiny comment kibitzing. I'll mark this as Ready for Committer in the c

Re: Patch to document base64 encoding

2019-03-05 Thread Karl O. Pinc
Hi Fabien, On Tue, 5 Mar 2019 07:09:01 +0100 (CET) Fabien COELHO wrote: > > Doc patch, against master. Documents encode() and decode() base64 > > format. > > It is already documented. Enhance documentation, though. Right. I was thinking that there are various implementations of the base64

Re: RE: libpq debug log

2019-03-05 Thread David Steele
On 3/5/19 11:48 AM, Iwata, Aya wrote: So is it alright to add these information to the new/proposed PQtrace() default output? I agree with Andres [1] that it's not very clear where this patch is going and we should push the target to PG13. Regards, -- -David da...@pgmasters.net [1] htt

Re: Re: proposal: new polymorphic types - commontype and commontypearray

2019-03-05 Thread David Steele
On 2/4/19 4:21 AM, Michael Paquier wrote: On Wed, Jan 30, 2019 at 05:08:03PM +0100, Pavel Stehule wrote: maybe "supertype". It is one char shorter .. somewhere is term "supperclass, ..." In Czech language this term is short, "nadtyp", but probably it is not acceptable :) Moved to next CF. T

Re: Patch to document base64 encoding

2019-03-05 Thread Karl O. Pinc
On Tue, 5 Mar 2019 07:26:17 -0600 "Karl O. Pinc" wrote: > (I am not entirely pleased with the double dash > but can't come up with anything better. And > can't make an emdash entity work either.) Attached: doc_base64_v3.patch There is an mdash entity. This patch uses that. Regards, Karl Fr

Re: BUG #15668: Server crash in transformPartitionRangeBounds

2019-03-05 Thread Amit Langote
Hi, (cc'ing -hackers and Peter E) On Tue, Mar 5, 2019 at 8:02 PM PG Bug reporting form wrote: > > The following bug has been logged on the website: > > Bug reference: 15668 > Logged by: Alexander Lakhin > Email address: exclus...@gmail.com > PostgreSQL version: Unsupported/Unk

Re: Re: proposal: new polymorphic types - commontype and commontypearray

2019-03-05 Thread Pavel Stehule
út 5. 3. 2019 v 14:38 odesílatel David Steele napsal: > On 2/4/19 4:21 AM, Michael Paquier wrote: > > On Wed, Jan 30, 2019 at 05:08:03PM +0100, Pavel Stehule wrote: > >> maybe "supertype". It is one char shorter .. somewhere is term > >> "supperclass, ..." > >> > >> In Czech language this term is

Re: Rare SSL failures on eelpout

2019-03-05 Thread Tom Lane
Thomas Munro writes: > BTW, I went looking for other failures on the buildfarm I noticed that > even for eelpout it's only happening on master and REL_11_STABLE: Yeah, I'd noticed that. > Disappointingly, that turned out to be just because 10 and earlier > didn't care what the error message said

Re: proposal: new polymorphic types - commontype and commontypearray

2019-03-05 Thread Tom Lane
David Steele writes: > This thread has been very quiet for a month. I agree with Andres [1] > that we should push this to PG13. I think the main thing it's blocked on is disagreement on what the type name should be, which is kind of a silly thing to get blocked on, but nonetheless it's importan

Re: NOT IN subquery optimization

2019-03-05 Thread Tom Lane
David Steele writes: > I'm not sure if I have an issue with competing patches on the same > thread. I've seen that before and it can lead to a good outcome. It > case, as you say, also lead to confusion. It's a bit of a shame that the cfbot will only be testing one of them at a time if we lea

Re: [Issue] Can't recompile cube extension as PGXS, utils/float.h is not installed

2019-03-05 Thread Tom Lane
Siarhei Siniak writes: > 3. But utils/float.h required by cube.c and cubeparse.y is not installed. AFAICT, that file only exists in HEAD, not in any released branch, and it is installed during "make install" from HEAD. Please be sure you are using installed files that match whatever branch you'r

Re: Fsync-before-close thought experiment

2019-03-05 Thread Robert Haas
On Sun, Mar 3, 2019 at 6:31 PM Thomas Munro wrote: > A more obvious approach that probably moves us closer to the way > kernel developers expect us to write programs is to call fsync() > before close() (due to vfd pressure) if you've written. Interesting > The obvious > problem with that is

Re: Index Skip Scan

2019-03-05 Thread Dmitry Dolgov
> On Thu, Feb 28, 2019 at 10:45 PM Jeff Janes wrote: > > This version of the patch can return the wrong answer. Yes, indeed. In fact it answers my previous question related to the backward cursor scan, when while going back we didn't skip enough. Within the current approach it can be fixed by pro

Re: [Proposal] Table-level Transparent Data Encryption (TDE) and Key Management Service (KMS)

2019-03-05 Thread Robert Haas
On Mon, Mar 4, 2019 at 1:01 AM Masahiko Sawada wrote: > I think that there is no need to use the same key for both the spill > files and WAL because only one process encrypt/decrypt spill files. We > can use something like temporary key for that use case, which is used > by only one process and li

Re: Should we increase the default vacuum_cost_limit?

2019-03-05 Thread Robert Haas
On Tue, Mar 5, 2019 at 7:53 AM Tomas Vondra wrote: > But on the other hand it feels a bit weird that we increase this one > value and leave all the other (also very conservative) defaults alone. Are you talking about vacuum-related defaults or defaults in general? In 2014, we increased the defaul

any plan to support shared servers like Oracle in PG?

2019-03-05 Thread Andy Fan
currently there is one process per connection and it will not not very good for some short time connection.In oracle database, it support shared server which can serve more than 1 users at the same time. See https://docs.oracle.com/cd/B28359_01/server.111/b28310/manproc001.htm#ADMIN11166 do

Re: Delay locking partitions during query execution

2019-03-05 Thread Tomas Vondra
On 3/5/19 6:55 AM, David Rowley wrote: > On Sat, 2 Feb 2019 at 02:52, Robert Haas wrote: >> I think the key question here is whether or not you can cope with >> someone having done arbitrary AEL-requiring modifications to the >> delaylocked partitions. If you can, the fact that the plan might

Re: speeding up planning with partitions

2019-03-05 Thread Jesper Pedersen
On 3/5/19 5:24 AM, Amit Langote wrote: Attached an updated version. This incorporates fixes for both Jesper's and Imai-san's review. I haven't been able to pin down the bug (or whatever) that makes throughput go down as the partition count increases, when tested with a --enable-cassert build.

Re: Question about commit 11cf92f6e2e13c0a6e3f98be3e629e6bd90b74d5

2019-03-05 Thread Robert Haas
On Tue, Mar 5, 2019 at 3:00 AM Etsuro Fujita wrote: > apply_projection_to_path() not only jams the given tlist into the > existing path but updates its tlist eval costs appropriately except for > the cases of Gather and GatherMerge: I had forgotten that detail, but I don't think it changes the ba

Re: [HACKERS] CLUSTER command progress monitor

2019-03-05 Thread Robert Haas
On Tue, Mar 5, 2019 at 3:56 AM Tatsuro Yamada wrote: > >> === Discussion points === > >> > >>- Progress counter for "3. sorting tuples" phase > >> - Should we add pgstat_progress_update_param() in tuplesort.c like a > >> "trace_sort"? > >> Thanks to Peter Geoghegan for th

Re: Rare SSL failures on eelpout

2019-03-05 Thread Thomas Munro
On Wed, Mar 6, 2019 at 3:33 AM Tom Lane wrote: > Thomas Munro writes: > > Disappointingly, that turned out to be just because 10 and earlier > > didn't care what the error message said. > > That is, you can reproduce the failure on old branches? That lets > out a half-theory I'd had, which was t

Re: Refactoring the checkpointer's fsync request queue

2019-03-05 Thread Thomas Munro
On Wed, Mar 6, 2019 at 5:07 AM Shawn Debnath wrote: > Confirmed. Patch shows 8900 ms vs 192 ms on master for the insert test. > Interesting! It's reproducible so should be able to figure out what's > going on. The only thing we do in ForwardSyncRequest() is split up the 8 > bits into 2x4 bits and

Re: jsonpath

2019-03-05 Thread Robert Haas
On Mon, Mar 4, 2019 at 6:27 PM Tomas Vondra wrote: > 11) Wording of some of the error messages in the execute methods seems a > bit odd. For example executeNumericItemMethod may complain that it > > ... is applied to not a numeric value > > but perhaps a more natural wording would be > >

Re: Refactoring the checkpointer's fsync request queue

2019-03-05 Thread Tom Lane
Thomas Munro writes: > +#include "fmgr.h" > +#include "storage/block.h" > +#include "storage/relfilenode.h" > +#include "storage/smgr.h" > +#include "storage/sync.h" > Why do we need to include fmgr.h in md.h? More generally, any massive increase in an include file's inclusions is probably a sig

Re: Re: \describe*

2019-03-05 Thread Corey Huinker
> > > I agree with Andres and Robert. This patch should be pushed to PG13. > > I'll do that on March 8 unless there is a compelling argument not to. > > No objection. I'll continue to work on it, though.

Re: Rare SSL failures on eelpout

2019-03-05 Thread Tom Lane
Thomas Munro writes: > You can see that poll() already knew the other end had closed the > socket. Since this is clearly timing... let's see, yeah, I can make > it fail every time by adding sleep(1) before the comment "Send the > startup packet.". I assume that'll work on any Linux machine? Gre

Re: Re: Optimze usage of immutable functions as relation

2019-03-05 Thread David Steele
On 2/28/19 4:27 PM, Alexander Kuzmenkov wrote: On 2/18/19 03:20, Tom Lane wrote: The dummy-relation stuff I referred to has now been merged, so there's really no good reason not to revise the patch along that line. I'll try to post the revised implementation soon. I'll close this on March 8

Re: proposal: new polymorphic types - commontype and commontypearray

2019-03-05 Thread Pavel Stehule
út 5. 3. 2019 v 15:35 odesílatel Tom Lane napsal: > David Steele writes: > > This thread has been very quiet for a month. I agree with Andres [1] > > that we should push this to PG13. > > I think the main thing it's blocked on is disagreement on what the > type name should be, which is kind of

Re: insensitive collations

2019-03-05 Thread Daniel Verite
Peter Eisentraut wrote: > Older ICU versions (<54) don't support all the locale customization > options, so many of my new tests in collate.icu.utf8.sql will fail on > older systems. What should we do about that? Have another extra test file? Maybe stick to the old-style syntax for the

Re: Inheriting table AMs for partitioned tables

2019-03-05 Thread Andres Freund
On 2019-03-04 22:08:04 -0800, Andres Freund wrote: > Hi, > > On 2019-03-05 16:01:50 +1300, David Rowley wrote: > > On Tue, 5 Mar 2019 at 12:47, Andres Freund wrote: > > > CREATE TABLE tableam_parted_heap2 (a text, b int) PARTITION BY list (a) > > > USING heap2; > > > > > > SET default_table_acce

Re: Rare SSL failures on eelpout

2019-03-05 Thread Thomas Munro
On Wed, Mar 6, 2019 at 6:07 AM Tom Lane wrote: > Thomas Munro writes: > > You can see that poll() already knew the other end had closed the > > socket. Since this is clearly timing... let's see, yeah, I can make > > it fail every time by adding sleep(1) before the comment "Send the > > startup p

Re: Ordered Partitioned Table Scans

2019-03-05 Thread Robert Haas
On Wed, Dec 19, 2018 at 5:08 PM David Rowley wrote: > With my idea for using live_parts, we'll process the partitions > looking for interleaved values on each query, after pruning takes > place. In this case, we'll see the partitions are naturally ordered. I > don't really foresee any issues with

Re: Inheriting table AMs for partitioned tables

2019-03-05 Thread Robert Haas
On Tue, Mar 5, 2019 at 12:59 PM Andres Freund wrote: > Based on this mail I'm currently planning to simply forbid specifying > USING for partitioned tables. Then we can argue about this later. +1. I actually think that might be the right thing in the long-term, but it undeniably avoids committin

Windows 32 bit vs circle test

2019-03-05 Thread Andrew Dunstan
We don't currently have any buildfarm animals running 32 bit mingw builds for releases > 10. As part of my testing of msys 2 I thought I would try its 32 bit compiler and got this regression diff on HEAD cheers andrew diff -w -U3 C:/tools/msys64/home/Administrator/bf/root/HEAD/pgsql/src/tes

Re: New vacuum option to do only freezing

2019-03-05 Thread Bossart, Nathan
On 3/5/19, 1:22 AM, "Masahiko Sawada" wrote: > On Tue, Mar 5, 2019 at 8:27 AM Bossart, Nathan wrote: >> + VACUUM removes dead tuples and prunes HOT-updated >> + tuples chain for live tuples on table. If the table has any dead tuple >> + it removes them from both table and indexes f

Re: Rare SSL failures on eelpout

2019-03-05 Thread Thomas Munro
On Wed, Mar 6, 2019 at 7:05 AM Thomas Munro wrote: > On Wed, Mar 6, 2019 at 6:07 AM Tom Lane wrote: > > Annoying. I'd be happier about writing code to fix this if I could > > reproduce it :-( > > Hmm. Note that eelpout only started doing it with OpenSSL 1.1.1. Bleugh. I think this OpenSSL pac

Re: any plan to support shared servers like Oracle in PG?

2019-03-05 Thread legrand legrand
There already are solutions regarding this feature in Postgres using "connection pooler" wording see pgpool: http://www.pgpool.net/mediawiki/index.php/Main_Page pgbouncer: https://pgbouncer.github.io/ there are also discussions to include this as a core feature https://www.postgresql.org/mes

Re: using index or check in ALTER TABLE SET NOT NULL

2019-03-05 Thread Sergei Kornilov
Hello, David! > I've made a pass over v10. I think it's in pretty good shape, but I > did end up changing a few small things. Thank you! I merged your changes to new patch version. > The only thing that I'm a bit unsure of is the tests. I've read the > thread and I see the discussion above about

Re: Allowing extensions to supply operator-/function-specific info

2019-03-05 Thread Paul Ramsey
> On Mar 4, 2019, at 4:22 PM, Tom Lane wrote: > > Paul Ramsey writes: >>> On Mar 4, 2019, at 2:52 PM, Tom Lane wrote: >>> BTW, if you'd like me to review the code you added for this, I'd be happy >>> to do so. I've never looked at PostGIS' innards, but probably I can make >>> sense of the c

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

2019-03-05 Thread Peter Geoghegan
On Tue, Mar 5, 2019 at 3:37 AM Heikki Linnakangas wrote: > I'm looking at the first patch in the series now. I'd suggest that you > commit that very soon. It's useful on its own, and seems pretty much > ready to be committed already. I don't think it will be much affected by > whatever changes we

Re: Rare SSL failures on eelpout

2019-03-05 Thread Tom Lane
Thomas Munro writes: > Bleugh. I think this OpenSSL package might just be buggy on ARM. On > x86, apparently the same version of OpenSSL and all other details of > the test the same, I can see that SSL_connect() returns <= 0 > (failure), and then we ask for that cert revoked message directly and

Fwd: [Issue] Can't recompile cube extension as PGXS, utils/float.h is not installed

2019-03-05 Thread Siarhei Siniak
-- Forwarded message - From: Siarhei Siniak Date: Tue, 5 Mar 2019 at 23:31 Subject: Re: [Issue] Can't recompile cube extension as PGXS, utils/float.h is not installed To: Tom Lane >AFAICT, that file only exists in HEAD, not in any released branch, and >it is installed during "ma

Re: bgwriter_lru_maxpages limits in PG 10 sample conf

2019-03-05 Thread Bruce Momjian
On Tue, Mar 5, 2019 at 12:24:14AM -0300, Alvaro Herrera wrote: > On 2019-Mar-04, Bruce Momjian wrote: > > > On Thu, Feb 28, 2019 at 10:28:44AM +0300, Sergei Kornilov wrote: > > > Hello > > > > > > postgresql.conf.sample was changed recently in REL_10_STABLE (commit > > > ab1d9f066aee4f9b81abde6

Re: ATTACH/DETACH PARTITION CONCURRENTLY

2019-03-05 Thread Robert Haas
On Thu, Feb 28, 2019 at 3:27 PM Robert Haas wrote: > I'm not currently aware of any remaining correctness issues with this > code, although certainly there may be some. There has been a certain > dearth of volunteers to review any of this. I do plan to poke at it a > bit to see whether it has an

Re: Patch to document base64 encoding

2019-03-05 Thread Fabien COELHO
Hello Karl, Attached: doc_base64_v3.patch I'm ok with referencing the historical MIME RFC. "RFC2045 section 6.8" -> "RFC 2045 Section 6.8" you can link to the RFC directly with: https://tools.ietf.org/html/rfc2045#section-6.8";>RFC 2045 Section 6.8 -- Fabien.

Re: Rare SSL failures on eelpout

2019-03-05 Thread Thomas Munro
On Wed, Mar 6, 2019 at 9:21 AM Tom Lane wrote: > The bug #15598 report is more troublesome, as we don't have a strong > reason to believe it's not common on Windows. However, I wonder whether > we can really do anything at all about that one. If I understand what > Andrew was hypothesizing in th

Re: Should we increase the default vacuum_cost_limit?

2019-03-05 Thread Andrew Dunstan
On 2/25/19 8:38 AM, David Rowley wrote: > On Tue, 26 Feb 2019 at 02:06, Joe Conway wrote: >> On 2/25/19 1:17 AM, Peter Geoghegan wrote: >>> On Sun, Feb 24, 2019 at 9:42 PM David Rowley >>> wrote: The current default vacuum_cost_limit of 200 seems to be 15 years old and was added in f4

Re: Should we increase the default vacuum_cost_limit?

2019-03-05 Thread Andres Freund
On 2019-03-05 17:14:55 -0500, Andrew Dunstan wrote: > This patch is tiny, seems perfectly reasonable, and has plenty of > support. I'm going to commit it shortly unless there are last minute > objections. +1

Re: A separate table level option to control compression

2019-03-05 Thread Andrew Dunstan
On 2/6/19 2:32 AM, Pavan Deolasee wrote: > Hello, > > Currently either the table level option `toast_tuple_target` or the > compile time default `TOAST_TUPLE_TARGET` is used to decide whether a > new tuple should be compressed or not. While this works reasonably > well for most situations, at tim

Re: [HACKERS] Incomplete startup packet errors

2019-03-05 Thread Andrew Dunstan
On 3/4/19 7:42 AM, Christoph Berg wrote: > Re: Andrew Dunstan 2019-03-04 > <7cc6d2c1-bd87-9890-259d-36739c247...@2ndquadrant.com> >> Looks good to me. > +1. > OK, I think we have agreement on Tom's patch. Do we want to backpatch it? It's a change in behaviour, but I find it hard to believe any

Re: patch to allow disable of WAL recycling

2019-03-05 Thread Jerry Jelinek
Alvaro, Thanks again for your review. I went through your proposed patch diffs and applied most of them to my original changes. I did a few things slightly differently since I wanted to keep to to 80 columns for the source code, but I can revisit that if it is not an issue. I also cleaned up the c

Re: Should we increase the default vacuum_cost_limit?

2019-03-05 Thread David Rowley
Thanks for chipping in on this. On Wed, 6 Mar 2019 at 01:53, Tomas Vondra wrote: > But on the other hand it feels a bit weird that we increase this one > value and leave all the other (also very conservative) defaults alone. Which others did you have in mind? Like work_mem, shared_buffers? If s

Re: using index or check in ALTER TABLE SET NOT NULL

2019-03-05 Thread David Rowley
On Wed, 6 Mar 2019 at 08:41, Sergei Kornilov wrote: > In this case we need extra argument for ConstraintImpliedByRelConstraint for > some caller-provided existConstraint, right? Along with Relation itself? Then > I need make copy of existConstraint, append relation constraints and call > predic

Re: NOT IN subquery optimization

2019-03-05 Thread David Rowley
On Wed, 6 Mar 2019 at 03:37, Tom Lane wrote: > > David Steele writes: > > I'm not sure if I have an issue with competing patches on the same > > thread. I've seen that before and it can lead to a good outcome. It > > case, as you say, also lead to confusion. > > It's a bit of a shame that the c

Re: Allowing extensions to supply operator-/function-specific info

2019-03-05 Thread Tom Lane
Paul Ramsey writes: > Thanks for the patch, I’ve applied and smoothed and taken your advice on > schema-qualified lookups as well. Hm, I think your addition of this bit is wrong: +/* +* Arguments were swapped to put the index value on the +

Re: Allowing extensions to supply operator-/function-specific info

2019-03-05 Thread Paul Ramsey
> On Mar 5, 2019, at 3:26 PM, Tom Lane wrote: > > Paul Ramsey writes: >> Thanks for the patch, I’ve applied and smoothed and taken your advice on >> schema-qualified lookups as well. > > Hm, I think your addition of this bit is wrong: > > +/* > +* Arg

Converting NOT IN to anti-joins during planning

2019-03-05 Thread David Rowley
Way back in [1] I proposed that we allow NOT IN subqueries to be converted into an anti-join where the subquery cannot return any NULL values. As Tom pointed out to me, I had neglected to consider that the outer side producing NULLs can cause the anti-join plan to produce incorrect results. The

Re: Allowing extensions to supply operator-/function-specific info

2019-03-05 Thread Tom Lane
Paul Ramsey writes: > On Mar 5, 2019, at 3:26 PM, Tom Lane wrote: >> Hm, I think your addition of this bit is wrong: >> >> +/* >> +* Arguments were swapped to put the index value on the >> +* left, so we need the commutated operator for

Re: NOT IN subquery optimization

2019-03-05 Thread David Rowley
On Wed, 6 Mar 2019 at 12:25, David Rowley wrote: > That sounds fine. I'll take mine elsewhere since I didn't start this thread. Moved to https://www.postgresql.org/message-id/CAKJS1f82pqjqe3WT9_xREmXyG20aOkHc-XqkKZG_yMA7JVJ3Tw%40mail.gmail.com -- David Rowley http://www.2ndQ

Re: Re: [HACKERS] [PROPOSAL] Temporal query processing with range types

2019-03-05 Thread Robert Haas
On Tue, Mar 5, 2019 at 3:46 AM David Steele wrote: > I have marked this entry as targeting PG13 since it is too late to > consider for PG12. Sounds right. As Peter said himself, this patch is WIP, so it's too soon to consider integrating it. This is also fairly evident from the content of the p

Re: Ordered Partitioned Table Scans

2019-03-05 Thread David Rowley
On Wed, 6 Mar 2019 at 07:17, Robert Haas wrote: > > On Wed, Dec 19, 2018 at 5:08 PM David Rowley > wrote: > > With my idea for using live_parts, we'll process the partitions > > looking for interleaved values on each query, after pruning takes > > place. In this case, we'll see the partitions are

Re: dropdb --force

2019-03-05 Thread Filip Rembiałkowski
Here is Pavel's patch rebased to master branch, added the dropdb --force option, a test case & documentation. I'm willing to work on it if needed. What are possible bad things that could happen here? Is the documentation clear enough? Thanks. On Tue, Dec 18, 2018 at 4:34 PM Marti Raudsepp wrot

  1   2   >