threads
listlengths
1
2.99k
[ { "msg_contents": "While working on something else, I noticed $SUBJECT, which I should\nhave updated in commit 27e1f1456. :-( There are two places that need\nto be updated, but in the first place the second one seemed a bit\nredundant to me, because it says the same thing as the first one, and\nis placed pret...
[ { "msg_contents": "Hello and thank you very much for the best open source database engine!\n\nThere's just this tiny but seemingly obvious issue that I can't believe I \nhaven't noticed until now: to_date(now(), 'TMmonth') returns 'october' in an \nEnglish locale (en_US.UTF-8 at least). Names of months and week...
[ { "msg_contents": "Hi All,\nsentPtr reported by WAL sender should usually never jump back, it\nshould always increase.\nI observed a strange behaviour with the WAL sender where sentPtr jumps\nback at the beginning. From code examination it looks like the\nfollowing behaviour is culprit.\n\nThe WAL sender reads ...
[ { "msg_contents": "Dear Hackers,\n\nWhile reading source codes about timeouts and GUC and I found that\nstrange behavior about client_connection_check_interval.\n\nCurrently we did not an assign_hook about client_connection_check_interval,\nthat means a timeout will not turn on immediately if users change the G...
[ { "msg_contents": "When producing a forked version of PostgreSQL, there is no \nstraightforward way to enforce that users don't accidentally load \nmodules built for the non-forked (standard, community) version. You can \nonly distinguish by PostgreSQL major version and a few compile-time \nsettings. (see int...
[ { "msg_contents": "Hi,\n\nI was able to create a table in \"information_schema\" schema, but\npg_dump does not dumps the table that was created in\n\"information_schema\" schema:\ncreate table information_schema.t1(c1 int);\n\nThe similar problem exists in case of create publication, we are able\nto create publ...
[ { "msg_contents": "Hi,\n\nIn a typical production environment, the user (not necessarily a\nsuperuser) sometimes wants to analyze the memory usage via\npg_backend_memory_contexts view or pg_log_backend_memory_contexts\nfunction which are accessible to only superusers. Isn't it better to\nallow non-superusers wi...
[ { "msg_contents": "Adjust configure to insist on Perl version >= 5.8.3.\n\nPreviously it only checked for version >= 5.8.0, although the\ndocumentation has said that the minimum version is 5.8.3 since\ncommit dea6ba939. Per the discussion leading up to that commit,\nI (tgl) left it that way intentionally becau...
[ { "msg_contents": "Hi,\n\nI noticed that for NetBSD we only have one animal, and it's running\nEOL'd release 7. To give decent visibility of relevant portability\nproblems it'd be nice to have one of the current supported releases[1]\nin there. CC'ing owner; any interest in updating this animal to 9.x?\n\nFor...
[ { "msg_contents": "We generally only expect amvacuumcleanup() routines to be called\nduring VACUUM. But some ginvacuumcleanup() calls are an exception to\nthat general rule -- these are calls made during autoanalyze, where\nginvacuumcleanup() does real pending list cleanup work (not just a\nno-op return). That'...
[ { "msg_contents": "Hi\n\nWhen 'ALTER FOREIGN DATA WRAPPER OPTIONS' is executed against \npostgres_fdw, the HINT message is printed as shown below, even though \nthere are no valid options in this context.\n\n=# ALTER FOREIGN DATA WRAPPER postgres_fdw OPTIONS (format 'csv');\nERROR: invalid option \"format\"\nHI...
[ { "msg_contents": "Hi hackers,\n\n== Background ==\n\nThis is a follow-up thread to `Add ZSON extension to /contrib/` [1].\nThe ZSON extension introduces a new type called ZSON, which is 100%\ncompatible with JSONB but uses a shared dictionary of strings most\nfrequently used by given JSONB documents for compre...
[ { "msg_contents": "Hi,\n\nThe commit [1] for the feature \"Remove temporary files after backend\ncrash\" introduced following in the docs:\n+ <para>\n+ When set to <literal>on</literal>, which is the default,\n+ <productname>PostgreSQL</productname> will automatically remove\n+ tempor...
[ { "msg_contents": "Hi,\n\nAt times, users want to know what are the files (snapshot and mapping\nfiles) that are available under pg_logical directory and also the\nspill files that are under pg_replslot directory and how much space\nthey occupy. This will help to better know the storage usage pattern\nof these ...
[ { "msg_contents": "Hi, hackers\n\n\nI notice that postgres use constraints to optimize/rewrite queries in\nlimited cases as\nhttps://www.postgresql.org/docs/current/runtime-config-query.html#GUC-CONSTRAINT-EXCLUSION\n.\n\n\nI propose two new types of query rewrites using constraints here\n\n1) Remove DISTINCT\n...
[ { "msg_contents": "Hi,\n\nwe have a replica product that access to wal files with logical replication.\n\nAfter a reboot following a database fault we receive the following issue.\n\n2021-10-08 16:07:31.829 CEST:127.0.0.1(49880):cdcadm@REPLICA:[12976]:\nERROR: unexpected duplicate for tablespace 16389, relfilen...
[ { "msg_contents": "Greetings hackers,\n\nI'm seeing some odd behavior around string prefix searching -\nhopefully I've missed something here (thanks to Nino Floris for\noriginally flagging this).\n\nIn PostgreSQL 11, a starts_with function and a ^@ operators were added\nfor string prefix checking, as an alterna...
[ { "msg_contents": "Hi,\n\nIt looks like auxiliary processes will not have a valid MyBackendId as\nthey don't call InitPostgres() and SharedInvalBackendInit() unlike\nbackends. But the startup process (which is an auxiliary process) in\nhot standby mode seems to be different in the way that it does have a\nvalid...
[ { "msg_contents": "Hi,\n\nCurrently pg_log_backend_memory_contexts() doesn't log the memory\ncontexts of auxiliary processes such as bgwriter, checkpointer, wal\nwriter, archiver, startup process and wal receiver. It will be useful\nto look at the memory contexts of these processes too, for debugging\npurposes ...
[ { "msg_contents": "When starts_with() and the equivalent ^@ operator were added, they\nwere plugged into the planner in only a rather half-baked way.\nSelectivity estimation got taught about the operator, but the\nother infrastructure associated with LIKE/regex matching wasn't\nupdated. This causes these opera...
[ { "msg_contents": "Hi all,\n\nIn building off of prior art regarding the 'pg_read_all_data' and\n'pg_write_all_data' roles, I would like to propose an extension to roles\nthat would allow for database-specific role memberships (for the purpose of\ngranting database-specific privileges) as an additional layer of...
[ { "msg_contents": "Hi,\n\nThe freebsd image I use for CI runs just failed because the package name for\nopenldap changed (it's now either openldap{24,25}-{client,server}, instead of\nopenldap-..}. I naively resolved that conflict by choosing the openldap25-*\npackages. Which unfortunately turns out to break 001...
[ { "msg_contents": "Hi\n\nI would like to fix an issue https://github.com/okbob/pspg/issues/188 where\nthe write to clipboard from pspg doesn`t work on macos. But it is hard to\nfix it without any macos. I am not a user of macos and I would not buy it\njust for this purpose.\n\nIs it possible to get some remote...
[ { "msg_contents": "While creating an \"export snapshot\" I don't see any protection why the\nnumber of xids in the snapshot can not cross the\n\"GetMaxSnapshotXidCount()\"?.\n\nBasically, while converting the HISTORIC snapshot to the MVCC snapshot\nin \"SnapBuildInitialSnapshot()\", we add all the xids between\...
[ { "msg_contents": "Hi,\n\nWhen testing logical replication, I found a case which caused assert coredump on\nlatest HEAD. The reproduction steps are as follows:\n\n1)\n----publisher----\ncreate table test(i int);\ncreate publication pub for table test;\nbegin;\n\ninsert into test values(1);\n\n2)\n----subscriber...
[ { "msg_contents": "Hi,\n\nThe comments for pgfdw_get_cleanup_result() say this:\n\n * It's not a huge problem if we throw an ERROR here, but if we get into error\n * recursion trouble, we'll end up slamming the connection shut, which will\n * necessitate failing the entire toplevel transaction even if subtransa...
[ { "msg_contents": "Hi All,\n\nWhile using IMMUTABLE functions in index expression, we are getting below\ncorruption on HEAD.\n\npostgres=# CREATE TABLE tab1 (c1 numeric, c2 numeric);\nCREATE TABLE\n\npostgres=# INSERT INTO tab1 values (10, 100);\nINSERT 0 1\n\npostgres=# CREATE OR REPLACE FUNCTION func1(var1 ...
[ { "msg_contents": "As reported at [1], if the transaction is aborted during export\nsnapshot then ExportInProgress and SavedResourceOwnerDuringExport are\nnot getting reset and that is throwing an error\n\"clearing exported snapshot in wrong transaction state\" while\nexecuting the next command. The attached p...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 17220\nLogged by: Matthijs van der Vleuten\nEmail address: postgresql@zr40.nl\nPostgreSQL version: 14.0\nOperating system: Debian sid\nDescription: \n\nUser 'musttu' on IRC reported the following b...
[ { "msg_contents": "Hi,\n\nWhile working on [1], it is found that currently the ProcState array\ndoesn't have entries for auxiliary processes, it does have entries for\nMaxBackends. But the startup process is eating up one slot from\nMaxBackends. We need to increase the size of the ProcState array by 1\nat least...
[ { "msg_contents": "This commit broke psql \\d datname.nspname.relname\n\ncommit 2c8726c4b0a496608919d1f78a5abc8c9b6e0868\nAuthor: Robert Haas <rhaas@postgresql.org>\nDate: Wed Feb 3 13:19:41 2021 -0500\n\n Factor pattern-construction logic out of processSQLNamePattern.\n...\n patternToSQLRegex is a litt...
[ { "msg_contents": "Hi,\n\n> The previous patch was failing because of the recent test changes made\n> by commit 201a76183e2 which unified new and get_new_node, attached\n> patch has the changes to handle the changes accordingly.\n> Thanks for your update!\n> I have two comments.\n\n1.Do we need “set_backtrace(N...
[ { "msg_contents": "Hi,\n\nQueryID is good tool for query analysis. I want to improve core jumbling \nmachinery in two ways:\n1. QueryID value should survive dump/restore of a database (use fully \nqualified name of table instead of relid).\n2. QueryID could represent more general class of queries: for example, ...
[ { "msg_contents": "Hi,\n\nFor the last year or so I've on and off tinkered with $subject. I think\nit's in a state worth sharing now. First, let's look at a little\ncomparison.\n\nMy workstation:\n\nnon-cached configure:\ncurrent: 11.80s\nmeson: 6.67s\n\nnon-cached build (world-bin):\ncurrent...
[ { "msg_contents": "Hi hackers,\n\nI noticed that `make install` updates modification time for all\ninstalled headers. This leads to recompilation of all dependent\nobjects, which is inconvenient for example when working on a\nthird-party extension. A way to solve this would be to pass\n`INSTALL=\"install -p\"` ...
[ { "msg_contents": "While working on the issue [1], I realize that if a subtransaction\nhasn't done any catalog change then we don't add this in the commit\nxid list even if we are building a full snapshot [2]. That means when\nwe will convert this to the MVCC snapshot we will add this to a\nrunning xid list. ...
[ { "msg_contents": "I am very new to this list, so I don’t know whether this is the right place.\n\nMicrosoft SQL and MySQL both use the @ sign at the beginning of their \nvariables. The most obvious benefit of this is that it is very easy to \ndistinguish between variable names and column names.\n\nI’m not aski...
[ { "msg_contents": "In a blog post (https://about.gitlab.com/blog/2021/09/29/why-we-spent-the-last-month-eliminating-postgresql-subtransactions/),\nI described how PostgreSQL can enter into a suboverflow condition on\nthe replica under a number of conditions:\n\n1. A long transaction starts.\n2. A single SAVEPOI...
[ { "msg_contents": "Hi,\n\nI see that the recoveryStopsAfter() doesn't have any \"recovery\nstopping after XXXX\" sort of log for RECOVERY_TARGET_TIME recovery\ntarget type. It has similar logs for other recoveryTarget types\nthough. Is there any specific reason for not having it?\n\nI see that we have \"startin...
[ { "msg_contents": "As you might have seen from my email in another thread, thanks to\nStephen and Cybertec staff, I am back working on cluster file\nencryption/TDE.\n\nStephen was going to research if XTS cipher mode would be a good fit for\nthis since it was determined that CTR cipher mode was too vulnerable t...
[ { "msg_contents": "Hi, all\nI have some doubts about the request xlog streaming startpoint in WaitForWALToBecomeAvailable(). In this function, RecPtr is the endpoint lsn we are waiting for, tliRecPtr is the position of the WAL record we are interested in, I want to know why use RecPtr rather than tliRecPtr as t...
[ { "msg_contents": "Hi All,\n\nPublisher 'DateStyle' is set as \"SQL, MDY\", whereas in Subscriber as\n\"SQL, DMY\", the logical replication is not working...\n\n From Publisher:\npostgres=# INSERT INTO calendar VALUES ('07-18-1036', '1'), ('05-15-1135', '1');\nINSERT 0 2\n\nGetting below error in the subscriber...
[ { "msg_contents": "Hi,\n\n\nHere is a proposal to implement HIDDEN columns feature in PostgreSQL.\n\nThe user defined columns are always visible in the PostgreSQL. If user\nwants to hide some column(s) from a SELECT * returned values then the\nhidden columns feature is useful. Hidden column can always be used a...
[ { "msg_contents": "According to getpwnam(3):\n\n An application that wants to determine its user's home directory\n should inspect the value of HOME (rather than the value\n getpwuid(getuid())->pw_dir) since this allows the user to modify\n their notion of \"the home directory\" during a login session.\n\nT...
[ { "msg_contents": "Hello!\n \nWhen extension  pg_stat_statsement is loaded into memory or compute_query_id=on in postgesql.conf\nmany of installcheck tests give errors.\nThe thing is that in *.out files appear lines \"queryid = xxxxx\" where xxxxx - some numeric value.\nSo 24 of 209 installcheck tests will fail...
[ { "msg_contents": "Hi,\n\nIn another logical replication related thread[1], my colleague Greg found that\nif publish_via_partition_root is true, then the child table's data will be\ncopied twice when adding both child and parent table to the publication.\n\nExample:\n\n-----\nPub:\ncreate table tbl1 (a int) par...
[ { "msg_contents": "Hi.\n\nOne of the issues when we try to use sharding in PostgreSQL is absence \nof partial aggregates pushdown.\n\nI see several opportunities to alleviate this issue.\nIf we look at Citus, it implements aggregate, calculating internal state \nof an arbitrary agregate function and exporting i...
[ { "msg_contents": "In pgsql-docs, this patch has been recommended to you.\n\nLacking consensus and so not included is the the deletion of\ncomments pointing between the ref/MOVE and FETCH files. These\nwere of the form:\n\n <!-- Note the \"direction\" bit is also in ref/fetch.sgml -->\n\n\nThanks for the so...
[ { "msg_contents": "This removes the outer square brackets in the create_database.sgml\nfile's synopsis. In the command sysopses, this is the only case\nwhere an optional group contains only optional groups.\n\nRob", "msg_date": "Fri, 15 Oct 2021 13:13:14 -0400", "msg_from": "rir <rirans@comcast.net>", ...
[ { "msg_contents": "While fooling with something else, I happened to notice $SUBJECT.\nThe reason turns out to be that it's checking the wrong element\nof the tblinfo[] array; see one-liner fix attached.\n\nI had a feeling of deja vu about this bug, and indeed a dig in\nthe git history shows that we fixed it in ...
[ { "msg_contents": "Hi\n\nI played with one dynamic access to record's fields. I was surprised so I\ncannot to access to record field from dynamic SQL. Is there some reason why\nit is not possible? Today all composite types in PL/pgSQL are records:\n\ndo $$\ndeclare r record; _relname varchar;\nbegin\n for r in...
[ { "msg_contents": "Attached is a proposed patch that refactors getTables() along the\nsame lines as some previous work (eg 047329624, ed2c7f65b, daa9fe8a5)\nto avoid having multiple partially-redundant copies of the SQL query.\nThis gets rid of nearly 300 lines of duplicative spaghetti code,\ncreates a uniform ...
[ { "msg_contents": "From: Mikhail <mp39590@gmail.com>\n\nWe might be in situation when we have \"just enough\" semaphores in the\nsystem limit to start but previously crashed unexpectedly, in that case\nwe won't be able to start again - semget() will return ENOSPC, despite\nthe semaphores are ours, and we can re...
[ { "msg_contents": "While poking at pg_dump for some work I'll show later, I grew quite\nunhappy with the extent to which people have ignored this advice\ngiven near the head of getTables():\n\n * Note: in this phase we should collect only a minimal amount of\n * information about each table, basically j...
[ { "msg_contents": "Hi hackers,\n\nI'm writing an extension that employs `object_access_hook`. I want to\nmonitor the table creation event and record the mapping between `reloid`\nand `relfilenode` during a transaction. Here's my code snippet,\n\n```\nstatic void\nmy_object_access_hook(ObjectAccessType access,\n...
[ { "msg_contents": "Hi, all\nI noticed that the \"else\" is missing during the error report after FileWrite() of mdwrite()/mdextend(), short write error is supposed to be reported when written bytes is not less than 0.\nI modified it in the attached patch:\ndiff --git a/src/backend/storage/smgr/md.c b/src/backen...
[ { "msg_contents": "Hi!\n\nI am still hoping to finish my work on reloptions I've started some years ago.\n\nI've renewed my patch and I think I need help from core team to finish it.\n\nGeneral idea of the patch: Now we have three ways to define options for \ndifferent objects, with more or less different code ...
[ { "msg_contents": "Hi all,\n\n$subject has been noticed on github here:\nhttps://github.com/postgres/postgres/pull/70/commits\n\nLooking at the MSIs of OpenSSL for Win64 and Win32, there are no\nchanges in the deliverable names or paths, meaning that something as\nsimple as the attached patch is enough to make ...
[ { "msg_contents": "Hi hackers,\n\nI couldn’t find a similar report to this one, so starting a new thread. I can reproduce this on v14.0 as well as PostgreSQL 12.5 (not tried below versions).\n\nSteps to reproduce:\n\nCREATE TYPE two_ints as (if1 int, if2 int);\nCREATE DOMAIN domain AS two_ints CHECK ((VALUE).if...
[ { "msg_contents": "Hi,\n\nI can (almost) consistently reproduce $subject by executing the\nattached shell script, which I was using while constructing a test\ncase for another thread.\n\nThe backtrace on the assert failure is this:\n\n(gdb) bt\n#0 0x00007fce0b018387 in raise () from /lib64/libc.so.6\n#1 0x000...
[ { "msg_contents": "\nHi, hackers\n\nWhile reading the patch in [1], I found there is an unexpected behavior when\nupdate the domain array that is based on a composite.\n\nSteps to reproduce:\n\n1)\nCREATE TYPE two_ints as (if1 int, if2 int);\nCREATE DOMAIN domain AS two_ints CHECK ((VALUE).if1 > 0);\nCREATE TAB...
[ { "msg_contents": "Hi hackers,\r\n\r\nI run 'make check-world' a lot, and I typically use parallelism and\r\nredirect stdout to /dev/null as suggested in the docs [0]. This seems\r\nto eliminate all of the test chatter except for this one message:\r\n\r\n NOTICE: database \"regression\" does not exist,...
[ { "msg_contents": "Hi,\n\nThis is a followup to\nhttp://postgr.es/m/CA+TgmoZ5A26C6OxKApafyuy_sx0VG6VXdD_Q6aSEzsvrPHDwzw@mail.gmail.com.\nI'm suspicious of the following code in CreateReplicationSlot:\n\n /* setup state for WalSndSegmentOpen */\n sendTimeLineIsHistoric = false;\n sendTimeLine = ThisTime...
[ { "msg_contents": "\nThe problem I'm writing about (h/t Simon Riggs for finding it) is\nillustrated by the following snippet of java:\n\n public static void runtest(Connection conn) throws Exception {\n Statement stmt = conn.createStatement();\n stmt.setFetchSize(10);\n ResultSet rs = ...
[ { "msg_contents": "Greetings -hackers,\n\nEnclosed is a patch that implements CREATE ROLE IF NOT EXISTS (along with\nthe same support for USER/GROUP). This is a fairly straightforward\napproach in that we do no validation of anything other than existence, with\nthe user needing to ensure that permissions/grant...
[ { "msg_contents": "Hi,\n\nWhen I read the documents and source code of wait evens,\nI found that the following wait events are never reported.\n\n* LogicalChangesRead: Waiting for a read from a logical changes file.\n* LogicalChangesWrite: Waiting for a write to a logical changes file.\n* LogicalSubxactRead: Wa...
[ { "msg_contents": "Hi hackers,\n\nOne of our test runs under the memory sanitizer cathed [1] the\nfollowing stacktrace:\n\n```\nheaptuple.c:1044:13: runtime error: load of value 111, which is not a\nvalid value for type '_Bool'\n #0 0x55fbb5e0857b in heap_form_tuple\n/home/runner/pgbuild/src/backend/access/c...
[ { "msg_contents": "Hi all,\n\nI have been wondering about some things related to schema privileges:\n\n1) Why do visibility rules apply to the \\d command, but not to system\ntables? What is the purpose of hiding stuff from \\d output while users\ncan get the same info another way?\n\n2) What is the reasoning b...
[ { "msg_contents": "Hi,\n\nThe FATAL error \"recovery ended before configured recovery target was\nreached\" introduced by commit at [1] in PG 14 is causing the standby\nto go down after having spent a good amount of time in recovery. There\ncan be cases where the arrival of required WAL (for reaching recovery\...
[ { "msg_contents": "Hi,\n\nPerennially our users have complaints about slow count(*) when coming from\nsome other systems. Index-only scans help, but I think we can do better. I\nrecently wondered if a BRIN index could be used to answer min/max aggregate\nqueries over the whole table, and it turns out it doesn't...
[ { "msg_contents": "These patches have been split off the now deprecated monolithic \"Delegating superuser tasks to new security roles\" thread at [1].\n\nThe purpose of these patches is to allow non-superusers to configure most aspects of a system, so long as they belong to the appropriate privileged role(s):\n...
[ { "msg_contents": "These patches have been split off the now deprecated monolithic \"Delegating superuser tasks to new security roles\" thread at [1].\n\nThe purpose of these patches is to allow ordinary users to create and own event triggers without introducing escalation attack vectors:\n\n\n\n\n\n\n[1] https...
[ { "msg_contents": "These patches have been split off the now deprecated monolithic \"Delegating superuser tasks to new security roles\" thread at [1].\n\nThe purpose of these patches is to fix the CREATEROLE escalation attack vector misfeature. (Not everyone will see CREATEROLE that way, but the perceived valu...
[ { "msg_contents": "These patches have been split off the now deprecated monolithic \"Delegating superuser tasks to new security roles\" thread at [1].\n\nThe purpose of these patches is to allow non-superuser subscription owners without risk of them overwriting tables they lack privilege to write directly. This...
[ { "msg_contents": "Hi,\n\nI wonder if we really need signals to implement interrupts. Given\nthat they are non-preemptive/cooperative (work happens at the next\nCFI()), why not just use shared memory flags and latches? That skips\na bunch of code, global variables and scary warnings about programming\nin sign...
[ { "msg_contents": "Attached is a series of patches that address some performance and\ncorrectness problems we've recently identified in pg_dump.\n\nPatch 0001 refactors the way pg_dump keeps track of which \"components\"\n(definition, data, comment, ACL, etc) of a dumpable object need to be\ndumped. The proble...
[ { "msg_contents": "Remove unused wait events.\n\nCommit 464824323e introduced the wait events which were neither used by\nthat commit nor by follow-up commits for that work.\n\nAuthor: Masahiro Ikeda\nBackpatch-through: 14, where it was introduced\nDiscussion: https://postgr.es/m/ff077840-3ab2-04dd-bbe4-4f5dfd2...
[ { "msg_contents": "Hi,\n\nI'd like to propose to add new wait event reported while archiver process\nis executing archive_command. This would be helpful to observe\nwhat archiver is doing and check whether it has some troubles or not.\nThought? PoC patch attached.\n\nAlso how about adding wait events for other ...
[ { "msg_contents": "One problem I've seen in multiple databases and is when a table has a\nmixture of data sets within it. E.g. A queue table where 99% of the\nentries are \"done\" but most queries are working with the 1% that are\n\"new\" or in other states. Often the statistics are skewed by the\n\"done\" entr...
[ { "msg_contents": "Hi,\nw.r.t. 0001-Partial-aggregates-push-down-v03.patch\n\nFor partial_agg_ok(),\n\n+ if (agg->aggdistinct || agg->aggvariadic || agg->aggkind !=\nAGGKIND_NORMAL || agg->aggorder != NIL)\n+ ok = false;\n\nSince SearchSysCache1() is not called yet, you can return false directly.\n\n+ ...
[ { "msg_contents": "Today, pg_dump does a lot of internal lookups via binary search\nin presorted arrays. I thought it might improve matters\nto replace those binary searches with hash tables, theoretically\nconverting O(log N) searches into O(1) searches. So I tried making\na hash table indexed by CatalogId (...
[ { "msg_contents": "I returned to the 1995 paper \"Efficient Search of Multidimensional\nB-Trees\" [1] as part of the process of reviewing v39 of the skip scan\npatch, which was posted back in May. It's a great paper, and anybody\ninvolved in the skip scan effort should read it thoroughly (if they\nhaven't alrea...
[ { "msg_contents": "Hello there hackers,\n\nWe at Zalando have faced some issues around long running idle\ntransactions and were thinking about increasing the visibility of\npg_stat_* views to capture them easily. What I found is that currently\nin pg_stat_activity there is a lot of good information about the\nc...
[ { "msg_contents": "Hi hackers,\n\nDuring the discussion [1] it was discovered that we have two\nprocedures in execTuples.c that do the same thing:\n\n* MakeSingleTupleTableSlot()\n* MakeTupleTableSlot()\n\nIn fact, MakeSingleTupleTableSlot() is simply a wrapper for\nMakeTupleTableSlot().\n\nI propose keeping on...
[ { "msg_contents": "Hackers,\n\nI noticed recently that permissions checking is done differently for the \nserver certificate key than the client key. Specifically, on the server \nthe key can have 640 perms if it is owned by root.\n\nOn the server side this change was made in 9a83564c and I think the same \nrat...
[ { "msg_contents": "Hello Tom!\n\nI noticed you are improving pg_dump just now.\n\nSome time ago I experimented with a customer database dump in parallel directory mode -F directory -j (2-4)\n\nI noticed it took quite long to complete.\n\nFurther investigation showed that in this mode with multiple jobs the tabl...
[ { "msg_contents": "While doing some desultory testing, I realized that the commit\nI just pushed (92316a458) broke pg_dump against 8.0 servers:\n\n$ pg_dump -p5480 -s regression\npg_dump: error: schema with OID 11 does not exist\n\nThe reason turns out to be something I'd long forgotten about: except\nfor the f...
[ { "msg_contents": "Simple patch to implement $SUBJECT attached.\n\npg_signal_backend seems like the appropriate predefined role, because\npg_log_backend_memory_contexts() is implemented by a sending signal.\n\nRegards,\n\tJeff Davis", "msg_date": "Sat, 23 Oct 2021 12:57:02 -0700", "msg_from": "Jeff Davi...
[ { "msg_contents": "Add new predefined role pg_maintenance, which can issue VACUUM,\nANALYZE, CHECKPOINT.\n\nPatch attached.\n\nRegards,\n\tJeff Davis", "msg_date": "Sat, 23 Oct 2021 14:45:02 -0700", "msg_from": "Jeff Davis <pgsql@j-davis.com>", "msg_from_op": true, "msg_subject": "Predefined rol...
[ { "msg_contents": "Avoid race in RelationBuildDesc() affecting CREATE INDEX CONCURRENTLY.\n\nCIC and REINDEX CONCURRENTLY assume backends see their catalog changes\nno later than each backend's next transaction start. That failed to\nhold when a backend absorbed a relevant invalidation in the middle of\nrunnin...
[ { "msg_contents": "Hi everyone. I want to do some feature request regarding indexes, as far as\nI know this kind of functionality doesn't exists in Postgres. Here is my\nproblem :\nI need to create following indexes:\n Create index job_nlp_year_scan on ingest_scans_stageing\n(`job`,`nlp`,`year`,`scan_id`...
[ { "msg_contents": "Hello.\n\nI noticed that the following command doesn't leave connection log in\nlog file.\n\n> psql \"host=localhost options=-c\\ log_connections=on\"\n\nThe reason is we log connections before the options is processed. We\nneed to move the code from BackendInitialize to InitPostgres where\n...
[ { "msg_contents": "src/port/snprintf.c: Optimize the common base=10 case in fmtint\n\nfmtint() turns an integer into a string for a given base, and to do this\nit does a divide/modulo operation iteratively.\n\nOn just about any CPU, divides are a pretty expensive operation, generally\n10x to 20x or more expensi...
[ { "msg_contents": "Hi,\n\nour make dependencies currently are insufficient to trigger client binaries to\nbe relinked when pgport/pgcommon/libpq/... changes.\n\nTo reproduce, you can use something like:\ntouch ~/src/postgresql/src/port/snprintf.c && make -j48 2>&1|grep 'gcc.*pgbench'\nwhich won't show anything,...
[ { "msg_contents": "Hi,\r\n\r\nSince PostgreSQL 12 (0516c61b756e39) we have allowed for the ability to \r\nset \"clientcert=verify-full\" against various HBA authentication methods. \r\nThis provides the ability to provide \"multi-factor authentication\" e.g. \r\na client must provide both a valid certificate wi...
[ { "msg_contents": "[PATCH v2] src/port/snprintf.c: Optimize the common base=10 case in fmtint\n\nfmtint() turns an integer into a string for a given base, and to do this\nit does a divide/modulo operation iteratively.\nThe only possible base values are 8, 10 and 16\n\nOn just about any CPU, divides are a pretty...
[ { "msg_contents": "Generally if a role is granted membership to another role with NOINHERIT\nthey must use SET ROLE to access the privileges of that role, however\nwith predefined roles the membership and privilege is conflated, as\ndemonstrated by:\n\nCREATE ROLE readrole;\nCREATE ROLE role2 NOINHERIT;\nCREATE...
[ { "msg_contents": "Hi,\n\nA while back I'd reported [1] to the wine bugs list that their popen() doesn't\nquite work. Which I noticed because it made initdb.exe hang in wine.\n\nThat was just fixed. And I verified that with a bleeding edge wine the windows\ninitdb.exe actually succeeds (although I nuked the roo...
[ { "msg_contents": "I've been investigating the poor performance of a WITH RECURSIVE\nquery, which I've recreated with test data.\n\nThe first thing was to re-write the query, which helped improve\nperformance by about 30%, but the plan was still very bad. With a\nsmall patch I've been able to improve performanc...
[ { "msg_contents": "Hi,\n\nIs there a specific reason that we have a generic WARNING \"worker took\ntoo long to start; canceled\" for an autovacuum worker? Isn't it better\nwith \"autovacuum worker took too long to start; canceled\"? It is\nconfusing to see the generic message in the server logs while\ndebugging...