threads
listlengths
1
2.99k
[ { "msg_contents": "Hello.\n\nI see the following description in the doc.\n\nhttps://www.postgresql.org/docs/13/ssl-tcp.html\n\nIntermediate certificates that chain up to existing root certificates\ncan also appear in the ssl_ca_file file if you wish to avoid storing\nthem on clients (assuming the root and inter...
[ { "msg_contents": "In PG13, we added the ability to add backtraces to the log output. \nAfter some practical experience with it, I think the order in which the \nBACKTRACE and the LOCATION fields are printed is wrong. I propose we \nput the LOCATION field before the BACKTRACE field, not after. This \nmakes mo...
[ { "msg_contents": "Hi all,\n\n consider the following SQL:\n\n================================================================================================\n gpadmin=# explain (verbose, costs off)\n select * from t,\n (select a from generate_series(1, 1)a)x,\n ...
[ { "msg_contents": "Hello.\n\nIf psql connected using GSSAPI auth and server restarted, reconnection\nsequence stalls and won't return.\n\nI found that psql(libpq) sends startup packet via gss\nencryption. conn->gssenc should be reset when encryption state is\nfreed.\n\nThe reason that psql doesn't notice the er...
[ { "msg_contents": "Hi all,\n\nDo you know what is the status of Request Pipelining and/or Batching in\nlibpq ?\n\nI could see that I'm not the first one to think about it, I see an item in\nthe todolist:\nhttps://web.archive.org/web/20200125013930/https://wiki.postgresql.org/wiki/Todo\n\nAnd a thread here:\nhtt...
[ { "msg_contents": "> On 2 July 2020, at 06:39, Daniel Gustafsson <daniel@yesql.se> wrote:\n> > On 10 Apr 2020, at 23:50, Alexandra Wang <lewang@pivotal.io> wrote:\n>\n> > On Fri, Apr 10, 2020 at 8:37 AM Ashutosh Bapat <\nashutosh.bapat@2ndquadrant.com <mailto:ashutosh.bapat@2ndquadrant.com>>\nwrote:\n> > > for ...
[ { "msg_contents": "Hi hackers,\r\n \r\nWe believe we’re seeing a problem with how physical slot’s restart_lsn is advanced leading to the replicas needing to restore from archive in order for replication to resume. \r\nThe logs below are from reproductions against 10.13. I’m still working on reproducing it for 1...
[ { "msg_contents": "I have just notice that the parallelism is off even for the select\npart of the query mentioned in the $subject. I see the only reason it\nis not getting parallel because we block the parallelism if the query\ntype is not SELECT. I don't see any reason for not selecting the\nparallelism for...
[ { "msg_contents": "Hi,\n\nI wrote a Postgres client and in it I allow the user to specify arbitrary\nStartupMessage parameters (Map<string,string>). This is convenient because\nthe user can for example set search_path without issuing a separate SET\nquery or encoding things into the \"options\" parameter. The p...
[ { "msg_contents": "Hi,\n\nCurrently, getTableAttrs() always retrieves info about columns defaults and\ncheck constraints, while this will never be used if --data-only option if used.\nThis seems like a waste of resources, so here's a patch to skip those parts\nwhen the DDL won't be generated.", "msg_date": ...
[ { "msg_contents": "commit b36805f3c54fe0e50e58bb9e6dad66daca46fbf6\nAuthor: Heikki Linnakangas <heikki.linnakangas@iki.fi>\nDate: Sun Jun 28 21:35:51 2015 +0300\n\n...\n\n|@@ -175,22 +175,31 @@ libpqProcessFileList(void)\n| pg_fatal(\"unexpected result set while fetching file list\\n\");\n| \n|...
[ { "msg_contents": "Hi,\n\nSome comments in tableam.h and heapam.c contain three old function names \nalthough these have been renamed by this commit \n73b8c3bd2889fed986044e15aefd0911f96ccdd3.\n\nOld: table_insert, table_fetch_row_version, table_get_latest_tid.\n\nNew: table_tuple_insert, table_tuple_fetch_row_...
[ { "msg_contents": "We are fast approaching mid-July, and with it Mid-commitfest. As has been the\ncase with most commitfests for a while, this CF had a record number of entries\nwith 246 patches. As of this writing, the status breakdown looks like this:\n\n Needs review: 139\n Waiting on Author: 34\n\n Read...
[ { "msg_contents": "Hi hackers,\n\nPFA a patch that fixes up the identification for 4 header files.\n\nI did a little archaeology trying to find plausible reasons for why we\ncommitted the wrong identification in the first place, and here's what I\ncame up with:\n\njsonfuncs.h was created in ce0425b162d0a to hou...
[ { "msg_contents": "Hi,\n\nThe PostgreSQL 13 Release Management Team is pleased to announce the\nrelease date of PostgreSQL 13 Beta 3 is set to 2020-08-13, which is the\nsame day as the cumulative update release[1]. Please be sure to have\nyour patches committed for PostgreSQL 13 no latter than Sunday,\n2020-08-...
[ { "msg_contents": "Hi Hackers,\n\nThe idea of achieving Postgres scaling via sharding using postgres_fdw + \npartitioning got a lot of attention last years. Many optimisations have \nbeen done in this direction: partition pruning, partition-wise \naggregates / joins, postgres_fdw push-down of LIMIT, GROUP BY, e...
[ { "msg_contents": "Hi,\n\nA number of EDB customers have had this error crop on their tables for\nreasons that we have usually not been able to determine. In many\ncases, it's probably down to things like running buggy old releases\nfor a long time before upgrading, or bad backup and recovery\nprocedures. It's ...
[ { "msg_contents": "On the Debian s390x buildd, the 13beta2 build is crashing:\n\n2020-07-15 01:19:59.149 UTC [859] LOG: server process (PID 1415) was terminated by signal 11: Segmentation fault\n2020-07-15 01:19:59.149 UTC [859] DETAIL: Failed process was running: create table gs_group_1 as\n\tselect g100, g1...
[ { "msg_contents": "According to the documentation, the filename given in file_fdw must be an\nabsolute path. Hwever, it works perfectly fine with a relative path.\n\nSo either the documentation is wrong, or the code is wrong. It behaves the\nsame at least back to 9.5, I did not try it further back than that.\n\...
[ { "msg_contents": "Hi,\n I test some SQL in the latest Postgres master branch code (we find these issues when\ndeveloping Greenplum database in the PR https://github.com/greenplum-db/gpdb/pull/10418,\nand my colleague come up with the following cases in Postgres):\n\ncreate table t3 (c1 text, c2 text);\nCREA...
[ { "msg_contents": "Hi,\n\nIn ApplyLauncherMain, it seems like we are having SIGTERM signal\nmapped for config reload. I think we should be having SIGHUP for\nSignalHandlerForConfigReload(). Otherwise we miss to take the updated\nvalue for wal_retrieve_retry_interval in ApplyLauncherMain.\n\nAttached is a patch ...
[ { "msg_contents": "Our Fine Manual (TM) specifies:\n\"As an exception, when changing the type of an existing column, if the\nUSING clause does not change the column contents and the old type is either\nbinary coercible to the new type or an unconstrained domain over the new\ntype, a table rewrite is not needed;...
[ { "msg_contents": "It was mentioned elsewhere in passing that a new Autoconf release might \nbe coming. That one will warn about the old naming \"configure.in\" and \nrequest \"configure.ac\". So we might want to rename that sometime. \nBefore we get into the specifics, I suggest that all interested parties \...
[ { "msg_contents": "Hi,\n\nI'm bumping this thread on pgsql-hacker, hopefully it will drag some more\nopinions/discussions.\n\nShould we try to fix this issue or not? This is clearly an upstream bug. It has\nbeen reported, including regression tests, but this doesn't move since 2 years\nnow.\n\nIf we choose not ...
[ { "msg_contents": "Besides the great efforts that Dmitry et al. are putting into the skip scan for DISTINCT queries [1], I'm also still keen on extending the use of it further. I'd like to address the limited cases in which skipping can occur here. A few months ago I shared an initial rough patch that provided ...
[ { "msg_contents": "I've been experimenting with trying to dump-and-restore the\nregression database, which is a test case that for some reason\nwe don't cover in the buildfarm (pg_upgrade is not the same thing).\nIt seems like the dependency choices we've made for partitioned\nindexes are a complete failure for...
[ { "msg_contents": "As of a couple days ago, buildfarm member caiman (Fedora rawhide)\nis failing like this in all the pre-v12 branches:\n\nccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv ...
[ { "msg_contents": "Hello.\n\nThe \"Certificate Authentication\" section in the doc for PG12 and later\ndescribes the relation ship with clientcert as follows.\n\n> In a pg_hba.conf record specifying certificate authentication, the\n> authentication option clientcert is assumed to be verify-ca or\n> verify-full,...
[ { "msg_contents": "Hi,\n\nI have a cluster of three nodes A, B, C and I'm using postgres bdr for\nreplication.\n\nI have some code to execute after a value change in the table, for this I\nhave added a trigger.\n\nWhen I call POST REST API from any one of the nodes it will execute the\ncode, and on all other no...
[ { "msg_contents": "Is there any reason why src/timezone/tznames/Europe.txt is encoded in\nlatin1 and not utf-8?\n\nThe offending lines are these timezones:\n\nMESZ 7200 D # Mitteleurop�ische Sommerzeit (German)\n # (attested in IANA comments though not their code)\n\nMEZ 3600 ...
[ { "msg_contents": "Hi:\n\nEvery pg_type has typinput/typoutput and typreceive/typsend\nthey are used for text format and binary format accordingly. What is\nthe difference between them in practice? For example, for a PG user,\nshall they choose binary format or text format? Actually I don't even\nknow how t...
[ { "msg_contents": "Dean Rasheed pointed out that in_range for float4/float8 seems to be\ndoing the wrong thing for infinite offsets, and after some testing\nI concur that it is. For example, a sort key of '-infinity' should\nbe considered to be in-range for a range specified as RANGE BETWEEN\n'inf' PRECEDING A...
[ { "msg_contents": "Dean Rasheed questioned this longstanding behavior:\n\nregression=# SELECT 'nan'::float8 / '0'::float8;\nERROR: division by zero\n\nAfter a bit of research I think he's right: per IEEE 754 this should\nyield NaN, not an error. Accordingly I propose the attached patch.\nThis is probably not ...
[ { "msg_contents": "Hackers,\n\nAs a reaction to this documentation comment [1] I went through the main\nparagraph of the Database Management Overview and came up with the reworded\nand expanded page. Proposed for HEAD only. Added to the commitfest\n2020-09.\n\n1.\nhttps://www.postgresql.org/message-id/flat/57...
[ { "msg_contents": "Hi hackers,\n\nAttached is a patch for supporting queries in the WHEN expression of \nstatement triggers. It is restricted so that the expression can \nreference only the transition tables and the table to which the trigger \nis attached. This seemed to make the most sense in that it follows ...
[ { "msg_contents": "The attached patch allows the vacuum to continue by emitting WARNING\nfor the corrupted tuple instead of immediately error out as discussed\nat [1].\n\nBasically, it provides a new GUC called vacuum_tolerate_damage, to\ncontrol whether to continue the vacuum or to stop on the occurrence of\na...
[ { "msg_contents": "This started out with just fixing\n\n\"One option do deal\" to \" One option to deal\"\n\nBut after reading the rest I'd propose the following patch.\n\nDave Cramer", "msg_date": "Fri, 17 Jul 2020 11:09:58 -0400", "msg_from": "Dave Cramer <davecramer@gmail.com>", "msg_from_op": tr...
[ { "msg_contents": "Hey,\n\nI installed PostgreSQL source for the first time a few weeks ago. I am now\njust getting to my first pull-and-reinstall. I run make again at the top\nof the repo and I get:\n\ngit @ 7fe3083f4\n\ngcc -Wall -Wmissing-prototypes -Wpointer-arith\n-Wdeclaration-after-statement -Werror=vl...
[ { "msg_contents": "headerscheck and cpluspluscheck are both unhappy about this:\n\n./src/include/replication/worker_internal.h:49:2: error: unknown type name 'slock_t'\n slock_t relmutex;\n ^~~~~~~\n\nNow, worker_internal.h itself hasn't changed in some time.\nI conclude that somebody rearranged one of the h...
[ { "msg_contents": "Hi,\n\nSo, I am not a Windows native, and here I am mentoring a GSoC student\nsetting up CI on multiple environments, including Windows.\n\nIn my own development and testing, by habit I do everything from\nunprivileged accounts, just spinning up an instance in a temp location,\nrunning some t...
[ { "msg_contents": "Hi,\n\nOne of the comments needs correction \"sorting all tuples in the the\ndataset\" should have been \"sorting all tuples in the dataset\".\nThe Attached patch has the changes for the same.\n\nRegards,\nVignesh\nEnterpriseDB: http://www.enterprisedb.com", "msg_date": "Sat, 18 Jul 2020 ...
[ { "msg_contents": "Hi Tom,\n\nCan you take a look?\n\nPer Coverity.\n\nThere is something wrong with the definition of QUEUE_PAGESIZE on async.c\n\n1. #define QUEUE_PAGESIZE BLCKSZ\n2. BLCKSZ is 8192\n3..sizeof(AsyncQueueControl) is 8080, according to Coverity (Windows 64\nbits)\n4. (Line 1508) qe.length = ...
[ { "msg_contents": "In all branches back to v10, initdb marks pg_subscription.subslotname\nas NOT NULL:\n\n# \\d pg_subscription\n Table \"pg_catalog.pg_subscription\"\n Column | Type | Collation | Nullable | Default \n-----------------+---------+-----------+----------+---------\n oid ...
[ { "msg_contents": "Part of the blame for the pg_subscription.subslotname fiasco can be laid\nat the feet of initdb's default rule for marking columns NOT NULL; that\nrule is fairly arbitrary and does not guarantee to make safe choices.\nI propose that we change it so that it *is* safe, ie it will only mark\nfie...
[ { "msg_contents": "Hi,\n\nIt appears that when logical decoding sends out the data from the output\nplugin, it is not guaranteed that the decoded transaction's effects are\nvisible on the source server. Is this the way it's supposed to work?\n\nIf so, would doing something like this in the output plugin be rea...
[ { "msg_contents": "Hey all,\n\n*tl;dr: we're looking for an easy way to ask if a tuple is frozen from\nwithin a SQL query*\n\nWe're trying to build a validation process around our CCD, in an attempt to\nvalidate that all data inside of Postgres has made it into our secondary\nstore.\n\nOur plan is to build a sm...
[ { "msg_contents": "Hi,\n\nI am currently exploring the pg_start_backup() and pg_stop_backup() functions.\n\nIn the documentation (https://www.postgresql.org/docs/9.0/functions-admin.html), it is stated that after calling pg_stop_backup() Postgres switches to the new WAL segment file. But it doesn’t say the same...
[ { "msg_contents": "While poking around our crypto code, I noticed that a comment in sha2.h was\nreferencing sha-1 which is an algorithm not supported by the code. The\nattached fixes the comment aligning it with other comments in the file.\n\ncheers ./daniel", "msg_date": "Tue, 21 Jul 2020 13:57:11 +0200",...
[ { "msg_contents": "After forking we call RAND_cleanup in fork_process.c to force a re-seed to\nensure that two backends cannot share sequence. OpenSSL 1.1.0 deprecated\nRAND_cleanup, and contrary to how they usually leave deprecated APIs working\nuntil removed, they decided to silently make this call a noop li...
[ { "msg_contents": "I don't quite understand this part of the comment of the xl_heap_header\nstructure:\n\n * NOTE: t_hoff could be recomputed, but we may as well store it because\n * it will come for free due to alignment considerations.\n\nWhat are the alignment considerations? The WAL code does not appear to ...
[ { "msg_contents": "We hit this on v13b2 and verified it fails on today's HEAD (ac25e7b039).\n\nexplain SELECT 1 FROM sites NATURAL JOIN sectors WHERE sites.config_site_name != sectors.sect_name ;\nERROR: could not determine which collation to use for string comparison \n\nI can workaround the issue by DELETEin...
[ { "msg_contents": "Hi hackers.\n\nI tried to create LSM AM which can be used instead of nbtree.\nI looked at contrib/btree/gin, contrib/isn and try to do the following:\n\nCREATE OPERATOR FAMILY lsm3_float_ops USING lsm3;\n\nCREATE OPERATOR CLASS float4_ops DEFAULT\n     FOR TYPE float4 USING lsm3 FAMILY lsm3_f...
[ { "msg_contents": "Hi,hackers\r\n\r\nWhen I analyze this commit:\r\nhttps://github.com/postgres/postgres/commit/7897e3bb902c557412645b82120f4d95f7474906\r\nI noticed that the message was not consistent with the previous one in ‘src/backend/storage/file/buffile.c’\r\nTo keep the message consistent, I made the pa...
[ { "msg_contents": "Hi,\n\nI'm not sure this is the right list, but I have a problem concerning building PostgreSQL 12.3 from source on a Mac.\n\nI do:\n\n./configure \\\n --prefix=${pgTargetDir} \\\n --enable-nls \\\n --with-perl \\\n --with-python \\\n --with-libxml \\\n --with-tclconfig=/usr...
[ { "msg_contents": "Hi,\n\nI've twice seen the below failure when running tests in a loop (to\nverify another rare issue in a patch is fixed):\n\ndiff -du10 /home/andres/src/postgresql/src/test/regress/expected/with.out /home/andres/build/postgres/dev-assert/vpath/src/test/regress/results/with.out\n--- /home/and...
[ { "msg_contents": "Every so often we get a complaint like [1] about how a CASE should have\nprevented a run-time error and didn't, because constant-folding tried\nto evaluate a subexpression that would not have been entered at run-time.\n\nIt struck me that it would not be hard to improve this situation a great...
[ { "msg_contents": "One of our clients caught an error \"failed to find parent tuple for \nheap-only tuple at (50661,130) in table \"tbl'\" in PostgreSQL v12.\n\nSteps to reproduce (REL_12_STABLE):\n\n1) Create table with primary key, create brin index, fill table with \nsome initial data:\n\ncreate table tbl (i...
[ { "msg_contents": "Hi,\n\nIn a development branch of mine Thomas / the CF bot found a relatively\nrare regression failures. That turned out to be because there was an\nedge case in which heap_page_prune() was a bit more pessimistic than\nlazy_scan_heap(). But I wonder if this isn't an issue more broadly:\n\nThe...
[ { "msg_contents": "Hi,\n\nAfter adding a few assertions to validate the connection scalability\npatch I saw failures that also apply to master:\n\nI added an assertion to TransactionIdIsCurrentTransactionId(),\n*IsInProgress(), ... ensuring that the xid is within an expected\nrange. Which promptly failed in iso...
[ { "msg_contents": "I realize I've never quite known this; where does the planner get the row estimates for an empty table? Example:\n\npsql (11.8)\nType \"help\" for help.\n\nxof=# CREATE TABLE t (i integer, t text, j integer);\nCREATE TABLE\nxof=# VACUUM ANALYZE t;\nVACUUM\nxof=# EXPLAIN ANALYZE SELECT * FROM...
[ { "msg_contents": "Hi, hackers\n\nThe source looks like:\n\n\tcase ECPGt_bytea:\n\t{\n\t\tstruct ECPGgeneric_varchar *variable =\n\t\t(struct ECPGgeneric_varchar *) (var->value);\n\n\t\t......\n\t}\n\nI think the developer intend to use struct ECPGgeneric_bytea instead of struct ECPGgeneric_varchar\n\nIs this t...
[ { "msg_contents": "For logical replication there is no need to implement this, but others are\nusing the pgoutput plugin for Change Data Capture. The reason they are\nusing pgoutput is because it is guaranteed to be available as it is in core\npostgres.\n\nImplementing LogicalDecodeMessageCB provides some synch...
[ { "msg_contents": "Greetings,\n\nI'm looking into an issue that we're seeing on the PG archives server\nwith runaway queries that don't seem to ever want to end- and ignore\nsignals.\n\nThis is PG11, 11.8-1.pgdg100+1 specifically on Debian/buster and what\nwe're seeing is the loop in hlCover() (wparser_def.c:20...
[ { "msg_contents": "I went through the system's built-in implicit coercions to see\nwhich ones are unconditionally successful. These could all be\nmarked leakproof, as per attached patch. This came up in the\ncontext of the nearby discussion about CASE, but it seems like\nan independent improvement. If you ha...
[ { "msg_contents": "Latest Postgres\nWindows 64 bits\nmsvc 2019 64 bits\n\nPatches applied v12-0001 to v12-0007:\n\n C:\\dll\\postgres\\contrib\\pgstattuple\\pgstatapprox.c(74,28): warning C4013:\n'GetOldestXmin' indefinido; assumindo extern retornando int\n[C:\\dll\\postgres\nC:\\dll\\postgres\\contrib\\pg_visi...
[ { "msg_contents": "Hi hackers,\nWe discussed in another email thread[1], that it will be helpful if we can\ndisplay offset along with block number in vacuum error. Here, proposing a\npatch to add offset along with block number in vacuum errors.\n\nIn commit b61d161(Introduce vacuum errcontext to display additio...
[ { "msg_contents": "I would like to propose a patch for enabling the parallelism for the\nbitmap index scan path.\n\nBackground:\nCurrently, we support only a parallel bitmap heap scan path. Therein,\nthe underlying bitmap index scan is done by a single worker called the\nleader. The leader creates a bitmap in...
[ { "msg_contents": "A database with a very large number of tables eligible for autovacuum can result in autovacuum workers “stuck” in a tight loop of table_recheck_autovac() constantly reporting nothing to do on the table. This is because a database with a very large number of tables means it takes a while to s...
[ { "msg_contents": "I have a user case like this:\n\nrs = prepared_stmt.execute(1);\nwhile(rs.next())\n{\n // do something with the result and commit the transaction.\n conn.commit();\n}\n\nThe driver used the extended protocol in this case. It works like this: 1).\nParse ->\nPreparedStmt. 2). Bind -> Bin...
[ { "msg_contents": "Hi hackers,\n\nI've attached a patch to display individual query in the \npg_stat_activity query field when multiple SQL statements are currently \ndisplayed.\n\n_Motivation:_\n\nWhen multiple statements are displayed then we don’t know which one is \ncurrently running.\n\nFor example:\n\npsq...
[ { "msg_contents": "+JsonEncodeDateTime(char *buf, Datum value, Oid typid)\n...\n+ elog(ERROR, \"unknown jsonb value datetime type oid %d\", typid);\n\nI think this should be %u.\n\ncommit cc4feded0a31d2b732d4ea68613115cb720e624e\nAuthor: Andrew Dunstan <andrew@dunslane.net>\nDate: Tue Ja...
[ { "msg_contents": "Hi Hackers,\n\nWhen partitioned index support was added in veresion 11, the pg_inherits\ndocs missed the memo and still only say it describes table inheritance.\nThe attached patch adds mentions of indexes too, and notes that they can\nnot participate in multiple inheritance.\n\nI don't know ...
[ { "msg_contents": "An internal server aborted last night while running a maintenance script. I\nreproduced this easily running the crashing command in a loop, and verified\nthis is a live issue on REL_13_STABLE (dc6f2fb43).\nREINDEX INDEX pg_class_tblspc_relfilenode_index\n\nIt looks like this crashed once bef...
[ { "msg_contents": "Could maybe backpatch to v10.\n\ndiff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c\nindex 272f799c24..06ef658afb 100644\n--- a/src/bin/psql/tab-complete.c\n+++ b/src/bin/psql/tab-complete.c\n@@ -578,14 +578,23 @@ static const SchemaQuery Query_for_list_of_vacuumables = {\...
[ { "msg_contents": "Hi,\n\nI've attached a patch that implements \\si, \\sm, \\st and \\sr functions \nthat show the CREATE command for indexes, matviews, triggers and tables. \nThe functions are implemented similarly to the existing sf/sv functions \nwith some modifications.\n\nFor triggers, I've decided to cha...
[ { "msg_contents": "Hi,hackers\r\n\r\nWhen I was using PostgresQL, I noticed that the output of the Japanese messages was inconsistent with the English messages.\r\nThe Japanese message needs to be modified,so I made the patch.\r\n\r\n\r\nSee the attachment for the patch.\r\n\r\n\r\nBest regards", "msg_date"...
[ { "msg_contents": "Hoi hackers,\n\nWe've been using the pg_stat_statements extension to get an idea of the\nqueries used in the database, but the table is being filled with entries\nlike:\n\nSAVEPOINT sa_savepoint_NNN;\nRELEASE SAVEPOINT sa_savepoint_NNN;\nDECLARE \"c_7f9451c4dcc0_5\" CURSOR WITHOUT HOLD ...\nF...
[ { "msg_contents": "Is there a reason that HyperLogLog doesn't use pg_leftmost_one_pos32()?\n\nI tried the following patch and some brief performance tests seem to\nshow an improvement.\n\nThis came up because my recent commit 9878b643 uses HLL for estimating\nthe cardinality of spill files, which solves a few a...
[ { "msg_contents": "Hi,\n\nJust found a minor error in source code comment.\nsrc/include/executor/instrument.h\n\nAttached is the fix.\n\n-\tlong\t\tlocal_blks_dirtied; /* # of shared blocks dirtied */\n+\tlong\t\tlocal_blks_dirtied; /* # of local blocks dirtied */\n\n\nRegards,\nKirk Jamison", "msg_date": "...
[ { "msg_contents": "Hi\n\nI’d like to add icu/openssl support to my postgresql build on windows\n\ndocumentation says that I have to modify config.pl file, however it's not clear what exactly I have to do\n\nconfig-default.pl for example has the following line\n\n icu => undef, # --with-icu=<path>\n\nso...
[ { "msg_contents": "Commit 896ddf9b added prefetching to logtape.c to avoid excessive\nfragmentation in the context of hash aggs that spill and have many\nbatches/tapes. Apparently the preallocation doesn't actually perform\nany filesystem operations, so the new mechanism should be zero\noverhead when \"prealloc...
[ { "msg_contents": "Hello,\n\nI found that \"make installcheck\" could not work in PGXS.\n\n--[/src/foo_project/Makefile]--\nSUBDIRS = foo\n\nTAP_TESTS = 1\n\nPG_CONFIG = pg_config\nPGXS := $(shell $(PG_CONFIG) --pgxs)\n\ninclude $(PGXS)\n\n$(recurse)\n$(recurse_always)\n\n--[/src/foo_project/t/001_foo_test.pl]\...
[ { "msg_contents": "Hello.\n\nPostgreSQL server accepts only one CRL file. It is easy to expand\nbe_tls_init to accept a directory set in ssl_crl_file. But I'm not\nsure CRL is actually even utilized in the field so that could ends\nwith just bloating the documentation.\n\nIs it work doing?\n\nregards.\n\n-- \nK...
[ { "msg_contents": "Hi\n\nIn a recent audit, I noticed that application developers have a tendency to \nabuse the distinct clause. For instance they use an ORM and add a distinct at \nthe top level just because they don't know the cost it has, or they don't know \nthat using EXISTS is a better way to express the...
[ { "msg_contents": "Hi hackers,\n\nEvery time I have to look up what kinds of operations each index type is\nsuitable for, I get annoyed by the index types page being virtually\nunskimmable due to not having headings for each index type.\n\nAttached is a patch that adds <sect2> tags for each index type to make\n...
[ { "msg_contents": "Hi,\n\nIn our testing framework, backed by pg_regress, there exists the ability to use special strings\nthat can be replaced by environment based ones. Such an example is '@testtablespace@'. The\nfunction used for this replacement is replace_string which inline replaces these occurrences in\n...
[ { "msg_contents": "Postgres provides serial and bigserial column types for which it \nimplicitly creates sequence.\nAs far as this mechanism is somehow hidden from user, it may be \nconfusing that table\ncreated with CREATE TABLE LIKE has no associated sequence.\n\nBut what is worse, even if experienced user kn...
[ { "msg_contents": "Hi,\n\nI tried to implement a static background(bg) worker without shared\nmemory access (BGWORKER_SHMEM_ACCESS), it worked fine on Linux machine\nwhere EXEC_BACKEND is not defined(thanks to the fork() implementation\nwhich does great job to get the global state from the\npostmaster(parent) t...
[ { "msg_contents": "Hi,\n\nThere are one or two failures per month on crake. It looks like when\nauthentication is rejected, as expected in the tests, the psql process\nis exiting, but there is a race where the Perl script still wants to\nwrite a dummy query to its stdin (?), so you get:\n\npsql: FATAL: LDAP a...
[ { "msg_contents": "Hello,\n\nUnder the next version of macOS (11.0 unreleased beta 3), configuring Postgres 9.5 and 9.6 fails with\n\n> checking test program... ok\n> checking whether long int is 64 bits... no\n> checking whether long long int is 64 bits... no\n> configure: error: Cannot find a working 64-bit i...
[ { "msg_contents": "As previously discussed at [1], contrib/intarray's GiST opclasses\ndo not index empty arrays in a useful way, meaning that\n\"indexedcol <@ something\" has to do a full-index search to ensure\nthat it finds empty arrays, which such a query should always find.\nWe'd be better off to not consid...
[ { "msg_contents": "Core was generated by `postgres: telsasoft ts [local] BIND '.\n\n(gdb) bt\n#0 0x00007f0951303387 in raise () from /lib64/libc.so.6\n#1 0x00007f0951304a78 in abort () from /lib64/libc.so.6\n#2 0x0000000000921005 in ExceptionalCondition (conditionNam...
[ { "msg_contents": "Hackers,\n\nI have a situation that I am observing where dblink_is_busy returns 1\neven though the connection is long gone. tcp keepalives are on and\nthe connection has been dead for several hours. Looking at the call\nfor dblink_is_busy, I see that it is a thin wrapper to PQusBusy().\nIf...
[ { "msg_contents": "..which should no longer be needed since it was a performance hack for specific\nplatform snprintf, which are no longer used.", "msg_date": "Sun, 2 Aug 2020 23:59:48 -0500", "msg_from": "Justin Pryzby <pryzby@telsasoft.com>", "msg_from_op": true, "msg_subject": "[PATCH v1] elo...
[ { "msg_contents": "I thought that the biggest reason for the pgbench RW slowdown during a checkpoint was the flood of dirty page writes increasing the COMMIT latency. It turns out that the documentation which states that FPW's start \"after a checkpoint\" really means after a CKPT starts. And this is the real...
[ { "msg_contents": "I propose to replace the remaining uses of StrNCpy() with strlcpy() and \nremove the former. It's clear that strlcpy() has won the popularity \ncontest, and the presence of the former is just confusing now.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Develop...
[ { "msg_contents": " Hi,\n\nAs a follow-up to bug #16570 [1] and other previous discussions\non the mailing-lists, I'm checking out PG13 beta for Windows\nfrom:\n https://www.enterprisedb.com/postgresql-early-experience\nand it ships with the same obsolete ICU 53 that was used\nfor PG 10,11,12.\nBesides not havi...
[ { "msg_contents": "I've been working on the ability to detach a partition from a\npartitioned table, without causing blockages to concurrent activity.\nI think this operation is critical for some use cases.\n\nThere was a lot of great discussion which ended up in Robert completing\na much sought implementation ...
[ { "msg_contents": "Hi,\n\nAt the moment JIT compilation, if enabled, is applied to all\nexpressions in the entire plan. This can sometimes be a problem as\nsome expressions may be evaluated lots and warrant being JITted, but\nothers may only be evaluated just a few times, or even not at all.\n\nThis problem te...
[ { "msg_contents": "Hello.\n\nWhile poking at ssl code, I noticed that 002_scram.pl fails if\n~/.postgresql/root.crt exists. This has been fixed once but\nd6e612f837 reintroduced one. The attached fixes that. Applies to\n14devel and 13.\n\nregards.\n\n-- \nKyotaro Horiguchi\nNTT Open Source Software Center", ...