threads
listlengths
1
2.99k
[ { "msg_contents": "Being a new user of Debian 12/gcc 12.2.0, I wrote the following shell\nscript to conditionally add gmake rules with compiler flags to\nsrc/Makefile.custom to suppress warnings for certain files. This allows\nme to compile all supported Postgres releases without warnings.\n\nI actually didn't...
[ { "msg_contents": "Hi,\n\nOften we make changes in the pg_hba.conf and leave a #comment there, \njust in case we forget why the change was done. To avoid having to open \nthe configuration file every time just to check the comments, it would \nbe quite nice to have the option to read these comments in the \npg_...
[ { "msg_contents": "Hi,\n\nRecently urocryon has been failing with the following errors at [1]:\nchecking for icu-uc icu-i18n... no\nconfigure: error: ICU library not found\nIf you have ICU already installed, see config.log for details on the\nfailure. It is possible the compiler isn't looking in the proper dir...
[ { "msg_contents": "I ran into an Assert failure in ATPrepAddPrimaryKey() with the query\nbelow:\n\nCREATE TABLE t0(c0 boolean);\nCREATE TABLE t1() INHERITS(t0);\n\n# ALTER TABLE t0 ADD CONSTRAINT m EXCLUDE ((1) WITH =);\nserver closed the connection unexpectedly\n\nThe related codes are\n\n foreach(lc, stmt-...
[ { "msg_contents": "Hi All,\n\nThis patch moves the pre-processing for tokens in the bki file from\ninitdb to bootstrap. With these changes the bki file will only be\nopened once in bootstrap and parsing will be done by the bootstrap\nparser.\n\nThe flow of bki file processing will be as follows:\n- In initdb ga...
[ { "msg_contents": "Hi,\n\nI found a small mistake in document in 33.1.3. Additional Test Suites.\n\n> The additional tests that can be invoked this way include:\nThe list doesn't include interface/libpq/test.\n\nI attached patch.\n\nThank you.\n\nBest Regards\nRyo Matsumura\nFujitsu Limited", "msg_date": "F...
[ { "msg_contents": "Hi,\n\nWhen reading the code, I noticed a typo in the description of WAL record.\n\n/*\n- * Decode XLOG_HEAP2_MULTI_INSERT_insert record into multiple tuplebufs.\n+ * Decode XLOG_HEAP2_MULTI_INSERT record into multiple tuplebufs.\n *\n\nAnd attach a small patch to fix it.\n\nBest Regards,\nH...
[ { "msg_contents": "Hi,\n\nIf a null locale is reached in these paths.\nelog will dereference a null pointer.\n\nbest regards,\n\nRanier Vilela", "msg_date": "Fri, 1 Sep 2023 11:38:12 -0300", "msg_from": "Ranier Vilela <ranier.vf@gmail.com>", "msg_from_op": true, "msg_subject": "Avoid a possible ...
[ { "msg_contents": "Hackers,\n\nI noticed that there was a mismatch between the const qualifiers for \nexcludeDirContents in src/backend/backup/backup/basebackup.c and \nsrc/bin/pg_rewind/file_map.c and that led me to use ^static const.*\\*.*= \nto do a quick search for similar cases.\n\nI think at the least we ...
[ { "msg_contents": "The first two patches in the series are re-proposals that had previously \nbeen approved[0] by Andres, but fell through the cracks.\n\nThe only patch that _could_ be controversial is probably the last one, \nbut from my understanding it would match up with the autotools build.\n\nOne thing th...
[ { "msg_contents": "\n\n", "msg_date": "Sat, 2 Sep 2023 00:41:14 +0800", "msg_from": "jacktby jacktby <jacktby@gmail.com>", "msg_from_op": true, "msg_subject": "Is there a complete doc to describe pg's traction implementation in\n detail?" } ]
[ { "msg_contents": "Hi,\n\nWhilst looking at PostgreSQL's bootstrapping process, I noticed that\npostgres.bki contains quite a few occurrances of the pattern \"open\n$catname; close $catname\".\nI suppose this pattern isn't too expensive, but according to my\nlimited research a combined open+close cycle doens't ...
[ { "msg_contents": "Greetings,\n\nIf you are on the speaker list can you send an email to ugcomm@postgresql.us\nindicating whether you are available to travel for meetups?\n\nThis serves the obvious purpose but also provides your email address to us.\n\nThanks,\n\nDave Cramer\n\nGreetings,If you are on the speak...
[ { "msg_contents": "Hi,\n\nI noticed that VACUUM FULL actually does freeze the tuples in the\nrewritten table (heap_freeze_tuple()) but then it doesn't mark them\nall visible or all frozen in the visibility map. I don't understand\nwhy. It seems like it would save us future work.\n\nHere is an example:\n\ncreate...
[ { "msg_contents": "During pg_upgrade, we start the server for the old cluster which can\nallow the checkpointer to remove the WAL files. It has been noticed\nthat we do generate certain types of WAL records (e.g\nXLOG_RUNNING_XACTS, XLOG_CHECKPOINT_ONLINE, and XLOG_FPI_FOR_HINT)\neven during pg_upgrade for old ...
[ { "msg_contents": "Hi.\nIn src/backend/executor/nodeAgg.c\n817: advance_aggregates(AggState *aggstate)\n\nDo we need to add \"(void)\" before ExecEvalExprSwitchContext?\n\n\n", "msg_date": "Sun, 3 Sep 2023 11:16:41 +0800", "msg_from": "jian he <jian.universality@gmail.com>", "msg_from_op": true, ...
[ { "msg_contents": "Hi,\n\nSomehow these tests have recently become unstable and have failed a few times:\n\nhttps://github.com/postgres/postgres/commits/REL_15_STABLE\n\nThe failures are like:\n\n[22:32:26.722] # Failed test 'pgbench simple update stdout\n/(?^:builtin: simple update)/'\n[22:32:26.722] # at t/00...
[ { "msg_contents": "Hi, hackers,\n\nLooking at the planner behaviour with the memory consumption patch [1], I figured out that arrays increase memory consumption by the optimizer significantly. See init.sql in attachment.\nThe point here is that the planner does small memory allocations for each element during e...
[ { "msg_contents": "Hi,\n\nThis patch proposes the column \"comment\" to the pg_hba_file_rules view. \nIt basically parses the inline comment (if any) of a valid pg_hba.conf \nentry and displays it in the new column.\n\nFor such pg_hba entries ...\n\nhost db jim 127.0.0.1/32 md5 # foo\nhost db jim 127.0.0.1/32 m...
[ { "msg_contents": "Hi,\n\nI realized that I forgot to add the new extra test to my test scripts.\nSo, I thought maybe we can use shorthand for including all extra\ntests. With that, running a full testsuite is easier without having to\nkeep up with new tests and updates.\n\nI created an 'all' option for PG_TEST...
[ { "msg_contents": "Hi,\nI used backtrace_functions to debug one of my ideas and found its behavior counter-intuitive and contradictory to it own docs. I think the GUC is supposed to be used to dump backtrace only on elog(ERROR) (should it also be done for higher levels? not sure about this), but, in fact, it do...
[ { "msg_contents": "Thank you for your response. It is evident that there is a need\nfor this features in our system.\nFirstly, our customers express their desire to utilize tablespaces\nfor table management, without necessarily being concerned about\nthe directory location of these tablespaces.\nSecondly, curre...
[ { "msg_contents": "Hi all,\n\n I recently run benchmark[1] on master, but I found performance problem\nas below:\n\nexplain analyze select\n subq_0.c0 as c0,\n subq_0.c1 as c1,\n subq_0.c2 as c2\nfrom\n (select\n ref_0.l_shipmode as c0,\n sample_0.l_orderkey as c1,\n sample_0.l_quanti...
[ { "msg_contents": "Hi,\n\nThere are multiple 'always:' keywords under the CompilerWarnings task.\nInstead of that, we can use one 'always:' and move the instructions\nunder this. So, I removed unnecessary ones and rearranged indents\naccording to that change.\n\nAny kind of feedback would be appreciated.\n\nReg...
[ { "msg_contents": "Hello\nI encountered a very lucky logical decoding error on the publisher:\n\n2023-09-05 09:58:38.955 UTC 28316 melkij@postgres from [local] [vxid:3/0 txid:0] [START_REPLICATION] LOG: starting logical decoding for slot \"pubsub\"\n2023-09-05 09:58:38.955 UTC 28316 melkij@postgres from [local...
[ { "msg_contents": "\n\n", "msg_date": "Tue, 5 Sep 2023 22:29:58 +0800", "msg_from": "jacktby jacktby <jacktby@gmail.com>", "msg_from_op": true, "msg_subject": "How to add a new pg oid?" }, { "msg_contents": "\n> 2023年9月5日 22:29,jacktby jacktby <jacktby@gmail.com> 写道:\n> \nI’m trying to a...
[ { "msg_contents": "Here's a fix to move the privilege check on constraint dropping from\nATExecDropConstraint to dropconstraint_internal. The former doesn't\nrecurse anymore, so there's no point in doing that or in fact even\nhaving the 'recursing' argument anymore.\n\nThis fixes the following test case\n\nCRE...
[ { "msg_contents": "I was reading through the page and noticed this portion which didn't \nsound quite right. I am hoping that I captured the original intent \ncorrectly. Please let me know if something should be changed and/or \nreflowed, since I am not sure what best practices are when editing the \ndocs. I di...
[ { "msg_contents": "Hi,\n\nWhile browsing the test cases, found that the incorrect filename was there\nin the test case comment.\nThe below commit added the custom hash opclass in insert.sql,\n\n--------------------------------------------------------------\n\n\n\n\n*commit fafec4cce814b9b15991b62520dc5e5e84655a...
[ { "msg_contents": "Hi,\n\nIn PG-16, I see that we have made a lot of changes in the area roles\nand privileges. I have a question related to this and here is my\nquestion:\n\nLet's say there is a roleA who creates roleB and then roleB creates\nanother role, say roleC. By design, A can administer B and B can\nad...
[ { "msg_contents": "Hi:\n\nThis thread is a refactor of thread [1] for easier communication.\n\nCurrently add_paths_to_append_rel overlooked the startup cost for creating\nappend path, so it may have lost some optimization chances. After a\nglance,\nthe following 4 identifiers can be impacted.\n\nIdentifier 1:\...
[ { "msg_contents": "I create a patch that outputs affected rows in EXPLAIN that occur by\nINSERT/UPDATE/DELETE.\nDespite the fact that commands in EXPLAIN ANALYZE query are executed as\nusual, EXPLAIN doesn't show outputting affected rows as in these commands.\nThe patch fixes this problem.\n\nExamples:\nexplain...
[ { "msg_contents": "We have:\n\n\"This improves security and now requires subscription owners to be\neither superusers or to have SET ROLE permissions on all tables in the\nreplication set. The previous behavior of performing all operations as\nthe subscription owner can be enabled with the subscription\nrun_as_...
[ { "msg_contents": "I'm trying to write a custom scan. It's pretty confusing. I've read the\ndocumentation at\nhttps://www.postgresql.org/docs/current/custom-scan.html, and I've scanned\nthe\ncode in Citus Columnar and in Timescale, both of which are quite complex.\n\nIs anyone aware of code with a simple exampl...
[ { "msg_contents": "Allow using syncfs() in frontend utilities.\n\nThis commit allows specifying a --sync-method in several frontend\nutilities that must synchronize many files to disk (initdb,\npg_basebackup, pg_checksums, pg_dump, pg_rewind, and pg_upgrade).\nOn Linux, users can specify \"syncfs\" to synchroni...
[ { "msg_contents": "This topic is extracted from [1].\n\nAs mentioned there, in psql, running \\? displays the following lines.\n\n > \\gdesc describe result of query, without executing it\n > \\gexec execute query, then execute each value in its result\n > \\gset [PREFIX] ...
[ { "msg_contents": "Hi there,\n\nI tested pg_rewind behavior and found a suspicious one.\n\nConsider a scenario like this,\n\nServer A: primary\nServer B :replica of A\nServer C :replica of B\n\nand somehow A down ,so B gets promoted.\n\nServer A: down\nServer B :new primary\nServer C :replica of B\n\nIn this ca...
[ { "msg_contents": "Dear hackers,\n\nWhile investigating the cfbot failure [1], I found a strange behavior of pg_ctl\ncommand. How do you think? Is this a bug to be fixed or in the specification?\n\n# Problem\n\nThe \"pg_ctl start\" command returns 0 (succeeded) even if the cluster has\nalready been started. Thi...
[ { "msg_contents": "Hi,\n\nWith f47ed79cc8, the test suite doesn't run 'wal_consistency_checking'\nas default because it is resource intensive; but regress docs doesn't\nstate resource intensiveness as a reason for not running tests by\ndefault. So, I created a patch for updating the docs.\n\nAny kind of feedbac...
[ { "msg_contents": "Hi,\n\nThere is an old work item about building the docs if there are changes\nin the docs, otherwise don't build the docs. I wanted to make an\naddition to that idea; if the changes are only in the docs, don't run\nall tasks except building the docs task; this could help to save more\nCI tim...
[ { "msg_contents": "Hi everyone,\n\nI would like to propose a patch that allows administrators to disable\n`ALTER SYSTEM` via either a runt-time option to pass to the Postgres server\nprocess at startup (e.g. `--disable-alter-system=true`, false by default)\nor a new GUC (or even both), without changing the curr...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 18097\nLogged by: Jim Keener\nEmail address: jim@jimkeener.com\nPostgreSQL version: 15.0\nOperating system: Linux\nDescription: \n\nGiven this table:\r\n\r\nCREATE TABLE test_table (\r\nid bigint G...
[ { "msg_contents": "Hi all, I was reading code of COPY FROM and I found some suspicious\nredundant assignment for tuple descriptor and number of attributes. Is\nit a behavior on purpose, or an accidently involved by the refactor in\nc532d15? Patch is attached.", "msg_date": "Fri, 8 Sep 2023 12:23:17 +0800", ...
[ { "msg_contents": "Hello,\n\nI got a trouble report here:\nhttps://github.com/heterodb/pg-strom/issues/636\n\nIt says that PG-Strom raised an error when the HAVING clause used\nnon-grouping-keys,\neven though the vanilla PostgreSQL successfully processed the query.\n\nSELECT MAX(c0) FROM t0 GROUP BY t0.c1 HAVIN...
[ { "msg_contents": "Dear hackers,\n\nI recently found a weird behaviour involving FDW (postgres_fdw) and\nplanning.\n\nHere’s a simplified use-case:\n\nGiven a remote table (say on server2) with the following definition:\n\nCREATE TABLE t1(\n ts timestamp without time zone,\n x bigint,\n x2 text\n);\n--Then ...
[ { "msg_contents": "Hello hackers,\n\nCurrently obtaining the base type of a domain involves a somewhat long\nrecursive query. Consider:\n\n```\ncreate domain mytext as text;\ncreate domain mytext_child_1 as mytext;\ncreate domain mytext_child_2 as mytext_child_1;\n```\n\nTo get `mytext_child_2` base type we can...
[ { "msg_contents": "I happened to notice this bit in fix_expr_common's processing\nof ScalarArrayOpExprs:\n\n set_sa_opfuncid(saop);\n record_plan_function_dependency(root, saop->opfuncid);\n\n if (!OidIsValid(saop->hashfuncid))\n record_plan_function_dependency(root, saop->hashfu...
[ { "msg_contents": "Hi hackers,\n\nI noticed that BufferUsage counters' values are strangely different for the\nsame queries on REL_15_STABLE and REL_16_STABLE. For example, I run\n\nCREATE EXTENSION pg_stat_statements;\nCREATE TEMP TABLE test(b int);\nINSERT INTO test(b) SELECT generate_series(1,1000);\nSELECT ...
[ { "msg_contents": "I only add below:\n\nDatum fake_dinstance2(PG_FUNCTION_ARGS)\n{\n\tPG_RETURN_INT16(0);\n}\nin src/backend/utils/adt/int8.c, and the I run “make install”,\nBut I can’t find the fake_distance2 in src/backend/utils/fmgrtab.c which is\ngenerated by src/backend/utils/Gen_fmgrtab.pl. What else do ...
[ { "msg_contents": "Hi,\n\nI have fallen into this trap and others have too. If you run\nEXPLAIN(ANALYZE) no de-toasting happens. This makes query-runtimes\ndiffer a lot. The bigger point is that the average user expects more\nfrom EXPLAIN(ANALYZE) than what it provides. This can be suprising. You\ncan force det...
[ { "msg_contents": "Hi,\n\nFound server crash on RHEL 9/s390x platform with below test case -\n\n*Machine details:*\n\n\n\n\n\n\n\n*[edb@9428da9d2137 postgres]$ cat /etc/redhat-release AlmaLinux release 9.2\n(Turquoise Kodkod)[edb@9428da9d2137 postgres]$ lscpuArchitecture:\ns390x CPU op-mode(s): 32-bit, 6...
[ { "msg_contents": "Hi,\n\nI created a tiny patch that documents that the code block following\nPG_TRY() cannot have any return statement.\n\nPlease CC me, as I'm not subscribed to this list.", "msg_date": "Tue, 12 Sep 2023 14:54:24 +0200", "msg_from": "Serpent <serpent7776@gmail.com>", "msg_from_op"...
[ { "msg_contents": "\nOne of the frustrations with using the \"C\" locale (or any deterministic\nlocale) is that the following returns false:\n\n SELECT 'á' = 'á'; -- false\n\nbecause those are the unicode sequences U&'\\0061\\0301' and U&'\\00E1',\nrespectively, so memcmp() returns non-zero. But it's really t...
[ { "msg_contents": "Greetings Hackers,\n\nBeen a while! I’m working on some experiments with JSONB columns and GIN indexes, and have operated on the assumption that JSON Path operations would take advantage of GIN indexes, with json_path_ops as a nice optimization. But I’ve run into what appear to be some incons...
[ { "msg_contents": "Hi,\r\n\r\nThe proposal by Bertrand in CC to jumble CALL and SET in [1] was\r\nrejected at the time for a more robust solution to jumble DDL.\r\n\r\nMichael also in CC made this possible with commit 3db72ebcbe.\r\n\r\nThe attached patch takes advantage of the jumbling infrastructure\r\nadded ...
[ { "msg_contents": "The definition of hashctl is shown below\n\ntypedef struct HASHCTL\n{\n long num_partitions; /* # partitions (must be power of 2) */\n long ssize; /* segment size */\n long dsize; /* (initial) directory size */\n ...
[ { "msg_contents": "Hi,\n\nCurrently, the psql's tab completion feature does not support properly \nfor ATTACH PARTITION. When <TAB> key is typed after \"ALTER TABLE \n<table_name> ATTACH PARTITION \", all possible table names should be \ndisplayed, however, foreign table names are not displayed. So I created \n...
[ { "msg_contents": "Yesterday noticed a TAP test assignment to an unused $result.\n\nPSA patch to remove that.\n\n------\nKind Regards,\nPeter Smith.\nFujitsu Australia", "msg_date": "Wed, 13 Sep 2023 11:56:37 +1000", "msg_from": "Peter Smith <smithpb2250@gmail.com>", "msg_from_op": true, "msg_su...
[ { "msg_contents": "Hi,\n\nWhen a snapshot file reading fails in ImportSnapshot(), it errors out\nwith \"invalid snapshot identifier\". This message better suits for\nsnapshot identifier parsing errors which is being done just before the\nfile reading. The attached patch adds a generic file reading error\nmessag...
[ { "msg_contents": "Hi hackers,\n\nIt's not necessary to fill the key field for most cases, since\nhash_search has already done that for you. For developer that\nusing memset to zero the entry structure after enter it, fill the\nkey field is a must, but IMHO that is not good coding style, we\nreally should not t...
[ { "msg_contents": "Looking at ZQFUGOuS5DU4DsE4@paquier.xyz I noticed that we had a a few instances\nof filenames in userfacing log messages (ie not elog or DEBUGx etc) not being\nquoted, where the vast majority are quoted like \\\"%s\\\". Any reason not to\nquote them as per the attached to be consistent acros...
[ { "msg_contents": "Hello!\n\nThere is a table with a unique index on it and we have a query that\nsearching DISTINCT values on this table on columns of unique index. Example:\n\n\ncreate table a (n int);\ninsert into a (n) select x from generate_series(1, 140000) as g(x);\ncreate unique index on a (n);\nexplain...
[ { "msg_contents": "Hi All,\n\nPlease find a small patch to improve code readability by modifying\nvariable name to reflect the logic involved - finding diff between end\nand start time of WAL sync.\n\n--\nThanks and Regards,\nKrishnakumar (KK)\n[Microsoft]", "msg_date": "Wed, 13 Sep 2023 23:28:44 -0700", ...
[ { "msg_contents": "Hi All,\n\nPlease find a small patch to improve code readability by fixing up the\nvariable name to indicate the WAL record reservation status. The\ninsertion is done later in the code based on the reservation status.\n\n--\nThanks and Regards,\nKrishnakumar (KK).\n[Microsoft]", "msg_date...
[ { "msg_contents": "Hi,\n\nCurrently it is complained that wal_level changes require an instance\nrestart, I'm not familiar with this stuff so far and I didn't get any good\ninformation from searching the email archive. So I want to gather\nsome feedbacks from experts to see if it is possible and if not, why\...
[ { "msg_contents": "Hi there,\n\nI have 1 trivial fix, 1 bug fix, and 1 suggestion about vacuumdb.\n\nFirst, I noticed that the help message of `vacuumdb` is a bit incorrect.\n\n`vacuumdb -?` displays the following message\n```\n...\n -n, --schema=PATTERN vacuum tables in the specified schema(s)\nonl...
[ { "msg_contents": "A normal LRU cache or implement it reference to a research paper?\n\n\n", "msg_date": "Thu, 14 Sep 2023 19:47:14 +0800", "msg_from": "jacktby jacktby <jacktby@gmail.com>", "msg_from_op": true, "msg_subject": "What's the eviction algorithm of newest pg version?" }, { "m...
[ { "msg_contents": "In buffer README, I see “Pins may not be held across transaction boundaries, however.” I think for different transactions, they can pin the same buffer page, why not? For concurrent read transactions, they could read the one and the same buffer page.\n\n", "msg_date": "Fri, 15 Sep 2023 00...
[ { "msg_contents": "Hi,\n\nWhen a table name is specified as the first argument of \\ev \nmeta-command, it reports the error message, the prompt string becomes \n\"-#\" and then the following valid query fails because the psql's query \nbuffer contains the garbage string generated by failure of \\ev. Please \nse...
[ { "msg_contents": "Hi,\n\nWhen archive_library is set to 'basic_archive' but \nbasic_archive.archive_directory is not set, WAL archiving doesn't work \nand only the following warning message is logged.\n\n $ emacs $PGDATA/postgresql.conf\n archive_mode = on\n archive_library = 'basic_archive'\n\n ...
[ { "msg_contents": "Hi,\n\nI found that pgBufferUsage.blk_{read|write}_time are zero although there\nare pgBufferUsage.local_blks_{read|written}. For example, when you run\n(track_io_timing should be on):\n\nCREATE EXTENSION pg_stat_statements;\nCREATE TEMP TABLE example_table (id serial PRIMARY KEY, data text);...
[ { "msg_contents": "I’m trying to implement a new column store for pg, is there a good example to reference?\n\n", "msg_date": "Fri, 15 Sep 2023 20:31:06 +0800", "msg_from": "jacktby jacktby <jacktby@gmail.com>", "msg_from_op": true, "msg_subject": "Implement a column store for pg?" }, { ...
[ { "msg_contents": "Hi,\n\nI believe SET ROLE documentation makes a slightly incomplete statement\nabout what happens when a superuser uses SET ROLE.\n\nThe documentation reading suggests that the superuser would lose all their\nprivileges. However, they still retain the ability to use `SET ROLE` again.\n\nThe a...
[ { "msg_contents": "Hi,\n\nIt appears that 16.0 improved some of the checks in ALTER ROLE. Previously,\nit was possible to do the following (assuming current_user is a bootstrap\nuser):\n\n```\nALTER ROLE current_user NOSUPERUSER\n```\n\nAs of 16.0, this produces an error:\n\n```\nERROR: permission denied to al...
[ { "msg_contents": "Hi,\n\nAt one time 12 years ago, fn_collation was stored in FmgrInfo,\nwith a comment saying it was really \"parse-time-determined\ninformation about the arguments, rather than about the function\nitself\" but saying \"it's convenient\" to store it in FmgrInfo\nrather than in FunctionCallInfo...
[ { "msg_contents": "I wrote a patch to change psql's display of zero privileges after a user's\nreported confusion with the psql output for zero vs. default privileges [1].\nAdmittedly, zero privileges is a rare use case [2] but I think psql should not\nconfuse the user in the off chance that this happens.\n\nWi...
[ { "msg_contents": "The docs for `to_regtype()` say, “this function will return NULL rather than throwing an error if the name is not found.” And it’s true most of the time:\n\ndavid=# select to_regtype('foo'), to_regtype('clam');\n to_regtype | to_regtype\n------------+------------\n [null] | [null]\n\nBut ...
[ { "msg_contents": "Hello postgres hackers:\nI recently notice that function \"cursor_to_xmlschema\" can lead to a crash if the\ncursor parameter points to the query itself. Here is an example:\n\npostgres=# SELECT cursor_to_xmlschema('' :: refcursor, TRUE , FALSE , 'xxx' ) into temp;\nserver closed the connecti...
[ { "msg_contents": "We started with\n\nStatus summary: Needs review: 227. Waiting on Author: 37. Ready for \nCommitter: 30. Committed: 40. Rejected: 1. Returned with Feedback: 1. \nWithdrawn: 1. Total: 337.\n\nNow we are at\n\nStatus summary: Needs review: 199. Waiting on Author: 33. Ready for \nCommitter: 32. C...
[ { "msg_contents": "The GiST README says:\n\n> If the F_FOLLOW_RIGHT flag is not set, a scan compares the NSN on the\n> child and the LSN it saw in the parent. If NSN < LSN, the scan looked\n> at the parent page before the downlink was inserted, so it should\n> follow the rightlink. Otherwise the scan saw the do...
[ { "msg_contents": "Hi,\n\nit seems dikkop is unhappy again, this time because of some OpenSSL\nstuff. I'm not sure it's our problem - it might be issues with the other\npackages, or maybe something FreeBSD specific, not sure.\n\nWe did some investigation of an unrelated issue on dikkop about a month\nago [1], s...
[ { "msg_contents": "This fails since 1349d2790b\n\ncommit 1349d2790bf48a4de072931c722f39337e72055e\nAuthor: David Rowley <drowley@postgresql.org>\nDate: Tue Aug 2 23:11:45 2022 +1200\n\n Improve performance of ORDER BY / DISTINCT aggregates\n\nts=# CREATE TABLE t (a int, b text) PARTITION BY RANGE (a);\nts=...
[ { "msg_contents": "While replaying our production workload we have found Postgres spending a\nlot of time inside TimescaleDB planner. The planner itself need an\ninformation about whether a table involved is a TimescaleDB hypertable. So\nplanner need an access to TimescaleDB internal metainformation tables. Thi...
[ { "msg_contents": "Hi,\n\nThis came up in [0] and opinions besides my own would be welcome.\n\nThere is a function cannotCastJsonbValue in jsonb.c, and it throws \nerrors\nof this form:\n\nERRCODE_INVALID_PARAMETER_VALUE \"cannot cast jsonb %1$s to type %2$s\"\n\nwhere %1 is one of the possible JsonbValue types...
[ { "msg_contents": "Hi,\n\nPer complain in another thread[1], I started to look into the global\nvariables in pgoutput.\n\nCurrently we have serval global variables in pgoutput, but each of them is\ninherently local to an individual pgoutput instance. This could cause issues if\nwe switch to different output plu...
[ { "msg_contents": "Hi,\n\nIssue1:\nVACUUM and ANALYZE docs explain that the parameter of BUFFER_USAGE_LIMIT \nis optional as follows. But this is not true. The argument, size, is \nrequired for BUFFER_USAGE_LIMIT. So the docs should be fixed this issue.\nBUFFER_USAGE_LIMIT [ size ]\nhttps://www.postgresql.org/d...
[ { "msg_contents": "I'm working on an index access method. I have a function which can appear\nin a projection list which should be evaluated by the access method itself.\nExample:\n\nSELECT title, my_special_function(body)\nFROM books\nWHERE book_id <===> 42;\n\n\"<===>\" is the operator that invokes the access...
[ { "msg_contents": "Several places bypass the buffer manager and use direct smgrextend() \ncalls to populate a new relation: Index AM build methods, rewriteheap.c \nand RelationCopyStorage(). There's fair amount of duplicated code to \nWAL-log the pages, calculate checksums, call smgrextend(), and finally \ncall...
[ { "msg_contents": "Hi,\n\nWhat I am concerned about from the report [1] is that this comment is\na bit too terse; it might cause a misunderstanding that extensions can\ndo different things than we intend to allow:\n\n /*\n * 6. Finally, give extensions a chance to manipulate the path list.\n */\n ...
[ { "msg_contents": "Hi,\n\nOn the latest master head, I can see a $subject bug that seems to be related\ncommit #b0e96f311985:\n\nHere is the table definition:\ncreate table foo(i int, j int, CONSTRAINT pk PRIMARY KEY(i) DEFERRABLE);\n\nAnd after restore from the dump, it shows a descriptor where column 'i' not\...
[ { "msg_contents": "I got a complaint that pg_upgrade --check fails to raise red flags when\nthe source database contains type abstime when upgrading from pg11. The\ntype (along with reltime and tinterval) was removed by pg12.\n\n\nIn passing, while testing this, I noticed that the translation\ninfrastructure i...
[ { "msg_contents": "Hi,\n\nCurrently we claim to support all versions of LLVM from 3.9 up. It's\nnow getting quite inconvenient to test changes on older releases with\nsingle digit major versions, because they aren't available through\nusual package channels on current distributions, and frankly it feels\nlike ...
[ { "msg_contents": "Hi,\n\nWhen --buffer-usage-limit option is specified, vacuumdb issues VACUUM or \nVACUUM ANALYZE command with BUFFER_USAGE_LIMIT option. Also if \n--buffer-usage-limit and -Z options are specified, vacuumdb should issue \nANALYZE command with BUFFER_USAGE_LIMIT option. But it does not. That \...
[ { "msg_contents": "Dear hackers,\n\nWhile developing my patch, I found that the CI for macOS failed with unknown error [1].\nDo you know the reason why it happened? Please tell me if you have workarounds...\n\nIt failed the test at \"Upload 'ccache' cache\". The Cirrus app said a following message:\n\n> Persist...
[ { "msg_contents": "Hi,\n\nI am confused about the new subscription parameter: password_required.\n\nI have two instances. The publisher's pg_hba is configured too allow \nconnections without authentication. On the subscriber, I have an \nunprivileged user with pg_create_subscription and CREATE on the database.\...
[ { "msg_contents": "", "msg_date": "Thu, 21 Sep 2023 21:15:59 +0800", "msg_from": "\"jacktby@gmail.com\" <jacktby@gmail.com>", "msg_from_op": true, "msg_subject": "how to do profile for pg?" }, { "msg_contents": "Hi jacktby,\n\nPostgreSQL is literally a large and complicated program in C....
[ { "msg_contents": "Hi all,\n\nIt has been mentioned a few times now that, as Meson has been\nintegrated in the tree, the next step would be to get rid of the\ncustom scripts in src/tools/msvc/ and moving forward only support\nMeson when building with VS compilers. As far as I understand, nobody\nhas sent a pat...
[ { "msg_contents": "Hi all,\n\n\nGood day!\n\n\nI am a newbee to PostgreSQL and recently came across an idea about\ntype-casting tablespace OID.\n\nThe motibation is that when I have to upgrade a PostgreSQL database, we\nneed to join other tables to\n\ntrack tablespace name. I have just created a simple patch to...
[ { "msg_contents": "Hi,\n\npgstat_report_wal() calls pgstat_flush_wal() and pgstat_flush_io(). When \ncalling them, pgstat_report_wal() specifies its argument \"force\" as the \nargument of them, as follows. But according to the code of \npgstat_flush_wal() and pgstat_flush_io(), their argument is \"nowait\" and...
[ { "msg_contents": "Hi,\n\npgstat_report_wal() calls pgstat_flush_wal() and pgstat_flush_io(). When \ncalling them, pgstat_report_wal() specifies its argument \"force\" as the \nargument of them, as follows. But according to the code of \npgstat_flush_wal() and pgstat_flush_io(), their argument is \"nowait\" and...