threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nI happened to notice a typo in pg_rotate_logfile in ipc/signalfuncs.c\n- the hint message wrongly mentions that pg_logfile_rotate is part of\nthe core; which is actually not. pg_logfile_rotate is an adminpack's\n1.0 SQL function dropped in 2.0. The core defines pg_rotate_logfile\nSQL f...
[ { "msg_contents": "Hi,\n\nPostgres has a good amount of code for dealing with backtraces - two\nGUCs backtrace_functions and backtrace_on_internal_error,\nerrbacktrace; all of which use core function set_backtrace from\nelog.c. I've not seen this code being tested at all, see code coverage\nreport - https://cov...
[ { "msg_contents": "Hello \n\n\n\nI would like to share a patch that adds a feature to libpq to automatically select the best client certificate to send to the server (if it requests one). This feature is inspired by this email discussion years ago: https://www.postgresql.org/message-id/200905081539.n48Fdl2Y0032...
[ { "msg_contents": "Hi hackers,\n\nI'd like to bring to your attention that I recently identified some\nfunctions in pgcrypto that are using PG_GETARG functions in a way that\ndoesn't match the expected function signature of the stored\nprocedures. This patch proposes a solution to address these\ninconsistencies...
[ { "msg_contents": "Hi,\n\nI noticed an assumption [1] at WALRead() call sites expecting the\nflushed WAL page to be zero-padded after the flush LSN. I think this\ncan't always be true as the WAL can get flushed after determining the\nflush LSN before reading it from the WAL file using WALRead(). I've\nhacked th...
[ { "msg_contents": "Hi all,\n\nAttached is a patch that fixes some overflow/underflow hazards that I\ndiscovered in the interval rounding code.\n\nThe lines look a bit long, but I did run the following before committing:\n`$ curl https://buildfarm.postgresql.org/cgi-bin/typedefs.pl -o\nsrc/tools/pgindent/typedef...
[ { "msg_contents": "Hi,\n\nAttached is a patch set which refactors BitmapHeapScan such that it\ncan use the streaming read API [1]. It also resolves the long-standing\nFIXME in the BitmapHeapScan code suggesting that the skip fetch\noptimization should be pushed into the table AMs. Additionally, it\nmoves table ...
[ { "msg_contents": "A recent commit added the following message:\n\n> \"wal_level\" must be >= logical.\n\nThe use of the term \"logical\" here is a bit confusing, as it's unclear\nwhether it's meant to be a natural language word or a token. (I\nbelieve it to be a token.)\n\nOn the contrary, we already have the ...
[ { "msg_contents": "Hi,\n\nI recently observed an assertion failure twice in t/001_rep_changes.pl\non HEAD with the backtrace [1] on my dev EC2 c5.4xlarge instance [2].\nUnfortunately I'm not observing it again. I haven't got a chance to\ndive deep into it. However, I'm posting it here just for the records,\nand...
[ { "msg_contents": "Hi,\n\nRecently there have been few upgrade tap test failures in buildfarm\nlike in [1] & [2]. Analysing these failures requires the log files\nthat are getting generated from src/bin/pg_upgrade at the following\nlocations:\ntmp_check/*/pgdata/pg_upgrade_output.d/*/*.txt - e.g.\ntmp_check/t...
[ { "msg_contents": "This brings our .gitattributes and .editorconfig files more in line. I\nhad the problem that \"git add\" would complain often about trailing\nwhitespaces when I was changing sgml files specifically.", "msg_date": "Wed, 14 Feb 2024 17:35:13 +0100", "msg_from": "Jelte Fennema-Nio <postg...
[ { "msg_contents": "The MAINTAIN privilege was reverted during the 16 cycle because of the\npotential for someone to play tricks with search_path.\n\nFor instance, if user foo does:\n\n CREATE FUNCTION mod7(INT) RETURNS INT IMMUTABLE\n LANGUAGE plpgsql AS $$ BEGIN RETURN mod($1, 7); END; $$;\n CREATE TAB...
[ { "msg_contents": "Greetings, everyone!\n\nWhile analyzing output of Svace static analyzer [1] I've found a bug.\n\nIn function pgxmlNodeSetToText there is a call of xmlBufferCreate that \ndoesn't\nhave its return value checked. In all four other calls of \nxmlBufferCreate there\nis a try...catch that checks th...
[ { "msg_contents": "Hi\nThis is Shibagaki.\n\nWhen FIPS mode is enabled, some encryption algorithms cannot be used.\nSince PostgreSQL15, pgcrypto requires OpenSSL[1], digest() and other functions\nalso follow this policy.\n\nHowever, crypt() and gen_salt() do not use OpenSSL as mentioned in [2].\nTherefore, if w...
[ { "msg_contents": "Hi,\n\nI remember Magnus making a comment many years ago to the effect that\nevery setting that is PGC_POSTMASTER is a bug, but some of those bugs\nare very difficult to fix. Perhaps the use of the word bug is\narguable, but I think the sentiment is apt, especially with regard to\nshared_buff...
[ { "msg_contents": "Hello,\n\nCurrently, a role with the createrole attribute can create roles, set and change their password,\nbut can't see the password. Can't even see if the password is set or not.\nIn this case, you can mistakenly set the Valid until attribute to roles without a password.\nAnd there is no w...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 18348\nLogged by: Michael Bondarenko\nEmail address: work.michael.2956@gmail.com\nPostgreSQL version: 14.10\nOperating system: macOS\nDescription: \n\nHello,\r\n\r\nI'm building a random semantical...
[ { "msg_contents": "Hi,\n\nThe following assertion failure was seen while testing one scenario\nfor other patch:\nTRAP: failed Assert(\"s->data.confirmed_flush >=\ns->last_saved_confirmed_flush\"), File: \"slot.c\", Line: 1760, PID:\n545314\npostgres: checkpointer performing shutdown\ncheckpoint(ExceptionalCondi...
[ { "msg_contents": "Here is a prototype implementation of SQL property graph queries\n(SQL/PGQ), following SQL:2023. This was talked about briefly at the\nFOSDEM developer meeting, and a few people were interested, so I\nwrapped up what I had in progress into a presentable form.\n\nThere is some documentation t...
[ { "msg_contents": "While analyzing a customer's performance problem, I noticed that\nthe performance of pg_dump for large arrays is terrible.\n\nAs a test case, I created a table with 10000 rows, each of which\nhad an array of 10000 uuids. The table resided in shared buffers.\n\nThe following took 24.5 seconds...
[ { "msg_contents": "Hello,\r\n\r\n&nbsp;&nbsp; I found an issue while using the latest version of PG15 (8fa4a1ac61189efffb8b851ee77e1bc87360c445).\r\n\r\n&nbsp;&nbsp; This question is about 'merge into'.\r\n\r\n\r\n&nbsp;&nbsp; When two merge into statements are executed concurrently, I obtain the following proc...
[ { "msg_contents": "Hi, hackers!\n\nAfter starting the server (initdb + pg_ctl start) I ran a regress test \ncreate_misc.sql ('\\i src/test/regress/sql/create_misc.sql') and, after \nthat,\nI ran the fdw test ('\\i contrib/postgres_fdw/sql/postgres_fdw.sql') in \nthe psql, and it failed in the core-dump due to t...
[ { "msg_contents": "A recent commit (7a424ece48) added the following message:\n\n> could not sync slot information as remote slot precedes local slot:\n> remote slot \"%s\": LSN (%X/%X), catalog xmin (%u) local slot: LSN\n> (%X/%X), catalog xmin (%u)\n\nSince it is a bit overloaded but doesn't have a separator b...
[ { "msg_contents": "- Motivation\n\nA regular B-tree index provides efficient mapping of key values to tuples\nwithin a table. However, if you have two tables connected in some way, a\nregular B-tree index may not be efficient enough. In this case, you would\nneed to create an index for each table. The purpose w...
[ { "msg_contents": "Hi all,\n(Ashutosh in CC as he was involved in the discussion last time.)\n\nI have proposed on the original thread related to injection points to\nhave more stuff to be able to wait at an arbtrary point and wake at\nwill the process waiting so as it is possible to control the order of\nactio...
[ { "msg_contents": "Hi,\n\nCurrently ALTER SUBSCRIPTION ... SET PUBLICATION will break the\nlogical replication in certain cases. This can happen as the apply\nworker will get restarted after SET PUBLICATION, the apply worker will\nuse the existing slot and replication origin corresponding to the\nsubscription. ...
[ { "msg_contents": "Hi hackers,\n\nWhile working on [1] it has been mentioned that this page\nhttps://www.postgresql.org/docs/current/auth-username-maps.html is switching\nbetween system-user and system-username.\n\nPlease find attached a tiny patch to clean that up.\n\n[1]: https://www.postgresql.org/message-id...
[ { "msg_contents": "numeric_big has been left out of parallel_schedule, requiring EXTRA_TESTS to\nrun it, since going in back in 1999 (AFAICT it was even the reason EXTRA_TESTS\nwas invented). The original commit states that it's huge, and it probably was.\nToday it runs faster than many tests we have in parall...
[ { "msg_contents": "Hi,\n\nI worked on using the currently proposed streaming read API [1] in ANALYZE.\nThe patch is attached. 0001 is the not yet merged streaming read API code\nchanges that can be applied to the master, 0002 is the actual code.\n\nThe blocks to analyze are obtained by using the streaming read ...
[ { "msg_contents": "Is it possible to launch an autovacuum from within an extension?\n\nI'm developing an index access method. After the index gets built it needs\nsome cleanup and optimization. I'd prefer to do this in the\namvacuumcleanup() method so it can happen periodically and asynchronously.\n\nI could fi...
[ { "msg_contents": "Hi\n\nHi\n\n\nWith the addition of \"pg_sync_replication_slots()\", there is now a use-case for\nincluding \"dbname\" in \"primary_conninfo\" and the docs have changed from\nstating [1]:\n\n Do not specify a database name in the primary_conninfo string.\n\nto [2]:\n\n For replication slot s...
[ { "msg_contents": "While working on 4c2369ac5, I noticed there's close to as much code to\ndisallow BooleanTests in the form of \"IS UNKNOWN\" and \"IS NOT UNKNOWN\"\nin partition pruning as it would take to allow pruning to work for\nthese.\n\nThe attached makes it work.\n\nDavid", "msg_date": "Tue, 20 Feb...
[ { "msg_contents": "Hi,\nThe --clean option of pg_restore allows you to replace an object before\nbeing imported. However, dependencies such as foreign keys or views prevent\nthe deletion of the object. Is there a way to add the cascade option to\nforce the deletion?\nThanks for helping\nFabrice\n\nHi,The --clea...
[ { "msg_contents": "The Query structure has an increasing number of bool attributes. This is \nlikely to increase in the future. And they have the same properties. \nWouldn't it be better to store them in bits? Common statements don't use \nthem, so they have little impact. This also saves memory space.\n\n--\nQ...
[ { "msg_contents": "Hello,\n\nI noticed that, beginning with PG16, grouped aggregates are missing the\n\"Group Key\" in the EXPLAIN output.\n\nIt seems the Agg node has numCols (number of grouping cols) set to zero in\nqueries like\n\nSELECT foo, count(*) FROM bar WHERE foo=1 GROUP BY foo;\n\nIn PG15, the \"Grou...
[ { "msg_contents": "Hi,\n\nPresently, replication slot invalidation causes and their text are\nscattered into ReplicationSlotInvalidationCause enum and a bunch of\nmacros. This is making the code to get invalidation cause text given\nthe cause as enum and vice-versa unreadable, longer and inextensible.\nThe atta...
[ { "msg_contents": "Hello hackers,\r\n\r\nUsing Svace* I think I've found a little bug in src/backend/utils/mmgr/dsa.c.\r\nThis bug is presented in REL_12_STABLE, REL_13_STABLE, REL_14_STABLE,\r\nREL_15_STABLE, REL_16_STABLE and master. I see that it was introduced together\r\nwith dynamic shared memory areas in...
[ { "msg_contents": "Hi,\nWhen a table is reloaded wit pg_restore, it is recreated without indexes or\nconstraints. There are automatically skipped. Is there a reason for this?\n\ng_restore -j 8 -v -d zof /shared/pgdump/aq/backup/dbtest/shtest --no-owner\n--role=test -t mytable 2>&1 | tee -a dbest.log\n\npg_rest...
[ { "msg_contents": "This blog, and the blogs it links to, explains the complexities of using\nmmap() for database data/index file I/O.\n\n\thttps://www.symas.com/post/are-you-sure-you-want-to-use-mmap-in-your-dbms\n\nThe blog starts by stating:\n\n\tThere are, however, severe correctness and performance issues\n...
[ { "msg_contents": "Hi hackers,\n\nI would like to know that why we have 'Shutdown <= SmartShutdown'\ncheck before launching few processes (WalReceiver, WalSummarizer,\nAutoVacuum worker) while rest of the processes (BGWriter, WalWriter,\nCheckpointer, Archiver etc) do not have any such check. If I have to\nlaun...
[ { "msg_contents": "Greetings, everyone!\n\nWhile analyzing output of Svace static analyzer [1] I've found a bug\n\nFunction bringetbitmap that is used in BRIN's IndexAmRoutine should \nreturn an\nint64 value, but the actual return value is int, since totalpages is int \nand\ntotalpages * 10 is also int. This co...
[ { "msg_contents": "Hi All,\nIn [1] we found that having a test to dump and restore objects left\nbehind by regression test is missing. Such a test would cover many\ndump restore scenarios without much effort. It will also help identity\nproblems described in the same thread [2] during development itself.\n\nI a...
[ { "msg_contents": "Usage of designated initializers came up in:\nhttps://www.postgresql.org/message-id/flat/ZdWXhAt9Tz4d-lut%40paquier.xyz#9dc17e604e58569ad35643672bf74acc\n\nThis converts all arrays that I could find that could clearly benefit\nfrom this without any other code changes being necessary.\n\nThere...
[ { "msg_contents": "Hello PostgreSQL Community,\n\nExcited to share how Apache AGE enhances PostgreSQL with smooth graph\nfeatures! Handles complex data, and supports SQL and Cypher. Join our\nawesome community, check tutorials, and let's dive into those data projects!\n\nMore info.: Apache AGE GitHub <https://g...
[ { "msg_contents": "Thanks your reply.\r\n\r\n\r\n&nbsp; I understand what you mean and have tried to correct this patch.\r\n&nbsp; According to the previous use case, the result obtained is as follows:\r\n\r\n\r\n\r\nid |&nbsp;&nbsp; name&nbsp;&nbsp; | year | xmax | xmin | ctid &nbsp;\r\n----+----------+------+...
[ { "msg_contents": "Hello,\n\nI have been working on ubuntu 22.04 LTS with postgres in my applications \nand need to deploy that application on QNX710.\n\nI have a requirement to port postgresSQL 12.18 to QNX 7.1 ,is it \npossible to build/port postgreSQL libraries for QNX7.1 Intel and Aarch64 \narchitectures.\n...
[ { "msg_contents": "Dear All,\nI'd like to present and talk about a problem when 2PC transactions are applied quite slowly on a replica during logical replication. There is a master and a replica with established logical replication from the master to the replica with twophase = true. With some load level on the...
[ { "msg_contents": "Hi, everyone!\n\nI found a potential bug in dectoint() and dectolong() functions from\ninformix.c. \"Informix Compatibility Mode\" doc chapter says that\nECPG_INFORMIX_NUM_OVERFLOW is returned if an overflow occurred. But\ncheck this line in dectoint() or dectolong() (it is present in both):\...
[ { "msg_contents": "Dear pgsql hackers,\n\nI am developing custom storage for pgsql tables. I am using md* functions\nand smgrsw[] structure to switch between different magnetic disk\naccess methods.\n\nI want to add some custom options while table created\npsql# create table t(...) with (my_option='value');\n\n...
[ { "msg_contents": "Hi,\n\nOn 2024-02-17 17:48:23 +0100, Laurenz Albe wrote:\n> As a test case, I created a table with 10000 rows, each of which\n> had an array of 10000 uuids. The table resided in shared buffers.\nCan you share exactly script used to create a table?\n\nbest regards,\n\nRanier Vilela\n\nHi,\nOn ...
[ { "msg_contents": "Hi.\n\nRecent commit 555276f8594087ba15e0d58e38cd2186b9f39f6d introduced final \ncleanup of node->as_eventset in ExecAppendAsyncEventWait().\nUnfortunately, now this function can return in the middle of TRY/FINALLY \nblock, without restoring PG_exception_stack.\n\nWe found this while working ...
[ { "msg_contents": "The attached two patches are smaller refactorings to the SASL exchange and init\ncodepaths which are required for the OAuthbearer work [0]. Regardless of the\nfuture of that patchset, these refactorings are nice cleanups and can be\nconsidered in isolation. Another goal is of course to redu...
[ { "msg_contents": "Various code comments say that the RangeTblEntry field inh may only be \nset for entries of kind RTE_RELATION.\n\nFor example\n\n * inh is true for relation references that should be expanded to \ninclude\n * inheritance children, if the rel has any. This *must* be false for\n * ...
[ { "msg_contents": "If XLOG_DBASE_CREATE_FILE_COPY occurs between an incremental backup\nand its reference backup, every relation whose DB OID and tablespace\nOID match the corresponding values in that record should be backed up\nin full. Currently that's not happening, because the WAL summarizer\ndoesn't see th...
[ { "msg_contents": "I think there are some fields from the RangeTblEntry struct missing in \nthe jumble (function _jumbleRangeTblEntry()). Probably, some of these \nwere really just forgotten, in other cases this might be an intentional \ndecision, but then it might be good to document it. This has come up in ...
[ { "msg_contents": "Hi!\n\nThis one comes from C++'s `std::string_view`: being just a `const char*` \nplus the `size`, it's a very convenient type to use in interfaces which \ndon't need an ownership of the data passed in.\n\nUnfortunately, `PQfnumber` expects a null-terminated string, which \n`std::string_view`...
[ { "msg_contents": "Hi,\n\nI met Memoize node failed When I used sqlancer test postgres.\ndatabase0=# explain select t0.c0 from t0 join t5 on t0.c0 = (t5.c0 - t5.c0);\n QUERY PLAN\n--------------------------------------------------------------------------------------\n Nested...
[ { "msg_contents": "Hi,\n\nRecently we have supported upgrade of subscriptions,but currently\nsubscription OIDs can be changed when a cluster is upgraded using\npg_upgrade. It will be better to preserve them as it will be easier to\ncompare subscription related objects in pg_subscription and\npg_subscription_rel...
[ { "msg_contents": "Hi hackers!\n\nIn our Cloud we have a patch, which allows non-superuser role ('mdb_admin')\nto do some superuser things.\nIn particular, we have a patch that allows mdb admin to cancel the\nautovacuum process and some other processes (processes with\napplication_name = 'MDB'), see the attachm...
[ { "msg_contents": "Hi hackers,\n\nI would like to understand why we have code [1] that retrieves\nRecentFlushPtr in WalSndWaitForWal() outside of the loop. We utilize\nRecentFlushPtr later within the loop, but prior to that, we already\nhave [2]. Wouldn't [2] alone be sufficient?\n\nJust to check the impact, I ...
[ { "msg_contents": "Hello Hackers. We’re proposing an improved README for PostgreSQL that\nincludes more helpful links for prospective PostgreSQL contributors and has\na nicer presentation.\n\nAlthough development does not take place on GitHub or GitLab for\nPostgreSQL, many developers might view the PostgreSQL ...
[ { "msg_contents": "Per recent discussion[1], plpgsql returns fairly unhelpful \"syntax\nerror\" messages when a %TYPE or %ROWTYPE construct references a\nnonexistent object. Here's a quick little finger exercise to try\nto improve that.\n\nThe basic point is that plpgsql_parse_wordtype and friends are\ndesigne...
[ { "msg_contents": "Hello,\n\nI have a small documentation patch to the HOT updates page\n<https://www.postgresql.org/docs/current/storage-hot.html>to add references\nto summary (BRIN) indexes not blocking HOT updates\n<https://www.postgresql.org/message-id/CAFp7QwpMRGcDAQumN7onN9HjrJ3u4X3ZRXdGFT0K5G2JWvnbWg@mai...
[ { "msg_contents": "IMO, the routine eval_const_expressions_mutator contains some stale code:\n\ncase T_SubPlan:\ncase T_AlternativeSubPlan:\n /*\n * Return a SubPlan unchanged --- too late to do anything with it.\n *\n * XXX should we ereport() here instead? Probably this routine\n * should never...
[ { "msg_contents": "Hello,\n\nThe date_bin() function has a bug where it returns an incorrect binned date\nwhen both of the following are true:\n1) the origin timestamp is before the source timestamp\n2) the origin timestamp is exactly equivalent to some valid binned date in\nthe set of binned dates that date_bi...
[ { "msg_contents": "Dear Postgres Community,\n\nI hope this email finds you well. I am reaching out to seek clarification\non an issue I am encountering with logical replication in PostgreSQL.\n\nMy specific question pertains to determining the appropriate LSN (Log\nSequence Number) from which to start logical r...
[ { "msg_contents": "Hi Hackers,\n\nThe current descriptions for server_ca.config and client_ca.config are \nnot so accurate. For example, one of the descriptions in \nserver_ca.config states, \"This certificate is used to sign server \ncertificates. It is self-signed.\" However, the server_ca.crt and \nclient_ca...
[ { "msg_contents": "Any objections to removing the ./configure --with-CC option? It's been \ndeprecated since commit cb292206c5 from July 2000:\n\n> # For historical reasons you can also use --with-CC to specify the C compiler\n> # to use, although the standard way to do this is to set the CC environment\n> # va...
[ { "msg_contents": "Hello hackers,\n\nI spent some time debugging an issue with standby not being able to\ncontinue streaming after failover.\n\nThe problem manifests itself by following messages in the log:\nLOG: received SIGHUP, reloading configuration files\nLOG: parameter \"primary_conninfo\" changed to \"...
[ { "msg_contents": "Improve performance of subsystems on top of SLRU\n\nMore precisely, what we do here is make the SLRU cache sizes\nconfigurable with new GUCs, so that sites with high concurrency and big\nranges of transactions in flight (resp. multixacts/subtransactions) can\nbenefit from bigger caches. In o...
[ { "msg_contents": "Hackers,\n\nThis patch adds checkpoint/redo LSNs to recovery error messages where \nthey may be useful for debugging.\n\nWhen backup_label is present the LSNs are already output in a log \nmessage, but it still seems like a good idea to repeat them.\n\nWhen backup_label is not present, the ch...
[ { "msg_contents": "While checking some recently pushed changes [1] I noticed\ndocumentation [2] that includes the abbreviation \"aka\".\n\nIMO it is preferable to avoid informal abbreviations like \"aka\" in the\ndocuments, because not everyone will understand the meaning.\nFurthermore, I think this is reinforc...
[ { "msg_contents": "Hi all,\n\nIt's been brought to me that an extension may finish by breaking the\nassumptions ProcessUtility() relies on when calling\nstandard_ProcessUtility(), causing breakages when passing down data to\ncascading utility hooks.\n\nIsn't the state of the arguments given something we should ...
[ { "msg_contents": "Hi!\n\nI'd like to suggest two independent patches to improve performance of type cache \ncleanup. I found a case where type cache cleanup was a reason for low \nperformance. In short, customer makes 100 thousand temporary tables in one \ntransaction.\n\n1 mapRelType.patch\n It just adds a ...
[ { "msg_contents": "Currently, cancel request key is a 32-bit token, which isn't very much \nentropy. If you want to cancel another session's query, you can \nbrute-force it. In most environments, an unauthorized cancellation of a \nquery isn't very serious, but it nevertheless would be nice to have more \nprote...
[ { "msg_contents": "We are now hours away from starting the last commitfest for v17 and AFAICS\nthere have been no volunteers for the position of Commitfest manager (cfm) yet.\nAs per usual it's likely beneficial if the CFM of the last CF before freeze is\nsomeone with an seasoned eye to what can make it and wha...
[ { "msg_contents": "Attached please find a patch to adjust the behavior of the pgbench program\nand make it behave like the other programs that connect to a database\n(namely, psql and pg_dump). Specifically, add support for using -d and\n--dbname to specify the name of the database. This means that -d can no\nl...
[ { "msg_contents": "Hi,\n\nThis original patch made by Tomas improves the usability of extended statistics, \nso I rebased it on 362de947, and I'd like to re-start developing it.\n \nThe previous thread [1] suggested something to solve. I'll try to solve it as \nbest I can, but I think this feature is worth it w...
[ { "msg_contents": "Hi hackers,\n\nI think that pgstat_reset_replslot() is missing LWLock protection. Indeed, we\ndon't have any guarantee that the slot is active (then preventing it to be\ndropped/recreated) when this function is executed.\n\nAttached a patch to add the missing protection.\n\nRegards,\n\n-- \nB...
[ { "msg_contents": "hi.\n\n/*****************************************************************************\n * globals.h -- *\n *****************************************************************************/\n\nThe above comment src/include/miscadmin.h is not accurate?\nwe don't have globals.h file?\n\n\n", ...
[ { "msg_contents": "Hello,\r\n\r\npostgres [1264904]=# select 123456789.123456789123456::double precision;\r\n┌────────────────────┐\r\n│ float8 │\r\n├────────────────────┤\r\n│ 123456789.12345679 │\r\n└────────────────────┘\r\n(1 row)\r\n\r\nI do not understand why this number is truncated at 123456...
[ { "msg_contents": "Hi hackers!\n\nIn this thread, I want to promote entries from CommitFest that require review. I have scanned through the bugs, clients, and documentation sections, and here is my take on the current situation. All of these threads are currently in the \"Needs review\" state and were marked by...
[ { "msg_contents": "These two animals seem to have got mixed up about about the size of\nthis relation in the same place:\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=avocet&dt=2024-02-28%2017%3A34%3A30\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=trilobite&dt=2024-03-01%2006%3A47%3A53\...
[ { "msg_contents": "Hello hackers,\n\npsql has the :{?name} syntax for testing a psql variable existence.\n\nBut currently doing \\echo :{?VERB<Tab> doesn't trigger tab completion.\n\nThis patch fixes it. I've also included a TAP test.\n\nBest regards,\nSteve Chavez", "msg_date": "Sat, 2 Mar 2024 21:00:30 -0...
[ { "msg_contents": "I recently encountered some odd behavior with a query both selecting and\nsorting by `random()`. When I posted about it on pgsql-bugs ^1, David\nJohnston and Tom Lane provided some very detailed explanations as to\nwhat was happening, but weren't sure whether or where information about\nit co...
[ { "msg_contents": "\nThe issue can be reproduced with the following steps:\n\ncreate table x_events (.., created_at timestamp, a int, b int); \n\ncreate index idx_1 on t(created_at, a);\ncreate index idx_2 on t(created_at, b);\n\nquery:\nselect * from t where create_at = current_timestamp and b = 1;\n\nindex (c...
[ { "msg_contents": "All,\n\nThe PostgreSQL Contributor Page \n(https://www.postgresql.org/community/contributors/) includes people who \nhave made substantial, long-term contributions of time and effort to the \nPostgreSQL project. The PostgreSQL Contributors Team recognizes the \nfollowing people for their cont...
[ { "msg_contents": "Dear hackers,\n\nWhile reading codes, I found that ApplyLauncherShmemInit() and AutoVacuumShmemInit()\nare always called even if they would not be launched.\nIt may be able to reduce the start time to avoid the unnecessary allocation.\nHowever, I know this improvement would be quite small bec...
[ { "msg_contents": "Hi All,\n\nEager aggregation is a query optimization technique that partially\npushes a group-by past a join, and finalizes it once all the relations\nare joined. Eager aggregation reduces the number of input rows to the\njoin and thus may result in a better overall plan. This technique is\...
[ { "msg_contents": "Hi hackers,\n\nI wanted to hook into the EXPLAIN output for queries and add some extra\ninformation, but since there is no standard_ExplainOneQuery() I had to copy\nthe code and create my own version.\n\nSince the pattern with other hooks for a function WhateverFunction() seems\nto be that th...
[ { "msg_contents": "When a backend is blocked on writing data (such as with a network\nerror or a very slow client), indicated with wait event ClientWrite,\nit appears to not properly notice that it's overrunning\nmax_standby_streaming_delay, and therefore does not cancel the\ntransaction on the backend.\n\nI'v...
[ { "msg_contents": "Hello,\n\nAs we are currently experiencing a FSM corruption issue [1], we need to \nrebuild FSM when we detect it. \n\nI noticed we have something to truncate a visibility map, but nothing for the \nfreespace map, so I propose the attached (liberally copied from the VM \ncounterpart) to allow...
[ { "msg_contents": "Hi,\n\nThe function var_strcmp is a critical function.\nInside the function, there is a shortcut condition,\nwhich allows for a quick exit.\n\nUnfortunately, the current code calls a very expensive function beforehand,\nwhich if the test was true, all the call time is wasted.\nSo, IMO, it's b...
[ { "msg_contents": "Fix search_path to a safe value during maintenance operations.\n\nWhile executing maintenance operations (ANALYZE, CLUSTER, REFRESH\nMATERIALIZED VIEW, REINDEX, or VACUUM), set search_path to\n'pg_catalog, pg_temp' to prevent inconsistent behavior.\n\nFunctions that are used for functional in...
[ { "msg_contents": "Hi hackers,\n\nConditionVariableTimedSleep() accepts a timeout parameter, but it\ndoesn't explicitly state the unit for the timeout anywhere. To\ndetermine this, one needs to look into the details of the function to\nfind it out from the comments of the internally called function\nWaitLatch()...
[ { "msg_contents": "I think this is a typo introduced in 0452b461b.\n\n + root->processed_groupClause = list_copy(parse->groupClause);;\n\nThe extra empty statement is harmless in most times, but I still think\nit would be better to get rid of it.\n\nAttached is a trivial patch to do that.\n\nThanks\nRichard"...
[ { "msg_contents": "Inspired by feedback to [1], I thought about how to reduce log spam.\n\nMy experience from the field is that a lot of log spam looks like\n\n database/table/... \"xy\" does not exist\n duplicate key value violates unique constraint \"xy\"\n\nSo what about a parameter \"log_suppress_sqlstate...
[ { "msg_contents": "Hi,\n\nIn the current code of do_watch(), sigsetjmp is called if WIN32\nis defined, but siglongjmp is not called in the signal handler\nin this condition. On Windows, currently, cancellation is checked\nonly by cancel_pressed, and calling sigsetjmp in do_watch() is\nunnecessary. Therefore, w...
[ { "msg_contents": "Thanks to Jeff's recent work with commits 2af07e2 and 59825d1, the issue\nthat led to the revert of the MAINTAIN privilege and the pg_maintain\npredefined role (commit 151c22d) should now be resolved. Specifically,\nthere was a concern that roles with the MAINTAIN privilege could use\nsearch...
[ { "msg_contents": "After reading the thread at [1], I could not escape the feeling\nthat contrib/tablefunc's error reporting is very confusing.\nLooking into the source code, I soon found that it is also\nvery inconsistent, with similar error reports being phrased\nquite differently. The terminology for column...