Re: pg_amcheck contrib application

2021-03-12 Thread Tom Lane
Mark Dilger writes: > On Mar 12, 2021, at 10:22 PM, Tom Lane wrote: >> Coping with both endiannesses might be painful. > Not too bad if the bigint value is zero, as both the low and high 32bits will > be zero, regardless of endianness. The question is whether that gives up

Re: pg_amcheck contrib application

2021-03-12 Thread Tom Lane
Mark Dilger writes: > On Mar 12, 2021, at 10:36 PM, Tom Lane wrote: >> You might think about using some symmetric-but-not-zero value, >> 0x01010101 or the like. > I thought about that, but I'm not sure that it proves much more than just > using zero. Perhaps not.

Re: pg_amcheck contrib application

2021-03-12 Thread Tom Lane
Noah Misch writes: > On Sat, Mar 13, 2021 at 01:36:11AM -0500, Tom Lane wrote: >> I don't mind updating the perl installations on prairiedog and gaur, >> but Noah might have some difficulty with his AIX flotilla, as I believe >> he's not sysadmin there. >

Re: pg_amcheck contrib application

2021-03-13 Thread Tom Lane
ctly swap the two 32-bit words. Hence, any value in which upper and lower halves are the same should work, say 0x1234567812345678. regards, tom lane

Re: Regression tests vs SERIALIZABLE

2021-03-15 Thread Tom Lane
cript is running under unusual conditions. regards, tom lane

Re: pg_amcheck contrib application

2021-03-15 Thread Tom Lane
subtests These animals have somewhat weird alignment properties: MAXALIGN is 8 but ALIGNOF_DOUBLE is only 4. I speculate that that is affecting their choices about whether an out-of-line TOAST value is needed, breaking this test case. regards, tom lane

Re: Since '2001-09-09 01:46:40'::timestamp microseconds are lost when extracting epoch

2021-03-15 Thread Tom Lane
at would also reduce the pressure to duplicate all the test cases. (I don't intend this complaint as a deal-breaker; Peter may well have considered this alternative already and rejected it for good reasons.) regards, tom lane

Re: Tightening up allowed custom GUC names

2021-03-15 Thread Tom Lane
[ getting back to this, after a bit of procrastination ] Andrew Dunstan writes: > On 2/11/21 1:32 PM, Tom Lane wrote: >> Noah Misch writes: >>> On Tue, Feb 09, 2021 at 05:34:37PM -0500, Tom Lane wrote: >>>> * A case could be made for tightening things up a l

Re: pg_amcheck contrib application

2021-03-15 Thread Tom Lane
Mark Dilger writes: > On Mar 15, 2021, at 10:04 AM, Tom Lane wrote: >> These animals have somewhat weird alignment properties: MAXALIGN is 8 >> but ALIGNOF_DOUBLE is only 4. I speculate that that is affecting their >> choices about whether an out-of-line TOAST value is nee

Re: EXPLAIN/EXPLAIN ANALYZE REFRESH MATERIALIZED VIEW

2021-03-15 Thread Tom Lane
k we're better advised to keep our options open about how REFRESH might be implemented in future. regards, tom lane

Re: logical replication worker accesses catalogs in error context callback

2021-03-15 Thread Tom Lane
e; it'd render the context message nearly useless.) A different idea is to try to get the column names out of the query's rangetable instead of going to the catalogs. regards, tom lane

Re: Nondeterministic collations and the value returned by GROUP BY x

2021-03-15 Thread Tom Lane
ng plan node --- but that doesn't really get you any closer to being able to say which one it is exactly. The input is either not ordered at all, or ordered by something like a Sort node, which itself is not going to make any promises about which one of a group of peers is delivered first. regards, tom lane

Re: [PATCH]: Allow errors in parameter values to be reported during the BIND phase itself..

2021-03-15 Thread Tom Lane
x27;s suggestion for that at some point. I started to look at this, and immediately began to wonder where is the previous discussion you're evidently referring to. Can you dig up an archives link? regards, tom lane

Re: [PATCH]: Allow errors in parameter values to be reported during the BIND phase itself..

2021-03-15 Thread Tom Lane
Justin Pryzby writes: > On Mon, Mar 15, 2021 at 06:45:49PM -0400, Tom Lane wrote: >> I started to look at this, and immediately began to wonder where is the >> previous discussion you're evidently referring to. Can you dig up an >> archives link? > I think I wa

Re: Nondeterministic collations and the value returned by GROUP BY x

2021-03-16 Thread Tom Lane
n functions, like citext_cmp, but that wouldn't affect the grouping logic that is going to save aside one of the group of peer values. regards, tom lane

Re: crash during cascaded foreign key update

2021-03-16 Thread Tom Lane
regards, tom lane

Re: [PATCH]: Allow errors in parameter values to be reported during the BIND phase itself..

2021-03-16 Thread Tom Lane
this a bit clearer, and pushed it. regards, tom lane

Re: pg_amcheck contrib application

2021-03-16 Thread Tom Lane
y mac laptop. This rules out the theory that > autovacuum is propogating corruptions into pg_statistic, and also the theory > that it is architecture dependent. I wonder whether amcheck is confused by the declaration of those columns as "anyarray". regards, tom lane

Re: pg_amcheck contrib application

2021-03-16 Thread Tom Lane
at might be from mis-decoding a TOAST-referencing datum. (Too bad the message doesn't report the TOAST OID it probed for, so we can see if that's sane or not.) regards, tom lane

Re: pg_amcheck contrib application

2021-03-16 Thread Tom Lane
its credibility. I now believe the theory that the triggering condition is an auto-analyze happening at the right time, and populating pg_statistic with some data that other runs don't see. regards, tom lane

Re: Postgres crashes at memcopy() after upgrade to PG 13.

2021-03-16 Thread Tom Lane
tents to be different/wrong on the replica. regards, tom lane

Re: pg_amcheck contrib application

2021-03-16 Thread Tom Lane
Mark Dilger writes: > On Mar 16, 2021, at 10:48 AM, Tom Lane wrote: >> (Too bad the message doesn't report the >> TOAST OID it probed for, so we can see if that's sane or not.) > I've added that and now get the toast pointer's va_valueid in the message

Re: pg_amcheck contrib application

2021-03-16 Thread Tom Lane
Robert Haas writes: > On Tue, Mar 16, 2021 at 1:48 PM Tom Lane wrote: >> No. What should be happening there is that some arrays in the column >> get larger alignment than they actually need, but that shouldn't cause >> a problem (and has not done so, AFAIK, in the deca

Re: pg_amcheck contrib application

2021-03-16 Thread Tom Lane
ng with the problem. These days it looks like it's actually toast_tuple_init() that takes care of dereferencing previously-toasted values during an INSERT. regards, tom lane

Getting better results from valgrind leak tracking

2021-03-16 Thread Tom Lane
uses of the pattern you postulated originally. It's more that we've designed some valgrind-unfriendly data structures. We need to improve that situation to make much progress here. regards, tom lane diff --git a/src/backend/libpq/pqcomm.c b/src/backend/libpq/pqc

Patch to fix FK-related selectivity estimates with constants

2020-10-26 Thread Tom Lane
structing the scan-clause selectivity because (at least in all normal cases) that selectivity would have been cached in the RestrictInfo. Thus we not only save cycles but can be sure we are cancelling out exactly the right amount of selectivity. I would not propo

Re: "unix_socket_directories" should be GUC_LIST_INPUT?

2020-10-27 Thread Tom Lane
ely assuming that that would happen. regards, tom lane

Re: duplicate function oid symbols

2020-10-27 Thread Tom Lane
, that seems wrong. I'd just remove HEAP_TABLE_AM_HANDLER_OID. As long as we're not back-patching the change, it seems like a very minor thing to fix, if anyone outside core is referencing the old name. regards, tom lane

Re: Question about make coverage-html

2020-10-27 Thread Tom Lane
be I'm wrong) that it's clear enough that you can run whichever test case(s) you want, but this behavior of generating a partial coverage report is less clear. Maybe instead of The "make" commands also work in subdirectories. we could say You can run the "make coverage-html" command in a subdirectory if you want a coverage report for only a portion of the code tree. regards, tom lane

Re: "unix_socket_directories" should be GUC_LIST_INPUT?

2020-10-27 Thread Tom Lane
vior would change for pathnames containing spaces or the like, but it is probably kinda broken for such cases today anyway. In any case, Michael had promised to test this aspect before committing. regards, tom lane

Re: Patch to fix FK-related selectivity estimates with constants

2020-10-27 Thread Tom Lane
arm, but it works for me on both 64-bit and 32-bit machines, so probably it's OK. regards, tom lane diff --git a/src/test/regress/expected/join.out b/src/test/regress/expected/join.out index a46b1573bd..6c9a5e26dd 100644 --- a/src/test/regress/expected/join.out

Re: Use-after-free in 12- EventTriggerAlterTableEnd

2020-10-27 Thread Tom Lane
l in the most common case wasn't a good reason for leaving the bug in place. I'm not excited about the test case ced138e8cba added though, so I think your proposed patch is fine. Will push shortly. regards, tom lane

Re: Patch to fix FK-related selectivity estimates with constants

2020-10-27 Thread Tom Lane
Tomas Vondra writes: > On Tue, Oct 27, 2020 at 01:58:56PM -0400, Tom Lane wrote: >>> Attached is a patch series that attacks it that way. > The patch sems fine to me, thanks for investigating and fixing this. Thanks for looking at it! > I find it

Re: Patch to fix FK-related selectivity estimates with constants

2020-10-28 Thread Tom Lane
Alvaro Herrera writes: > On 2020-Oct-27, Tom Lane wrote: >> * Changing the set of fields in ForeignKeyOptInfo is an ABI break. >> We could minimize the risk by adding the new fields at the end in >> the back branches, but it still wouldn't be zero-risk. > It'

Re: duplicate function oid symbols

2020-10-28 Thread Tom Lane
YOID and then getting rid of the oid_symbol entries. (Or perhaps we could just up and nuke CASHOID too? It's somewhat dubious that any outside code is really using that macro.) May not be worth the trouble, but if we're anal enough to do this patch maybe we should do that too. regards, tom lane

Re: duplicate function oid symbols

2020-10-28 Thread Tom Lane
SNOID available as aliases, and renaming the rest. regards, tom lane

Re: Add important info about ANALYZE after create Functional Index

2020-10-28 Thread Tom Lane
thout a wholesale redefinition of how auto-analyze is supposed to work. As a close analogy, we don't make any effort to force an immediate auto-analyze after CREATE STATISTICS. I don't see anything in the CREATE STATISTICS man page pointing that out, either. But there's probably room for "Notes" entries about it in both places. regards, tom lane

Re: Add important info about ANALYZE after create Functional Index

2020-10-28 Thread Tom Lane
and then your "simple" patch isn't so simple anymore. (Not that it was simple anyway. What if the CREATE is inside a transaction block, for instance? There's no use in kicking autovacuum before commit.) regards, tom lane

Re: duplicate function oid symbols

2020-10-28 Thread Tom Lane
Andres Freund writes: > On 2020-10-28 14:49:06 -0400, Tom Lane wrote: >> Moreover, this clearly shows the >> effect John mentioned that people have been copying the style of adjacent >> entries rather than making use of the standard oid_symbol convention like >> th

Re: duplicate function oid symbols

2020-10-28 Thread Tom Lane
Andres Freund writes: > I assume you plan to error out if oid_symbol is defined for pg_type > going forward? Right, just like we just did for pg_proc. regards, tom lane

Re: Autovacuum worker doesn't immediately exit on postmaster death

2020-10-28 Thread Tom Lane
sideration to expend effort on. You shouldn't be killing the postmaster that way. If you do, you'll soon learn not to, for plenty of reasons besides this one. regards, tom lane

Re: pg_prewarm bgworker could break fast shutdown

2020-10-28 Thread Tom Lane
#x27;t distinguish postmaster states that don't allow starting a bgworker right this moment, but probably will allow it later, from states in which it never will be allowed and we need to fail the request not just postpone it indefinitely. regards, tom lane

Re: -O switch

2020-10-29 Thread Tom Lane
PGOPTIONS through from the client? regards, tom lane

Re: -O switch

2020-10-29 Thread Tom Lane
Magnus Hagander writes: > On Thu, Oct 29, 2020 at 4:45 PM Tom Lane wrote: >> I don't think it's really obsolete ... don't we use that to pass >> PGOPTIONS through from the client? > That said, I don't think we do, or I'm misunderstanding what you

Re: Autovacuum worker doesn't immediately exit on postmaster death

2020-10-29 Thread Tom Lane
anyway? That wouldn't fix anything except autovacuum, but if you're right that that's a primary pain point then it'd help. regards, tom lane

Re: duplicate function oid symbols

2020-10-29 Thread Tom Lane
John Naylor writes: > Here is a quick patch implementing this much. Pushed with a couple cosmetic tweaks. regards, tom lane

Re: Autovacuum worker doesn't immediately exit on postmaster death

2020-10-29 Thread Tom Lane
paths for this purpose is a fine way to add bugs we'll never catch. The if-we're-going-to-delay-anyway path in vacuum_delay_point seems OK to add a touch more overhead to, though. regards, tom lane

Re: MINUS SIGN (U+2212) in EUC-JP encoding is mapped to FULLWIDTH HYPHEN-MINUS (U+FF0D) in UTF-8

2020-10-29 Thread Tom Lane
on changing this. Maybe it's really a bug, but maybe there are good reasons. regards, tom lane

Re: [PATCH] Clarify wording for convalidated in pg_constraint.

2020-10-30 Thread Tom Lane
Jimmy Angelakos writes: > Please find attached my first patch (the tiniest of doc patches) : > I found the wording around convalidated in pg_catalog documentation a bit > confusing/ambiguous. Seems reasonable; pushed. regards, tom lane

Re: document pg_settings view doesn't display custom options

2020-10-30 Thread Tom Lane
for the repetitiveness, we could just say "This view ...", in one or even both paras. regards, tom lane

Re: BUG #15383: Join Filter cost estimation problem in 10.5

2020-10-30 Thread Tom Lane
t Naylor is working on cleaning that up, maybe it will become less useless. regards, tom lane

Re: document pg_settings view doesn't display custom options

2020-10-30 Thread Tom Lane
"This view ..." so we don't have to have this discussion again the next time somebody wants to add a para here. regards, tom lane

Re: Assertion failure when ATTACH partition followed by CREATE PARTITION.

2020-10-30 Thread Tom Lane
Justin Pryzby writes: > Not sure if Tom saw this yet. Indeed, I'd not been paying attention. Fix looks good, pushed. regards, tom lane

Re: making update/delete of inheritance trees scale better

2020-10-30 Thread Tom Lane
robably not worth the cycles.) regards, tom lane

Re: making update/delete of inheritance trees scale better

2020-10-30 Thread Tom Lane
construct the tuple, but it doesn't seem like it'd be much. regards, tom lane

Re: Should the function get_variable_numdistinct consider the case when stanullfrac is 1.0?

2020-10-30 Thread Tom Lane
the get_variable_numdistinct result to be not more than that. But I still would not want to trust an exact zero result. regards, tom lane

Re: Should the function get_variable_numdistinct consider the case when stanullfrac is 1.0?

2020-10-30 Thread Tom Lane
ing the number of GROUP BY groups, it seems like that would be correct. There might be some callers that don't want it though. regards, tom lane

Re: Since '2001-09-09 01:46:40'::timestamp microseconds are lost when extracting epoch

2020-10-31 Thread Tom Lane
DISPLAY_XXX, to make this less confusing. Another bit of follow-up work we could contemplate is to get rid of the SQLValueFunction node type, since there's nothing it does that we couldn't do with regular FuncExpr nodes and COERCE_SQL_SYNTAX. But that's just cleanup, and I don't

Getting Gen_fmgrtab.pl to generate macros for all pg_proc entries

2020-11-01 Thread Tom Lane
an additional benefit, we can generate macros for all the bootstrap pg_proc entries, not only ones that are for C functions; that fixes another issue noted in [1]. Hence, I propose the attached. Any objections? regards, tom lane [1] https://www.postgresql.org/message-id/29

Getting rid of aggregate_dummy()

2020-11-01 Thread Tom Lane
function NNN called as normal function". That doesn't really seem like a problem. The attached patch is a delta over the one in [1]. regards, tom lane [1] https://www.postgresql.org/message-id/472274.1604258384%40sss.pgh.pa.us diff --git a/src/backend/c

Re: how to replicate test results in cf-bot on travis

2020-11-01 Thread Tom Lane
isolation and run check or installcheck there. regards, tom lane

Re: Explicit NULL dereference (src/backend/utils/adt/ruleutils.c)

2020-11-01 Thread Tom Lane
SQL-NULL (or for some > other unexpected situations.). Isn't the comment just above there wrong? /* these could be nulls */ I wonder just when that became outdated. regards, tom lane

Re: [PATCH] Support negative indexes in split_part

2020-11-01 Thread Tom Lane
master, that implements the approach as > described > in that discussion. Please add an entry to the upcoming commitfest, to make sure we don't lose track of this: https://commitfest.postgresql.org/30/ regards, tom lane

Re: Getting rid of aggregate_dummy()

2020-11-02 Thread Tom Lane
Isaac Morland writes: > On Sun, 1 Nov 2020 at 15:47, Tom Lane wrote: >> Anyway, this saves about 3KB in fmgrtab.o, without any downside >> that I can see. If someone accidentally called an aggregate as >> a normal function, they'd now get a different error message, &g

Re: Getting rid of aggregate_dummy()

2020-11-02 Thread Tom Lane
Heikki Linnakangas writes: > On 01/11/2020 22:47, Tom Lane wrote: >> With that, we don't actually need aggregate_dummy() to exist at >> all, because it's never referenced. Having "aggregate_dummy" >> as the prosrc value for an aggregate function is n

Re: hash_array_extended() needs to pass down collation

2020-11-02 Thread Tom Lane
pose to backpatch this. LGTM regards, tom lane

Re: public schema default ACL

2020-11-02 Thread Tom Lane
parate search paths for relation lookup and function/operator lookup. We have sort of stuck our toe in that pond already by discriminating against pg_temp for function/operator lookup, but we could make that more formalized and controllable if there were distinct settings. I'm not sure offhand how much of a compatibility problem that produces. regards, tom lane

Re: Collation versioning

2020-11-02 Thread Tom Lane
d for (some?) non-C locales on Windows. Could be something as dumb as spaces in the locale name being problematic. regards, tom lane

Re: -O switch

2020-11-02 Thread Tom Lane
emoryContext, but removing the dynamic parts? I'd be inclined to keep it as-is for now. It's not adding any significant amount of cycles compared to the process fork, so we might as well preserve flexibility. Is it really possible to not include miscadmin.h in postmaster.c? I find that a bit surprising. regards, tom lane

Re: Explicit NULL dereference (src/backend/utils/adt/ruleutils.c)

2020-11-02 Thread Tom Lane
t seems reasonable, since this function previously had what looked like sane handling for that case. Anyway, I adjusted Kyotaro-san's patch a bit (including fixing the near identical code in make_viewdef) and pushed it. regards, tom lane

Re: Since '2001-09-09 01:46:40'::timestamp microseconds are lost when extracting epoch

2020-11-02 Thread Tom Lane
s 100% hostile to that. * Still waiting for comments on whether to rename CoercionForm. regards, tom lane diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c index 530aac68a7..3031c52991 100644 --- a/src/backend/nodes/copyfuncs.c +++ b/s

Re: Collation versioning

2020-11-03 Thread Tom Lane
(. Yeah. In the short run, though, it'd be nice to un-break the buildfarm. Maybe we could push David's code or something similar, and then contemplate better ways at leisure? regards, tom lane

Re: Since '2001-09-09 01:46:40'::timestamp microseconds are lost when extracting epoch

2020-11-03 Thread Tom Lane
o value except adding confusion: there are no zero-argument functions named "position" in pg_catalog. I feel like this is committable at this point --- any objections? regards, tom lane diff --git a/src/backend/nodes/copyfuncs.c b/src/backend/nodes/copyfuncs.c inde

Re: -O switch

2020-11-03 Thread Tom Lane
Magnus Hagander writes: > [ remove_option_o_2.patch ] This seems committable to me now, although ... > On Mon, Nov 2, 2020 at 6:58 PM Tom Lane wrote: >> Magnus Hagander writes: >>> Initially I kept the dynamic argv/argc in even though it's now >>> hardcoded,

Re: Collation versioning

2020-11-03 Thread Tom Lane
just neuter the feature if Windows > decides it can't understand a locale names that it gave us. It should > still work fine with something like initdb --lc-collate=en-US. Here's > an untested patch. Thoughts? Works for me, at least as a short-term solution. regards, tom lane

Re: "unix_socket_directories" should be GUC_LIST_INPUT?

2020-11-04 Thread Tom Lane
d. Arguably, the whole point of doing something here is to make ALTER SYSTEM handle this variable more sensibly. In that context, '/tmp/sock1, /tmp/sock2' *should* be taken as one item IMO. We can't change the behavior without, um, changing the behavior. regards, tom lane

Re: Getting rid of aggregate_dummy()

2020-11-04 Thread Tom Lane
I wrote: > Heikki Linnakangas writes: >> On 01/11/2020 22:47, Tom Lane wrote: >>> With that, we don't actually need aggregate_dummy() to exist at >>> all, because it's never referenced. Having "aggregate_dummy" >>> as the prosrc value for a

Re: Compatible defaults for LEAD/LAG

2020-11-04 Thread Tom Lane
Pavel Stehule writes: > Ășt 22. 9. 2020 v 2:33 odesĂ­latel Tom Lane napsal: >> Anyway, attached find >> 0001 - updates Vik's original patch to HEAD and tweaks the >> grammar in the docs a bit. >> 0002 - add-on patch to convert array_append, array_prepe

array_cat anycompatible change is breaking xversion upgrade tests

2020-11-04 Thread Tom Lane
rphic function, but I'm not quite sure what a good candidate would be. regards, tom lane

Re: Why does to_json take "anyelement" rather than "any"?

2020-11-05 Thread Tom Lane
ycompatible) returns anycompatible as 'select $1' language sql; CREATE FUNCTION regression=# select foo('bar'); foo - bar (1 row) regression=# select pg_typeof(foo('bar')); pg_typeof ------- text (1 row) So even if we decide that changing the rules for "anyelement" is too scary, I think switching to_json to anycompatible would be preferable to switching it to "any". regards, tom lane

First-draft release notes for back branches are up

2020-11-06 Thread Tom Lane
See https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=c66a3225e07b5098a796f24588a6b81bfdedd2fd Please send any corrections by Sunday. regards, tom lane

Re: First-draft release notes for back branches are up

2020-11-06 Thread Tom Lane
Tomas Vondra writes: > We should probably include instructions what to do about the BRIN > data corruption fixed by 7577dd8480 - a query to list might be > affected by the bug and should be rebuilt. Do you have some suggested text? regards, tom lane

Re: pgbench stopped supporting large number of client connections on Windows

2020-11-06 Thread Tom Lane
e-id/flat/BL0PR1901MB1985F219C46C61EDE7036C34ED8E0%40BL0PR1901MB1985.namprd19.prod.outlook.com regards, tom lane

Rethinking LOCK TABLE's behavior on views

2020-11-07 Thread Tom Lane
low it if either the calling user or the view owner has the needed permission". This seems generally pretty messy and so I don't much like it, but we should consider as many solutions as we can think of. Thoughts? regards, tom lane [1] https://www.postgresql.org/message-id/flat/16703-e348f58aab3cf6cc%40postgresql.org

Re: errors when there is a bit literal in ecpg

2020-11-07 Thread Tom Lane
to an existing test. Other than that, looks good, pushed. regards, tom lane

Re: First-draft release notes for back branches are up

2020-11-07 Thread Tom Lane
Tomas Vondra writes: > On 11/7/20 3:52 AM, Tom Lane wrote: >> Do you have some suggested text? > I think this might work: I dunno ... given that we have zero field reports, I doubt this is something we need to tell every BRIN user to do. The text I put in earlier today jus

Re: Yet another (minor) fix in BRIN

2020-11-07 Thread Tom Lane
quot; fixes into those branches. I got my fingers burned today, and so did Peter. Don't follow our example ;-) regards, tom lane

Re: [BUG]: segfault during update

2020-11-08 Thread Tom Lane
d need to back port this commit on 12 and 13. Yeah, this is sufficient reason why we must use the more invasive patch on those branches. What I'm wondering now is if there's a way to break even-older branches based on failure to handle dropped columns here. regards, tom lane

Re: [BUG]: segfault during update

2020-11-08 Thread Tom Lane
to deal with an on-disk tuple rather than one constructed by the executor. So I'll go see about back-patching 20d3fe900. regards, tom lane

Re: upcoming API changes for LLVM 12

2020-11-08 Thread Tom Lane
so, could we prioritize getting that committed? It's annoying to have the buildfarm failures page so full of this one issue. regards, tom lane

Re: upcoming API changes for LLVM 12

2020-11-08 Thread Tom Lane
Ouch. Get well soon, and don't overstress your hand --- that's a good recipe for long-term problems. regards, tom lane

Re: array_cat anycompatible change is breaking xversion upgrade tests

2020-11-08 Thread Tom Lane
-record, so we don't need the operation to be array_cat() specifically. So I propose the attached patches to un-break the xversion tests. I'll hold off pushing this till after this week's wraps, though. regards, tom lane diff --git a/src/test/regress/expe

Re: -Wformat-signedness

2020-11-09 Thread Tom Lane
ssages as-is and add explicit "(int)" casts to the arguments. There are some fraction of these that are like that already. regards, tom lane

Re: -O switch

2020-11-09 Thread Tom Lane
Magnus Hagander writes: > On Wed, Nov 4, 2020 at 2:10 AM Tom Lane wrote: >> ... looking at this again, BackendRun certainly looks ridiculously >> over-engineered for what it still does. > Yeah, looking at it again, I agree. PFA an updated patch, which I'll > go ahe

Re: PATCH: Report libpq version and configuration

2020-11-09 Thread Tom Lane
embedding some strings, as I suggested upthread, seems like it'd go far in that direction. Yeah, you could spend a lot of effort to make it a bit more user friendly, but is the effort really going to be repaid? The use case for this isn't that large, I don't think. regards, tom lane

Re: Misuse of TimestampDifference() in the autoprewarm feature of pg_prewarm

2020-11-09 Thread Tom Lane
msec not usec. I think the comment about "clock skew" is complete BS, and the Min() calculation was put in as a workaround by somebody observing that the sleep waited too long, but not understanding why. regards, tom lane

Re: Misuse of TimestampDifference() in the autoprewarm feature of pg_prewarm

2020-11-09 Thread Tom Lane
Alexey Kondratov writes: > On 2020-11-09 21:53, Tom Lane wrote: >> 0002 seems like a pretty clear bug fix, though I wonder if this is exactly >> what we want to do going forward. It seems like a very large fraction of >> the callers of TimestampDifference would like to h

Re: Hybrid Hash/Nested Loop joins and caching results from subplans

2020-11-09 Thread Tom Lane
performance changes up to a couple percent with no apparent change to the relevant code. regards, tom lane

Re: remove spurious CREATE INDEX CONCURRENTLY wait

2020-11-09 Thread Tom Lane
Do we really need exclusive lock on the ProcArray to make this flag change? That seems pretty bad from a concurrency standpoint. regards, tom lane

Re: remove spurious CREATE INDEX CONCURRENTLY wait

2020-11-09 Thread Tom Lane
Michael Paquier writes: > On Mon, Nov 09, 2020 at 08:32:13PM -0500, Tom Lane wrote: >> Do we really need exclusive lock on the ProcArray to make this flag >> change? That seems pretty bad from a concurrency standpoint. > Any place where we update vacuumFlags acquires an e

<    1   2   3   4   5   6   7   8   9   10   >