threads
listlengths
1
2.99k
[ { "msg_contents": "A production instance crashed like so.\n\n< 2023-07-20 05:41:36.557 MDT >LOG: server process (PID 106001) was terminated by signal 11: Segmentation fault\n\n[168417.649549] postmaster[106001]: segfault at 12 ip 00000000008f1d40 sp 00007ffe885502e0 error 4 in postgres[400000+7dc000]\n\nCore ...
[ { "msg_contents": "Hi,\n\nRecently chipmunk has failed with the following errors at [1]:\n\nmake -C '../../..'\nDESTDIR='/home/pgbfarm/buildroot/HEAD/pgsql.build'/tmp_install install\n>'/home/pgbfarm/buildroot/HEAD/pgsql.build'/tmp_install/log/install.log\n2>&1\nmake -j1 checkprep\n>>'/home/pgbfarm/buildroot/H...
[ { "msg_contents": "Added my v1 patch to add REINDEX to event triggers.\n\nI originally built this against pg15 but rebased to master for the patch\nto hopefully make it easier for maintainers to merge. The rebase was\nautomatic so it should be easy to include into any recent version. I'd love\nfor this to land ...
[ { "msg_contents": "Hey hackers,\n\nI noticed there are some places calling table_open with\nRowExclusiveLock but table_close with NoLock, like in function\ntoast_save_datum.\n\nCan anybody explain the underlying logic, thanks in advance.\n\n-- \nRegards\nJunwang Zhao\n\n\n", "msg_date": "Fri, 21 Jul 2023 14...
[ { "msg_contents": "This Assert failure can be reproduced with the query below.\n\ncreate table part_tbl (a integer) partition by range (a);\ncreate table part_tbl1 partition of part_tbl for values from (0) to (100);\nset enable_partitionwise_join to on;\n\nexplain (costs off)\nselect * from part_tbl t1\n lef...
[ { "msg_contents": "I found that multiple membership grants added in v16 affects the \ninformation_schema.applicable_roles view.\n\nExamples on a master, but they works for v16 too.\n\nSetup multiple membership alice in bob:\n\npostgres@postgres(17.0)=# \\drg alice\n                List of role grants\n  Role na...
[ { "msg_contents": "Hello!\n\nMy colleague Victoria Shepard reported that pgbench might crash\nduring initialization with some values of shared_buffers and\nmax_worker_processes in conf.\n\nAfter some research, found this happens when the LimitAdditionalPins() returns exactly zero.\nIn the current master, this w...
[ { "msg_contents": "hi.\nI am confused with bt_recheck_sibling_links.\n\n>\n> ereport(ERROR,\n> (errcode(ERRCODE_INDEX_CORRUPTED),\n> errmsg(\"left link/right link pair in index \\\"%s\\\" not in agreement\",\n> RelationGetRelationName(state->rel)),\n> errdetail_internal(\"Block=%u left block=%u left link fro...
[ { "msg_contents": "Neon provides a quick start mechanism for psql using the following \nworkflow:\n\n\t$ psql -h pg.neon.tech\n\tNOTICE: Welcome to Neon!\n\tAuthenticate by visiting:\n\t https://console.neon.tech/psql_session/xxx\n\nUpon navigating to the link, the user selects their database to work \nwith...
[ { "msg_contents": "We got a complaint at [1] about how a not-so-unreasonable LDAP\nconfiguration can hit the \"authentication file token too long,\nskipping\" error case in hba.c's next_token(). I think we've\nseen similar complaints before, although a desultory archives\nsearch didn't turn one up.\n\nA minimu...
[ { "msg_contents": "Hi,\n\nCurrently InitCatalogCache() has only one Assert() for cacheinfo[]\nthat checks .reloid. The proposed patch adds sanity checks for the\nrest of the fields.\n\n-- \nBest regards,\nAleksander Alekseev", "msg_date": "Mon, 24 Jul 2023 21:58:15 +0300", "msg_from": "Aleksander Alekse...
[ { "msg_contents": "Hi,\r\n\r\nWhile recently looking into partition maintenance, I found a case in which\r\nDETACH PARTITION FINALIZE could case deadlocks. This occurs when a\r\nALTER TABLE DETACH CONCURRENTLY, followed by a cancel, the followed by\r\nan ALTER TABLE DETACH FINALIZE, and this sequence of steps o...
[ { "msg_contents": "Please find attached a patch to jumble savepoint name, to prevent certain\ntransactional commands from filling up pg_stat_statements.\nThis has been a problem with some busy systems that use django, which likes\nto wrap everything in uniquely named savepoints. Soon, over 50% of\nyour pg_stat_...
[ { "msg_contents": "I've been working on a variety of improvements to nbtree's native\nScalarArrayOpExpr execution. This builds on Tom's work in commit\n9e8da0f7.\n\nAttached patch is still at the prototype stage. I'm posting it as v1 a\nlittle earlier than I usually would because there has been much back\nand f...
[ { "msg_contents": "Hello,\nPartition pruning is not working on the updates query, am I missing something? \nAble get around this by manually pinning the table partition to the date partition but, it's a manual process. \nPostgreSQL 13.8 on AWS\nPartition table using pg_partman v4.5.1Each daily partition contain...
[ { "msg_contents": "When forming an outer join's joinrel, we have the is_pushed_down flag in\nRestrictInfo nodes to distinguish those quals that are in that join's\nJOIN/ON condition from those that were pushed down to the joinrel and\nthus act as filter quals. Since now we have the outer-join-aware-Var\ninfras...
[ { "msg_contents": "\n-------------------- Start of forwarded message --------------------\nFrom: huchangqi <huchangqi@loongson.cn>\nTo: YANG Xudong <yangxudong@ymatrix.cn>\nSubject: Re: [PATCH] Add loongarch native checksum implementation.\nDate: Tue, 25 Jul 2023 15:51:43 +0800\n\nBoth cisticola and nuthatch ar...
[ { "msg_contents": "Hi,\n\nI've observed the following failure once in one of my Cirrus CI runs\non Windows Server on HEAD:\n\ntimed out waiting for match: (?^:User was holding shared buffer pin\nfor too long) at\nC:/cirrus/src/test/recovery/t/031_recovery_conflict.pl line 318.\n# Postmaster PID for node \"prima...
[ { "msg_contents": "Currently, we don't perform $SUBJECT at the time of shutdown of the\nserver. I think currently it will only have a minor impact that after\nrestart subscribers will ask to start processing before the\nXLOG_CHECKPOINT_SHUTDOWN or maybe after the switchover the old\npublisher will have an extra...
[ { "msg_contents": "Hi hackers,\n\nCurrently, most distributed tracing solutions only provide details from the\nclient's drivers point of view. We don't have visibility when the query\nreached the database and how the query was processed.\n\nThe goal of this project is to provide distributed tracing within the\n...
[ { "msg_contents": "Hi,\n\nThe proposed patch is a small refactoring of inval.{c,h}:\n\n\"\"\"\n The \"public functions\" separator comment doesn't reflect reality anymore.\n We could rearrange the order of the functions. However, this would\ncomplicate\n back-porting of the patches, thus removing the c...
[ { "msg_contents": "Hi,\n\nPer Coverity.\n\nrmtree function can leak 64 bytes per call,\nwhen it can't open a directory.\n\npatch attached.\n\nbest regards,\nRanier Vilela", "msg_date": "Tue, 25 Jul 2023 11:31:05 -0300", "msg_from": "Ranier Vilela <ranier.vf@gmail.com>", "msg_from_op": true, "msg...
[ { "msg_contents": "grassquit has been failing to run the regression tests for the last\nfew days, since [1]:\n\n# +++ regress check in src/test/regress +++\n# using temp instance on port 6880 with PID 766305\nERROR: stack depth limit exceeded\nHINT: Increase the configuration parameter \"max_stack_depth\" (cu...
[ { "msg_contents": "Hi,\n\nReorderBufferTupleBuf is defined as follow:\n\n/* an individual tuple, stored in one chunk of memory */\ntypedef struct ReorderBufferTupleBuf\n{\n /* position in preallocated list */\n slist_node node;\n\n /* tuple header, the interesting bit for users of logical decoding */\...
[ { "msg_contents": "Hi hackers,\n\nI have a question about `use_physical_tlist()` which is applied in `create_scan_plan()`:\n```\nif (flags == CP_IGNORE_TLIST)\n{\n tlist = NULL;\n}\nelse if (use_physical_tlist(root, best_path, flags))\n{\n if (best_path->pathtype == T_IndexOnlyScan)\n {\n /* For index-onl...
[ { "msg_contents": "Hi Hackes: I found this page : https://pgsql-hackers.postgresql.narkive.com/cMxBwq65/incremental-checkopints,PostgreSQL no incremental checkpoints have been implemented so far. When a checkpoint is triggered, the performance jitter of PostgreSQL is very noticeable. I think incremental check...
[ { "msg_contents": "Some refactoring to export json(b) conversion functions\n\nThis is to export datum_to_json(), datum_to_jsonb(), and\njsonb_from_cstring(), though the last one is exported as\njsonb_from_text().\n\nA subsequent commit to add new SQL/JSON constructor functions will\nneed them for calling from t...
[ { "msg_contents": "Hi community,\r\nI use the PostgreSQL 17devel on x86_64-pc-linux-gnu, compiled by gcc (GCC) 13.1.1 20230614 (Red Hat 13.1.1-4), 64-bit.(Fedora Linux)\r\nAnd I use the gdb to debug the postgres, just test the pg_ctl.\r\nAs you can see:\r\n\r\n\r\n\r\n-------------------------------------------...
[ { "msg_contents": "Hi hackers,\n\nTriggered by a discussion on IRC, I noticed that there's a stray\nreference to pg_relation in a comment that was added long after it was\nrenamed to pg_class. Here's a patch to bring that up to speed.\n\n- ilmari", "msg_date": "Wed, 26 Jul 2023 18:48:51 +0100", "msg_fr...
[ { "msg_contents": "Hi\n\nFollowing the thread \"Inefficiency in parallel pg_restore with many tables\", I \nstarted digging into why the toc.dat files are that big and where time is spent \nwhen parsing them.\n\nI ended up writing several patches that shaved some time for pg_restore -l, \nand reduced the toc.da...
[ { "msg_contents": "Hi All,\n\nWhen we implemented partitionwise join we disabled it by default (by\nsetting enable_partitionwise_join to false by default) since it\nconsumed a lot of memory and took a lot of time [1]. We also set\nenable_partitionwise_aggregate to false by default since partitionwise\naggregate...
[ { "msg_contents": "Hi All,\n\nFollowing up on [1] ...\n\nA restrictlist is a list of RestrictInfo nodes, each representing one\nclause, applicable to a set of joins. When partitionwise join is used\nas a strategy, the restrictlists for child join are obtained by\ntranslating the restrictlists for the parent in...
[ { "msg_contents": "Hi All,\n\nIf add_path() and add_partial_path() do not find a new path to be\nsuperior to any existing paths, they free the new path. They free an\nexisting path if it is found to be inferior to the new path. But not\nall paths surviving in a RelOptInfo are used to create paths for\nrelations...
[ { "msg_contents": "Hi All,\n\nIn try_partitionwise_join() we create SpecialJoinInfo structures for\nchild joins by translating SpecialJoinInfo structures applicable to\nthe parent join. These SpecialJoinInfos are not used outside\ntry_partitionwise_join() but we do not free memory allocated to those.\nIn try_pa...
[ { "msg_contents": "I've been looking into some options for reducing the amount of downtime\nrequired for pg_upgrade, and $SUBJECT seemed like something that would be\nworthwhile independent of that effort. The attached work-in-progress patch\nadds the elapsed time spent in each step, which looks like this:\n\n...
[ { "msg_contents": "Hi all,\n\nWhile digging into the LWLock code, I have noticed that\nGetNamedLWLockTranche() assumes that its caller should hold the LWLock\nAddinShmemInitLock to prevent any kind of race conditions when\ninitializing shmem areas, but we don't make sure that's the case.\n\nThe sole caller of G...
[ { "msg_contents": "Hi,\n\nWhile hacking on the pruning and page-level freezing code and am a bit\nconfused by the test guarding eager freezing [1]:\n\n /*\n * Freeze the page when heap_prepare_freeze_tuple indicates that at least\n * one XID/MXID from before FreezeLimit/MultiXactCutoff is present. ...
[ { "msg_contents": "The PostgreSQL contributors team has been looking over the community\nactivity and, over the first half of this year, has been recognizing\nnew contributors to be listed on\n\nhttps://www.postgresql.org/community/contributors/\n\nNew PostgreSQL Contributors:\n\n Ajin Cherian\n Alexander Kuk...
[ { "msg_contents": "Hi,\n\nThe pg_leftmost_one_pos32 function with msvc compiler,\nrelies on Assert to guarantee the correct result.\n\nBut msvc documentation [1] says clearly that\nundefined behavior can occur.\n\nFix by checking the result of the function to avoid\na possible undefined behavior.\n\npatch attac...
[ { "msg_contents": "Hello postgres hackers,\n Recently I encountered an issue: pg_upgrade fails when dealing with in-place tablespace. As we know, pg_upgrade uses pg_dumpall to dump objects and pg_restore to restore them. The problem seems to be that pg_dumpall is dumping in-place tablespace as relative path, wh...
[ { "msg_contents": "Improve performance of \"SET search_path\".\n\nMotivation:\n\nCreating functions with a \"SET search_path\" clause is safer and more\nsecure because the function behavior doesn't change based on the\ncaller's search_path setting.\n\nSetting search_path in the function declaration is especiall...
[ { "msg_contents": "Hi,\n\nWhile testing something I made the checkpointer process intentionally crash as\nsoon as it started up. The odd thing I observed on macOS is that we start a\n*new* checkpointer before shutting down:\n\n2023-07-29 14:32:39.241 PDT [65031] LOG: listening on Unix socket \"/tmp/.s.PGSQL.5...
[ { "msg_contents": "Hi there, hope to find you well.\n\nI'm attempting to develop a CDC on top of Postgres, currently using 12, the last minor, with a custom client, and I'm running into issues with data loss caused by out-of-order logical replication messages.\n\nThe problem is as follows: postgres streams A, B...
[ { "msg_contents": "Hi hackers,\n\nBACKGROUND:\n\nThe logical replication has different worker \"types\" (e.g. apply\nleader, apply parallel, tablesync).\n\nThey all use a common structure called LogicalRepWorker, but at times\nit is necessary to know what \"type\" of worker a given LogicalRepWorker\nrepresents....
[ { "msg_contents": "Hi,\n\nWhile working on [1], I noticed $SUBJECT: commit e7cb7ee14 failed to\nupdate comments for the CustomPath struct in pathnodes.h, and commit\nf49842d1e failed to update docs about custom scan path callbacks in\ncustom-scan.sgml, IIUC. Attached are patches for updating these,\nwhich I cr...
[ { "msg_contents": "Hi all,\n\nWhile reading the code, I realized that the following code comments\nmight not be accurate:\n\n /*\n * Pick the largest transaction (or subtransaction) and evict it from\n * memory by streaming, if possible. Otherwise, spill to disk.\n */\n if...
[ { "msg_contents": "Hi,\n\nI saw that CI image builds for freebsd were failing, because 13.1, used until\nnow, is EOL. Update to 13.2, no problem, I thought. Ran a CI run against 13.2\n- unfortunately that failed. In pltcl of all places.\n\nhttps://api.cirrus-ci.com/v1/artifact/task/5275616266682368/testrun/buil...
[ { "msg_contents": "Hi all,\n\n31de7e6 has silenced savepoint names in the query jumbling, and\nsomething similar can be done for 2PC transactions once the GID is\nignored in TransactionStmt. This leads to the following grouping in\npg_stat_statements, for instance, which is something that matters with\nworkloa...
[ { "msg_contents": "Hi,\r\n\r\nThe release date for PostgreSQL 16 Beta 3 is August 10, 2023, alongside \r\nthe regular update release[1]. Please be sure to commit any open \r\nitems[2] for the Beta 3 release before August 6, 2023 0:00 AoE[3] to \r\ngive them enough time to work through the buildfarm.\r\n\r\nTha...
[ { "msg_contents": "Hi hackers,\n\nBACKGROUND\n\nThere are 3 different types of logical replication workers.\n1. apply leader workers\n2. parallel apply workers\n3. tablesync workers\n\nAnd there are a number of places where the current worker type is\nchecked using the am_<worker-type> inline functions.\n\nPROB...
[ { "msg_contents": "Hi all,\n\nA colleague, Ethan Mertz (in CC), has discovered that we don't handle\ncorrectly WAL records that are failing because of an OOM when\nallocating their required space. In the case of Ethan, we have bumped\non the failure after an allocation failure on XLogReadRecordAlloc():\n\"out ...
[ { "msg_contents": "Hi:\n\nCurrently if we want to extract a numeric field in jsonb, we need to use\nthe following expression: cast (a->>'a' as numeric). It will turn a numeric\nto text first and then turn the text to numeric again. See\njsonb_object_field_text and JsonbValueAsText. However the binary format\n...
[ { "msg_contents": "Dear hackers,\n\n# Background\n\nBased on [1], I did configure and build with options:\n(I used Meson build system, but it could be reproduced by Autoconf/Make)\n\n```\n$ meson setup -Dcassert=true -Ddebug=true -Dc_args=-Og ../builder\n$ cd ../builder\n$ ninja\n```\n\nMy gcc version is 4.8.5...
[ { "msg_contents": "Hi,\n\nMy colleague, Mitsuru Hinata (in CC), found the following issue.\n\nThe documentation of pg_stat_reset_single_table_counters() says\n> pg_stat_reset_single_table_counters ( oid ) → void\n> Resets statistics for a single table or index in the current database \n> or shared across all da...
[ { "msg_contents": "Hi PG Users.\n\nWe are using Debezium to capture the CDC events into Kafka. \nWith decoderbufs and wal2json plugins the connector is able to capture the generated columns in the table but not with pgoutput plugin.\n\nWe tested with the following example:\n\nCREATE TABLE employees (\n id SER...
[ { "msg_contents": "add the missing leading `l` for log_statement_sample_rate\n\n-- \nRegards\nJunwang Zhao", "msg_date": "Tue, 1 Aug 2023 16:09:32 +0800", "msg_from": "Junwang Zhao <zhjwpku@gmail.com>", "msg_from_op": true, "msg_subject": "[PATCH] [zh_CN.po] fix a typo in simplified Chinese tran...
[ { "msg_contents": "For paths of type 'T_Path', reparameterize_path_by_child just does the\nflat-copy but does not adjust the expressions that have lateral\nreferences. This would have problems for partitionwise-join. As an\nexample, consider\n\nregression=# explain (costs off)\nselect * from prt1 t1 join late...
[ { "msg_contents": "\n\n\n\n\n\n\n\n\n\n\n\n\n\nHi, I’m trying to develop a new grammar for pg, can you give me a code example to reference?\n\n\n\n\n\n\n\n\n\n\n\n\n\n\njacktby\n\n\n\n\njacktby@gmail.com\n\n\n\n\n\n\n\n\n\n\n\n", "msg_date": "Tue, 1 Aug 2023 19:36:36 +0800", "msg_from": "jacktby <jacktb...
[ { "msg_contents": "Hi,\n\nA static analyzer reported a possible pfree(NULL) in \nbe_tls_open_server(). Here is a fix. Also handle an error from \nX509_NAME_print_ex().\n\nAFAICS, the error \"SSL certificate's distinguished name contains \nembedded null\" could not be reached at all, because XN_FLAG_RFC2253 \npa...
[ { "msg_contents": "Hi hackers,\n\n\nI am using pg_embedding extension for Postgres which implements HNSW \nindex (some kind of ANN search).\nSearch query looks something like this:\n\n     SELECT _id FROM documents ORDER BY openai <=> ARRAY[0.024466066, \n-0.011110042, -0.0012917554,... , -0.008700027] LIMIT 1;...
[ { "msg_contents": "Hi,\n\nOn Tue, Aug 01, 2023 at 11:51:35AM +0900, Masahiro Ikeda wrote:\n> Thanks for committing the main patch.\n\nLatest head\nUbuntu 64 bits\ngcc 13 64 bits\n\n./configure --without-icu\nmake clean\nmake\n\nIn file included from ../../src/include/pgstat.h:20,\n from controld...
[ { "msg_contents": "Dear PostgreSQL Development Team,\n\nI am inquiring about the availability of certain functionalities in the\nstandard PostgreSQL database. Could you please confirm if the following\nfunctionalities are currently available in PostgreSQL:\n\n1. Enforcement of Security Attribute Expiry\n2. Rest...
[ { "msg_contents": "Now that we have effectively de-supported CentOS 6, by removing support \nfor its OpenSSL version, I think we could also modernize the use of some \nother libraries, such as zlib.\n\nIf we define ZLIB_CONST before including zlib.h, zlib augments some\ninterfaces with const decorations. By do...
[ { "msg_contents": "Hi,\n\nCurrently, we have an option to drop the expression of stored generated\ncolumns\nas:\n\nALTER [ COLUMN ] column_name DROP EXPRESSION [ IF EXISTS ]\n\nBut don't have support to update that expression. The attached patch\nprovides\nthat as:\n\nALTER [ COLUMN ] column_name SET EXPRESSION...
[ { "msg_contents": "... at\n\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=c6344d7686f3e3c8243c2c6771996cfc63e71eae\n\nThis is a bit earlier than usual because I will be tied up with\n$LIFE for the next couple of days. I will catch up with any\nsubsequent back-branch commits over the weeke...
[ { "msg_contents": "As stated in [1], all paths arriving here are parameterized by top\nparents, so we should check against top_parent_relids if it exists in\nthe two Asserts.\n\nAttached is a patch fixing that.\n\n[1]\nhttps://www.postgresql.org/message-id/CAMbWs4_UoVcCwkVMfi9TjSC%3Do5U6BRHUNZiVhrvSbDfU2HaeDA%4...
[ { "msg_contents": "Dear Hackers,\n\nOne of my customers suggested creating a function that could return the\nserver's hostname.\n\nAfter a quick search, we found [this Wiki page](\nhttps://wiki.postgresql.org/wiki/Pg_gethostname) referring to [that\nextension](https://github.com/theory/pg-hostname/) from David ...
[ { "msg_contents": "Hi,\n\nIn the commit [1] one side change was to fix mixed up usage of\nBlockNumber and Buffer variables. This was a one-off manual effort, and\nindeed it hardly seems possible to get compilation warnings for such\ncode, as long as the underlying types could be converted in a standard\nconform...
[ { "msg_contents": "Greetings,\n\nAttached is a patch which introduces a file protocol.h. Instead of using\nthe actual characters everywhere in the code this patch names the\ncharacters and removes the comments beside each usage.\n\n\nDave Cramer", "msg_date": "Thu, 3 Aug 2023 11:40:12 -0600", "msg_from"...
[ { "msg_contents": "Hi,\n\nI would like to propose to add an option to pgbench so that benchmark\ncan quit immediately when any client is aborted. Currently, when a\nclient is aborted due to some error, for example, network trouble, \nother clients continue their run until a certain number of transactions\nspeci...
[ { "msg_contents": "As stated in [1], there is a typo in the comment in\nparaminfo_get_equal_hashops.\n\n foreach(lc, innerrel->lateral_vars)\n {\n Node *expr = (Node *) lfirst(lc);\n TypeCacheEntry *typentry;\n\n /* Reject if there are any volatile functions in PHVs */\n ...
[ { "msg_contents": "In get_memoize_path() we have a theory about avoiding memoize node if\nthere are volatile functions in the inner rel's target/restrict list.\n\n /*\n * We can't use a memoize node if there are volatile functions in the\n * inner rel's target list or restrict list. A cache hit could reduce ...
[ { "msg_contents": "Hi hackers,\n\nNow that fa88928470 generates automatically code and documentation\nrelated to wait events, why not exposing the wait events description\nthrough a system catalog relation? (the idea has been proposed on twitter\nby Yves Colin [1]).\n\nI think that could be useful to:\n\n- join...
[ { "msg_contents": "Hi hackers,\n\nwhile working on the new system catalog pg_wait_event (see [1]) I noticed that some wait\nevents are currently \"duplicated\":\n\npostgres=# select wait_event_name,count(*) from pg_wait_event group by wait_event_name having count(*) > 1;\n wait_event_name | count\n------------...
[ { "msg_contents": "I have pushed Release 17 of the PostgreSQL Buildfarm client.\n\nRelease 17 has two main features:\n\n * Modernize the way we do cross-version upgrade tests. Most of the\n logic for modifying instances to make them suitable for cross\n version upgrade testing has now been migrated to th...
[ { "msg_contents": "Hi,\n\nWe have some issues with CI on macos and windows being too expensive (more on\nthat soon in a separate email). For macos most of the obviously wasted time is\nspent installing packages with homebrew. Even with the package downloads being\ncached, it takes about 1m20s to install them. ...
[ { "msg_contents": "I’m trying to add a new operator for my pg application like greater_equals called “<~>\", how many files I need to \nmodify and how to do it? Can you give me an example?\n\n", "msg_date": "Sun, 6 Aug 2023 12:34:18 +0800", "msg_from": "jacktby jacktby <jacktby@gmail.com>", "msg_fro...
[ { "msg_contents": "Hi all,\n\nA colleague Drew Callahan (in CC) has discovered that the logical\ndecoding doesn't handle syscache invalidation messages properly that\nare generated by other transactions. Here is example (I've attached a\npatch for isolation test),\n\n-- Setup\nCREATE TYPE comp AS (f1 int, f2 te...
[ { "msg_contents": "Hi hackers,\n\nIs it is ok, that regression tests do not pass with small value of \nshared buffers (for example 1Mb)?\n\nTwo tests are failed because of sync scan - this tests cluster.sql and \nportals.sql perform seqscan without explicit order by and expect that \ndata will be returned in pa...
[ { "msg_contents": "Hi hackers,\n\nfa88928470 introduced src/backend/utils/activity/wait_event_names.txt that has\nbeen auto-generated. The auto-generation had parsing errors leading to bad\nentries in wait_event_names.txt (when the same \"WAIT_EVENT\" name can be found as\na substring of another one, then descr...
[ { "msg_contents": "0001: There is no point in searching -lrt and -lposix4 for fdatasync()\nif it's supposed to help Solaris only. They moved all the realtime\nstuff into the main C library at least as far back as Solaris\n10/OpenSolaris.\n\n0002: There is no point in probing -lposix4 for anything. That was\ns...
[ { "msg_contents": "Hi.\n\npostgres_fdw currently doesn't handle RowCompareExpr, which doesn't \nallow keyset pagination queries to be efficiently executed over sharded \ntable.\nAttached patch adds handling of RowCompareExpr in deparse.c, so that we \ncould push down conditions like\nWHERE (created, id) > ('202...
[ { "msg_contents": "Hi,\r\n\r\nAttached is the release announcement draft for the 2023-08-10 update \r\nrelease, which also includes the release of PostgreSQL 16 Beta 3.\r\n\r\nPlease provide your feedback no later than August 10, 2023 0:00 AoE[1].\r\n\r\nThanks,\r\n\r\nJonathan\r\n\r\n[1] https://en.wikipedia.o...
[ { "msg_contents": "PG version 15.4\r\ni read code about pg_dump &amp; pg_restore, there is an option -j/--jobs related with parallel,\r\ni have questions about parallel dump &amp; restore\r\n1)&nbsp;In pg_dump when running parallel dump, it can ensure dump data consistency using synchronized snaphot,\r\n\r\nwhy...
[ { "msg_contents": "Sure, that's correct. There are indeed some code bugs in my logic, thank you very much for your response.\r\n\r\n\r\n\r\n\r\n发自我的企业微信\r\n\r\n\r\n\r\n\r\n\r\n ----------回复的邮件信息----------\r\n Tomas Vondra<tomas.vondra@enterprisedb.com&gt;&nbsp;在 2023-07-20 周四 18:16 写道:\r\nWell...
[ { "msg_contents": "Hi,\n\nAs some of you might have seen when running CI, cirrus-ci is restricting how\nmuch CI cycles everyone can use for free (announcement at [1]). This takes\neffect September 1st.\n\nThis obviously has consequences both for individual users of CI as well as\ncfbot.\n\n\nThe first thing I t...
[ { "msg_contents": "Hi,\n\nI updated the comment in 'SnapshotSetCommandId' in this patch which specifies the reason why it\nis not necessary to update 'curcid' of CatalogSnapshot.\n\nBest regards, xiaoran", "msg_date": "Tue, 8 Aug 2023 05:11:20 +0000", "msg_from": "Xiaoran Wang <wxiaoran@vmware.com>", ...
[ { "msg_contents": "Hi All,\nI have been looking at memory consumed when planning a partitionwise join\n[1], [2] and [3]. I am using the attached patch to measure the memory\nconsumption. The patch has been useful to detect an increased memory\nconsumption in other patches e.g. [4] and [5]. The patch looks usefu...
[ { "msg_contents": "Dear hackers,\n(CC: Julien, Sawada-san, Amit)\n\nThis is a fork thread from \"[PoC] pg_upgrade: allow to upgrade publisher node\" [1].\n\n# Background\n\n[1] is the patch which allows to replicate logical replication slots from old to new node.\nFollowings describe the rough steps:\n\n1. Boot...
[ { "msg_contents": "Since 3d351d916 (pg14), reltuples -1 means that the rel has never been\nvacuumed nor analyzed.\n\nBut since 4496020e6d (backpatched to pg15), following pg_upgrade, vacuum\ncan leave reltuples=-1.\n\ncommit 4496020e6dfaffe8217e4d3f85567bb2b6927b45\nAuthor: Peter Geoghegan <pg@bowt.ie>\nDate: ...
[ { "msg_contents": "In function `BackendXidGetPid`, when looping every proc's\n TransactionId, there is no need to access its PGPROC since there\n is shared memory access: `arrayP->pgprocnos[index]`.\n\n Though the compiler can optimize this kind of inefficiency, I\n believe we should ship with bette...
[ { "msg_contents": "Hi hackers,\n\nMost catcache and relcache entries (other than index info etc.) currently\ngo straight into CacheMemoryContext. And I believe these two caches can be\nthe ones with the largest contribution to the memory usage of\nCacheMemoryContext most of the time. For example, in cases where...
[ { "msg_contents": "Hello pgsql-hackers,\n\nWhile testing out some WAL archiving and PITR scenarios, it was observed that\nenabling WAL archiving for the first time on a primary that was on a timeline\nhigher than 1 would not initially archive the timeline history file for the\ntimeline it was currently on. Whil...
[ { "msg_contents": "Hello,\n\nCurrently, the psql's test of query cancelling (src/bin/psql/t/020_cancel.pl)\ngets the PPID of a running psql by using \"\\!\" meta command, and sends SIGINT to\nthe process by using \"kill\". However, IPC::Run provides signal() routine that\nsends a signal to a running process, so...
[ { "msg_contents": "We have a lot of Perl scripts in the tree, mostly code generation and \nTAP tests. Occasionally, these scripts produce warnings. These are \nAFAICT always mistakes on the developer side (true positives). Typical \nexamples are warnings from genbki.pl or related when you make a mess in \nth...
[ { "msg_contents": "Hey hacks,\n\nI'm looking the code of free space map and visibility map, both the module\ncall `ExtendBufferedRelTo` to extend its file when necessary, what confused\nme is that `vm_extend` has an extra step that send a shared message to force\nother backends to close other smgr references.\...
[ { "msg_contents": "I have an range partition and query below:\ncreate table p_range(a int, b int) partition by range (a,b); create table\np_range1 partition of p_range for values from (1,1) to (3,3); create table\np_range2 partition of p_range for values from (4,4) to (6,6); explain\nselect * from p_range where...
[ { "msg_contents": "Hi,\n\nPG CI is added starting from PG 15, adding PG CI to PG 14 and below\ncould be beneficial. So, firstly I tried adding it to the\nREL_14_STABLE branch. If that makes sense, I will try to add PG CI to\nother old PG releases.\n\n'Add PG CI to PG 14' patch is attached. I merged both CI comm...
[ { "msg_contents": "By default, PostgreSQL doesn't explicitly choose whether to link\nstatically or dynamically against LLVM when LLVM JIT is enabled (e.g.:\n`./configure --with-llvm`).\n\n`llvm-config` will choose to dynamically link by default.\n\nIn order to statically link, one must pass `--link-static` to\n...
[ { "msg_contents": "Hi Hackers, is there a function that would lookup the proc that\nimplements an operator?\n\nThanks,\n-cktan\n\n\n", "msg_date": "Thu, 10 Aug 2023 13:17:03 -0700", "msg_from": "CK Tan <cktan@vitessedata.com>", "msg_from_op": true, "msg_subject": "obtaining proc oid given a oper...