threads
listlengths
1
2.99k
[ { "msg_contents": "Hello hackers,\n\nPlease find the proposal for Conflict Detection and Resolution (CDR)\nfor Logical replication.\n<Thanks to Nisha, Hou-San, and Amit who helped in figuring out the\nbelow details.>\n\nIntroduction\n================\nIn case the node is subscribed to multiple providers, or whe...
[ { "msg_contents": "Hello, I have a question about cross-compiling. I get an error when doing initdb for postgresql for arm64 architecture devices.\r\nThe error information is Error relocating /data/postgresql/postgresql-16.3-arm64-v8a-build/tmp_install/usr/postgresql/arm64-v8a/lib/dict_snowball.so: palloc0: sym...
[ { "msg_contents": "Hello hackers,\n\nI'd like to discuss ways to improve the buildfarm experience for anyone who\nare interested in using information which buildfarm gives to us.\n\nUnless I'm missing something, as of now there are no means to determine\nwhether some concrete failure is known/investigated or fi...
[ { "msg_contents": "Hi ,\n\nI need to grant select on privilege in pg_catalog to user so I can connect via Toad Data point ,\n\nI tried by\ngrant select on all tables in schema pg_catalog to group sys;\nwhile connecting as sys.\n\nBut it throws me error\n\ngrant select on all tables in schema pg_catalog to sys ...
[ { "msg_contents": "hi\n\ntypedef struct RelOptInfo\n{\n....\n/*\n* information about a base rel (not set for join rels!)\n*/\nIndex relid;\n...\n}\n\nimho, the above comment is not very helpful.\nwe should say more about what kind of information relid says about a base rel?\n\nI don't know much about RelOptInfo...
[ { "msg_contents": "Hi All,\n\nWe all know that installing an extension typically requires superuser\nprivileges, which means the database objects it creates are owned by the\nsuperuser.\n\nIf the extension creates any SECURITY DEFINER functions, it can introduce\nsecurity vulnerabilities. For example, consider ...
[ { "msg_contents": "Hi,\n\nWhile experimenting on an explain option to display all plan candidates\n(very rough prototype here [1]), I've noticed some discrepancies in some\ngenerated plans.\n\nEXPLAIN (ALL_CANDIDATES) SELECT * FROM pgbench_accounts order by aid;\n Plan 1\n-> Gather Merge (cost=11108.32..22505...
[ { "msg_contents": "Hi PostgreSQL Community, \nwhen a backend process starts, pq_init is called where it opens a FD during CreateWaitEventSet()\n\n\nif (!AcquireExternalFD())\n{\n/* treat this as though epoll_create1 itself returned EMFILE */\nelog(ERROR, \"epoll_create1 failed: %m\");\n}\nset->epoll_fd = epoll_...
[ { "msg_contents": "1. Problem and reproducability\n\n\nAfter the release of PG17b1 I wanted to test it on a newly installed machine:\n\nI installed Fedora 40 Server on x86-64 and did a full dnf update (as of 23.may 2024).\n\n\nTo self-compile from source I did:\n\n\nsudo dnf group install \"C Development*\" \...
[ { "msg_contents": "Hi all,\n\nOur documentation implies that the ldapurl setting in pg_hba is used\nfor search+bind mode only. It was pointed out to me recently that this\nis not true, and if you're dealing with simple bind on a non-standard\nscheme or port, then ldapurl makes the HBA easier to read:\n\n ......
[ { "msg_contents": "Hi hackers,\n\nPlease find attached a POC patch to implement $SUBJECT.\n\nAdding relfilenode statistics has been proposed in [1]. The idea is to allow\ntracking dirtied blocks, written blocks,... on a per relation basis.\n\nThe attached patch is not in a fully \"polished\" state yet: there is...
[ { "msg_contents": "Hi hackers,\nWhen I read the code, I noticed that in SimpleLruWriteAll(), only the last error is \nrecorded when the file fails to close. Like the following,\n```void\nSimpleLruWriteAll(SlruCtl ctl, bool allow_redirtied)\n{\n SlruShared shared = ctl->shared;\n SlruWriteAllD...
[ { "msg_contents": "Hi Postgres gurus,\n\n I try to perform DELETE and INSERT queries in the Trigger\nfunction,\n\nBEGIN\nIF (TG_OP = 'DELETE') THEN\nDELETE FROM…;\nINSERT INTO….;\nRETURN OLD;\nELSIF (TG_OP = 'UPDATE' OR TG_OP = 'INSERT') THEN\nDELETE FROM…;\nINSERT INTO….;\nRETURN NEW;\nEND IF;\nRE...
[ { "msg_contents": "Hi hackers,\n\nIn commit 4908c58[^1], a vectored variant of smgrwrite() is added and\nthe assertion condition in mdwritev() no longer matches the comment.\nThis patch helps fix it.\n\n[^1]: https://github.com/postgres/postgres/commit/4908c5872059c409aa647bcde758dfeffe07996e\n\nBest Regards,\n...
[ { "msg_contents": "This patch refactors the alignment checks for direct I/O to preprocess phase,\nthereby reducing some CPU cycles.\n\n-- \nRegards\nJunwang Zhao", "msg_date": "Sun, 26 May 2024 15:16:19 +0800", "msg_from": "Junwang Zhao <zhjwpku@gmail.com>", "msg_from_op": true, "msg_subject": "...
[ { "msg_contents": "I got a report on the PgBouncer repo[1] that running DISCARD ALL was\nnot sufficient between connection handoffs to force replanning of\nstored procedures. Turns out that while DISCARD AL and DISCARD PLAN\nreset the plan cache they do not reset the num_custom_plans fields of\nthe existing Pla...
[ { "msg_contents": "Hi.\n\nI think that commit 61461a3\n<https://github.com/postgres/postgres/commit/61461a300c1cb5d53955ecd792ad0ce75a104736>,\nleft some oversight.\nThe function *PQcancelCreate* fails in check,\nreturn of *calloc* function.\n\nTrivial fix is attached.\n\nBut, IMO, I think that has more problem...
[ { "msg_contents": "On 2024-May-27, Alvaro Herrera wrote:\n\n> > JSON_SERIALIZE()\n\nI just noticed this behavior, which looks like a bug to me:\n\nselect json_serialize('{\"a\":1, \"a\":2}' returning varchar(5));\n json_serialize \n────────────────\n {\"a\":\n\nI think this function should throw an error if the...
[ { "msg_contents": "Hi.\n\nThe function *plpgsql_inline_handler* can use uninitialized\nvariable retval, if PG_TRY fails.\nFix like function*plpgsql_call_handler* wich declare retval as\nvolatile and initialize to (Datum 0).\n\nbest regards,\nRanier Vilela", "msg_date": "Mon, 27 May 2024 11:31:24 -0300", ...
[ { "msg_contents": "Hi.\n\nIn the function *PQprint*, the variable po->fieldName\ncan be NULL.\nSee the checks a few lines up.\n\nfor (numFieldName = 0;\npo->fieldName && po->fieldName[numFieldName];\nnumFieldName++)\n\nSo, I think that must be checked, when used,\nin the loop below.\n\nbest regards,\nRanier Vil...
[ { "msg_contents": "Hello hackers,\n\nAs a recent buildfarm test failure on olingo (which builds postgres with\n-O1 and address sanitizer) [1] shows:\n...\n[23:12:02.127](0.166s) not ok 6 - snapshot conflict: stats show conflict on standby\n[23:12:02.130](0.003s) #   Failed test 'snapshot conflict: stats show co...
[ { "msg_contents": "Hi ,\nWhile we try to install PG 16.2 from the source code in macbook we getting\nthis following errors\n```\n\n\n\n\n\n\n\n\n\n\n\n*explicit_bzero.c:22:9: error: call to undeclared function 'memset_s'; ISO\nC99 and later do not support implicit function declarations\n[-Wimplicit-function-dec...
[ { "msg_contents": "Hi\r\n\r\nI am playing with examples for P2D2, and I found few issues related to\r\nmemoize\r\n\r\n1. I use dataset https://pgsql.cz/files/obce.sql - it is data about czech\r\npopulation\r\n\r\nDictionary - \"obec\" -> \"village\", \"pocet_muzu\" -> \"number_of_men\",\r\n\"pocet_zen\" -> \"nu...
[ { "msg_contents": "Hi!\n\nI’ve noticed two “surprising” (to me) behaviors related to\nthe “ON ERROR” clause of the new JSON query functions in 17beta1.\n\n1. JSON parsing errors are not subject to ON ERROR\n Apparently, the functions expect JSONB so that a cast is implied\n when providing TEXT. However, the...
[ { "msg_contents": "I'm getting build failures when building with meson and llvm enabled, \nlike this:\n\n[1/112] Generating src/backend/jit/llvm/llvmjit_types.bc with a custom \ncommand\nFAILED: src/backend/jit/llvm/llvmjit_types.bc\n/usr/local/bin/ccache /usr/local/Cellar/llvm/18.1.6/bin/clang -c -o \nsrc/back...
[ { "msg_contents": "Hi.\n\nThe function *perform_rewind* has an odd undefined behavior.\nThe function memcmp/ <https://cplusplus.com/reference/cstring/memcmp/>,\ncompares bytes to bytes.\n\nIMO, I think that pg_rewind can have a security issue,\nif two files are exactly the same, they are considered different.\n...
[ { "msg_contents": "I recently noticed that at least with PostgreSQL 16, it is not possible to\nbuild using MSVC if both OpenSSL and gssapi (MIT Kerberos) are enabled.\nBoth work if the other isn't included though..\n\nI briefly tried to test with PG17 to see if it has the same issue, but it\nseems like gssapi h...
[ { "msg_contents": "In installation.sgml it says\n\n\"\"\"\nAlternatively, PostgreSQL can be built using Meson. This is currently \nexperimental.\n\"\"\"\n\nDo we want to alter this statement for PG17, considering that this is \nnow the only way to build for Windows using MSVC?\n\n(A joke response is that the W...
[ { "msg_contents": "On a particular query, I start an alarm (say for 5 sec) using RegisterTimeout , and when the alarm rings, I log something.\nThis works fine.\nBut if I run a query with a syntax error between the time duration, then the alarm never rings.\nIs there some code within Postgres that resets/removes...
[ { "msg_contents": "Hello hackers,\n\nAs a recent buildfarm test failure [1] shows:\n[14:33:02.374](0.333s) ok 23 - update works with dropped subscriber column\n### Stopping node \"publisher\" using mode fast\n# Running: pg_ctl -D \n/home/bf/bf-build/adder/HEAD/pgsql.build/testrun/subscription/001_rep_changes/da...
[ { "msg_contents": "I've built a custom type of index. I implemented an index access method,\nbut have run into roadblocks. I need to:\n\n1. See the other quals in the where clause.\n2. Extract some things from the projection.\n3. Insert some things in the projection.\n4. Push some aggregations down into the ind...
[ { "msg_contents": "Hello Andrew,\n\nWhile reviewing recent buildfarm failures, I came across this one:\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=crake&dt=2024-05-23%2004%3A11%3A03\n\nupgrade.crake/REL_16_STABLE/REL9_5_STABLE-ctl4.log\nwaiting for server to shut \ndown................................
[ { "msg_contents": "Hello, everyone!\n\nI think we don't have enough information to analyze vacuum functionality.\n\nNeedless to say that the vacuum is the most important process for a \ndatabase system. It prevents problems like table and index bloating and \nemergency freezing if we have a wraparound problem. ...
[ { "msg_contents": "I'd like to resurrect a subset of my proposal in [1], specifically that:\n\n The FOREIGN KEY constraint syntax gains a [ USING INDEX index_name ] clause\n optionally following the referenced column list.\n\n The index specified by this clause is used to support the foreign key\n constrain...
[ { "msg_contents": "Hello,\n\nI have installed PostgreSQL 15 and PostgreSQL 14 side by side and want to\nupgrade from 14 to 15. For upgrading purposes, I am using {postgresql-15-setup\ncheck_upgrade}. However, in my case, the installed 14 version is not\ncompatible with the latest 15.7.\n\nAfter the installation...
[ { "msg_contents": "Hi,\nIs it possible to switch on/off a background worker in runtime?\n\nworker.bgw_flags = BGWORKER_SHMEM_ACCESS;\nworker.bgw_start_time = BgWorkerStart_PostmasterStart;\n\nI want to switch off the worker based on some flag value, etc, either from the main process or the worker itself.\n\nAre...
[ { "msg_contents": "Hi Tristan,\nUsing make I can run only selected tests under src/test/regress using\nTESTS=... make check-tests. I didn't find any way to do that with meson.\nmeson test --suite regress runs all the regression tests.\n\nWe talked this off-list at the conference. It seems we have to somehow\nav...
[ { "msg_contents": "Hello hackers,\n\nWhen executing the following query on master branch:\n\nCREATE EXTENSION pltcl;\nCREATE or replace PROCEDURE test_proc5(INOUT a text)\n         LANGUAGE pltcl\n         AS $$\n         set aa [concat $1 \"+\" $1]\n         return [list $aa $aa])\n         $$;\n\nCALL test_pr...
[ { "msg_contents": "Hi,\n\nSee attached for a small patch fixing some typos and grammatical\nerrors in a couple of comments.\n\nSide note: It's not clear to me what \"Vars of higher levels don't\nmatter here\" means in this context (or how that claim is justified),\nbut I haven't changed that part of the comment...
[ { "msg_contents": "Writing the sql migration scripts that are run by CREATE EXTENSION and\nALTER EXTENSION UPDATE are security minefields for extension authors.\nOne big reason for this is that search_path is set to the schema of the\nextension while running these scripts, and thus if a user with lower\nprivile...
[ { "msg_contents": "Inspired by David Rowley's work [1] on optimizing JSON escape processing\nwith SIMD, I noticed that the COPY code could potentially benefit from SIMD\ninstructions in a few places, eg:\n\n(1) CopyAttributeOutCSV() has 2 byte-by-byte loops\n(2) CopyAttributeOutText() has 1\n(3) CopyReadLineTex...
[ { "msg_contents": "hi.\n\n---- setup\ndrop table if exist test__int cascade;\ncreate extension intarray;\n\nCREATE TABLE test__int( a int[] );\nCREATE INDEX text_idx on test__int using gist (a gist__intbig_ops(siglen = 1));\ndrop extension intarray cascade;\nNOTICE: drop cascades to index text_idx\n2024-06-03 ...
[ { "msg_contents": "Hi,\n\nI was looking at this code comment and wondered what it meant. AFAICT\nover time code has been moved around causing comments to lose their\noriginal context, so now it is hard to understand what they are\nsaying.\n\n~~~\n\nAfter a 2017 patch [1] the code in walsender.c function\nlogica...
[ { "msg_contents": "\nWhen testing my own patches or review other's patches, I want to know if\nthe new code has been tested, however our current 'make coverage-html'\nshows all the codes rather than the 'new code', so is there a good way\nto get the answer for the above question?\n\nI searched lcov at [1] and t...
[ { "msg_contents": "Building with clang and -flto on macOS currently fails with errors \nsimilar to [1]. This is because the --export-dynamic flag is called \n-export_dynamic [2] instead and we have not been passing this variant to \nthe linker, so far.\n\nAttached patch fixes that for configure/make.\n\nCC: Tom...
[ { "msg_contents": "Greetings.\n\nI am observing the following results on PostgreSQL 15.7\nFirst, setup:\n\ncreate table t_test(x bigint);\ninsert into t_test values(0);\n\ncreate or replace function f_get_x()\nreturns bigint\nlanguage plpgsql\nstable\nas $function$\ndeclare\n l_result bigint;\nbegin\n sel...
[ { "msg_contents": "hi\nbased on gram.y and function transformJsonValueExpr.\n\ngram.y:\n| JSON_QUERY '('\njson_value_expr ',' a_expr json_passing_clause_opt\njson_returning_clause_opt\njson_wrapper_behavior\njson_quotes_clause_opt\njson_behavior_clause_opt\n')'\n\n| JSON_EXISTS '('\njson_value_expr ',' a_expr j...
[ { "msg_contents": "Hello Everybody!\n\nFor at least last two years we have had Developers Conference\nUnconference notes in PostgreSQL Wiki\n\nhttps://wiki.postgresql.org/wiki/PgCon_2022_Developer_Unconference\nhttps://wiki.postgresql.org/wiki/PgCon_2023_Developer_Unconference\n\nAnd I know that people took not...
[ { "msg_contents": "Hackers,\n\nAt the PGConf Unconference session on improving extension support in core, we talked quite a bit about the recent anxiety among extension developers about a lack of an ABI compatibility guarantee in Postgres. Yurii Rashkovskii did a little header file spelunking and talked[1] abou...
[ { "msg_contents": "Hi,\n\nCommit 667e65aac3 changed num_dead_tuples and max_dead_tuples columns\nto dead_tuple_bytes and max_dead_tuple_bytes columns, respectively.\nBut at PGConf.dev, I got feedback from multiple people that\nnum_dead_tuples information still can provide meaning insights for\nusers to understa...
[ { "msg_contents": "In the past, we have discussed various approaches to replicate\nsequences by decoding the sequence changes from WAL. However, we faced\nseveral challenges to achieve the same, some of which are due to the\nnon-transactional nature of sequences. The major ones were: (a)\ncorrectness of the dec...
[ { "msg_contents": "Hackers,\n\nThe behavior of the .* jpiAnyKey jsonpath selector seems incorrect.\n\n```\nselect jsonb_path_query('[1,2,3]', '$.*');\njsonb_path_query \n------------------\n(0 rows)\n\nselect jsonb_path_query('[1,2,3,{\"b\": [3,4,5]}]', '$.*');\njsonb_path_query \n------------------\n[3, 4, 5]\...
[ { "msg_contents": "I noticed that the \"Restoring database schemas in the new cluster\" part of\npg_upgrade can take a while if you have many databases, so I experimented\nwith a couple different settings to see if there are any easy ways to speed\nit up. The FILE_COPY strategy for CREATE DATABASE helped quite...
[ { "msg_contents": "Hi,\n\nI am implementing my own JIT plugin (based on Cranelift) for PostgreSQL \nto learn more about the JIT and noticed an API change in PostgreSQL 17.\n\nWhen Heikki made the resource owners extensible in commit \nb8bff07daa85c837a2747b4d35cd5a27e73fb7b2 the API for JIT plugins changed \nwh...
[ { "msg_contents": "While working on my patchset for protocol changes I realized that the\nStartupMessage/SSLRequest/GSSENCRequest was not shown correctly in the\ntracing output of libpq. With this change these messages are now shown\ncorrectly in the tracing output.\n\nTo test you can add a PQreset(conn) call t...
[ { "msg_contents": "Hello hackers,\n\nAs buildfarm shows, ssl tests are not stable enough when running via meson.\nI can see the following failures for the last 90 days:\nREL_16_STABLE:\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=serinus&dt=2024-03-12%2023%3A15%3A50\nhttps://buildfarm.postgresql.org...
[ { "msg_contents": "While looking at the recent bug report from Alexander Lakhin [1], I got \nannoyed by the relcache code, and RelationClearRelation in particular. I \npropose to refactor it for clarity.\n\n[1] \nhttps://www.postgresql.org/message-id/e56be7d9-14b1-664d-0bfc-00ce9772721c%40gmail.com\n\n## Patch ...
[ { "msg_contents": "While reviewing Daniel's pg_dump patch [0], I was initially confused\nbecause the return value of getTypes() isn't saved anywhere. Once I found\ncommit 92316a4, I realized that data was actually stored in a separate hash\ntable. In fact, many of the functions in this area don't actually nee...
[ { "msg_contents": "While working on commit b631d0149, I got a bee in my bonnet about\nhow unfriendly PL/Tcl's error CONTEXT reports are:\n\n* The context reports expose PL/Tcl's internal names for the Tcl\nprocedures it creates, which'd be fine if those names were readable.\nBut actually they're something like ...
[ { "msg_contents": "I was having a discussion regarding out-of-support branches and effort \nto keep them building, but could not for the life of me find any actual \ndocumented policy (although I distinctly remember that we do something...).\n\nI did find fleeting references, for example:\n\n8<-----------------...
[ { "msg_contents": "Please find attached a quick patch to prevent this particularly bad error\nmessage for running \"postgres\", when making the common mistake of\nforgetting to put the \"--single\" option first because you added an earlier\narg (esp. datadir)\n\nCurrent behavior:\n\n$ ~/pg/bin/postgres -D ~/pg/...
[ { "msg_contents": "Hi,\n\nAt 2024.pgconf.dev, Heikki did a session on multithreading PostgreSQL\nwhich I was unfortunately unable to attend due my involvement with\nanother session, and then we had an unconference discussion which I\nwas able to attend and at which I volunteered to have a look at a\ncouple of t...
[ { "msg_contents": "There was an unconference session at pgconf.dev related to threading\nsupport. One of the problems identified was setlocale().\n\nThe attached series of patches make collation not depend on\nsetlocale(), even if the database collation uses the libc provider.\n\nSince commit 8d9a9f034e, all su...
[ { "msg_contents": "Hackers,\r\n\r\n\r\nWe are the PostgreSQL team in Tencent. We have recently developed a job scheduler that runs inside the database to schedules and manages jobs similar to Oracle DBMS_JOB package, and we would like to contribute this feature to the community.\r\n\r\n\r\nSimilar to autovacuum...
[ { "msg_contents": "As part of commit 5cd72cc0c5017a9d4de8b5d465a75946da5abd1d, the\ndependency on global counters such as VacuumPage(Hit/Miss/Dirty) was\nremoved from the vacuum. However, do_analyze_rel() was still using\nthese counters, necessitating the tracking of global counters\nalongside BufferUsage count...
[ { "msg_contents": "Hi,\n\nAlvaro reported off-list that the following should really fail,\nbecause the jsonpath expression refers to a PASSING variable that\ndoesn't exist:\n\nselect json_query('\"1\"', jsonpath '$xy' passing 2 AS xyz);\n json_query\n------------\n 2\n(1 row)\n\nThis works because of a bug in G...
[ { "msg_contents": "Hello hackers,\n\nI tried to investigate a recent buildfarm test failure:\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=adder&dt=2024-06-04%2003%3A27%3A47\n\n  29/295 postgresql:recovery / recovery/026_overwrite_contrecord ERROR            39.55s   exit status 32\n\nlog/026_overwri...
[ { "msg_contents": "Hi,\n\nWhen the content of a large transaction (size exceeding\nlogical_decoding_work_mem) and its sub-transactions has to be\nreordered during logical decoding, then, all the changes are written\non disk in temporary files located in pg_replslot/<slot_name>.\nDecoding very large transactions...
[ { "msg_contents": "Hello all,\n\nI have a query that forces an out of memory error, where the OS will kill\nthe postgresql process.\nThe query plan (run immediately after a vacuum analyze) is at\nhttps://explain.depesz.com/s/ITQI#html .\n\n\nPostgreSQL version 16.3, running on RHEL 8.9, 16 vCPU, 64 GB RAM, 32 G...
[ { "msg_contents": "Hello everyone,\n\nAt present, we use MVCC snapshots to identify dependent objects. This\nimplies that if a new dependent object is inserted within a transaction\nthat is still ongoing, our search for dependent objects won't include this\nrecently added one. Consequently, if someone attempts ...
[ { "msg_contents": "In the context of the multithreaded-server project, I looked into\npotentially not thread-safe functions.\n\n(See proposed next steps at the end of this message.)\n\nHere is a list of functions in POSIX that are possibly not thread-safe:\n\nhttps://pubs.opengroup.org/onlinepubs/9699919799/fun...
[ { "msg_contents": "Hi all,\n(Relevant folks in CC.)\n\nWhile hacking on the area of pgstat_*.c, I have noticed the existence\nof named_on_disk in PgStat_KindInfo, that is here to track the fact\nthat replication slots are a particular case in the PgStat_HashKey for\nthe dshash table of the stats because this ki...
[ { "msg_contents": "Hi All,\r\n\r\nI’m a Postgres user and I’m looking into restricting the set of allowed ciphers on Postgres and configure a concrete set of curves on our postgres instances.\r\n\r\nI see in current Postgres doc mentioned that only TLS1.2 and below cipher lists can be configured. And there is n...
[ { "msg_contents": "hi.\n\nwe have 450 appearance of\n`cache lookup failed .*`\n\nwe have 141 appearance of\n`could not open file .*`\n\nso when it actually happens, it cannot quickly locate which function\nwhere the error has happened.\nmaybe under certain conditions (e.g. certain build type or certain\nlog_min...
[ { "msg_contents": "Hi hackers,\n\nI found that in enum XactEvent, there is 'XACT_EVENT_PREPARE' for\n'prepare transaction', but there is no event for 'commit prepared' or\n'rollback prepared'.\n\nFor the following SQL:\n------------------------------------------------\nbegin;\ncreate table test(a int);\nPREPA...
[ { "msg_contents": "Hi Peter,\r\nThanks a lot for the quick response. We are using Postgres instance in our product. For some security consideration, we prefer to use TLS1.3 cipher suites in our product with some customization values instead of default value \"HIGH:MEDIUM:+3DES:!aNULL\". Moreover we prefer to se...
[ { "msg_contents": "Hi,\n\nAfter looking into parallel builds for BRIN and GIN indexes, I was\nwondering if there's a way to do parallel builds for GiST too. I knew\nnext to nothing about how GiST works, but I gave it a shot and here's\nwhat I have - the attached patch allows parallel GiST builds for the\n\"unso...
[ { "msg_contents": "Here is a new function which could produce an array of numbers with a\ncontrollable array length and duplicated elements in these arrays. I\nused it when working with gin index, and I think it would be helpful for\nothers as well, so here it is.\n\nselect * from normal_rand_array(5, 10, 1.8::...
[ { "msg_contents": "Hackers,\n\nMost of the jsonpath methods auto-unwrap in lax mode:\n\ndavid=# select jsonb_path_query('[-2,5]', '$.abs()');\n jsonb_path_query\n------------------\n 2\n 5\n(2 rows)\n\nThe obvious exceptions are size() and type(), which apply directly to arrays, so no need to unwrap:\n\ndavid=#...
[ { "msg_contents": "Hello hackers, just as the title says:\r\n1.&nbsp;Remove redundant parentheses.\r\n2.&nbsp;Adjust the position of the break statement.\r\n--\r\nRegards,\r\nChangAo Chen", "msg_date": "Sun, 9 Jun 2024 17:39:25 +0800", "msg_from": "\"=?ISO-8859-1?B?Y2NhNTUwNw==?=\" <cca5507@qq.com>", ...
[ { "msg_contents": "Hi,\n\nI noticed that the error response for a constraint violation only contains the column name for not-null constraints. I'm confused because the field isn't present when other types of constraints are triggered, such as unique, foreign keys, and check constraints. Was this done intentiona...
[ { "msg_contents": "Hello hackers, I found that we&nbsp;currently don't track txns committed in\r\nBUILDING_SNAPSHOT state because of the code in xact_decode():\r\n\t/*\r\n\t * If the snapshot isn't yet fully built, we cannot decode anything, so\r\n\t * bail out.\r\n\t */\r\n\tif (SnapBuildCurrentState(builder) ...
[ { "msg_contents": "Hi,\n\nIn [0] Andres suggested enabling -ftrapv in assert enabled builds. While\nI vastly underestimated the complexity of updating `configure` to do\nthis, I was able to enable the flag locally. Enabling this flag causes\nour existing regression tests to trap and fail in multiple different\n...
[ { "msg_contents": "hi.\nhttps://www.postgresql.org/docs/devel/error-style-guide.html#ERROR-STYLE-GUIDE-FORMATTING\n\"Don't end a message with a newline.\"\n\n\naccidentally, I found some error messages in the function\nCheckMyDatabase spread into two lines.\nso i try to consolidate them into one line.", "ms...
[ { "msg_contents": "Hi hackers,\n\nDuring the last pgconf.dev I attended Robert’s presentation about autovacuum and\nit made me remember of an idea I had some time ago: $SUBJECT\n\nPlease find attached a patch doing so by adding a new field (aka \"time_delayed\")\nto the pg_stat_progress_vacuum view. \n\nCurrent...
[ { "msg_contents": "Hi Hackers\n\nI have identified a potential memory leak in the \n`addRangeTableEntryForJoin()` function. The second parameter of \n`addRangeTableEntryForJoin()`, `colnames`, is a `List*` that is \nconcatenated with another `List*`, `eref->colnames`, using \n`list_concat()`. We need to pass on...
[ { "msg_contents": "\nTom and Nathan opined recently that providing for non-text mode for \npg_dumpall would be a Good Thing (TM). Not having it has been a \nlong-standing complaint, so I've decided to give it a go.\n\nI think we would need to restrict it to directory mode, at least to \nbegin with. I would have...
[ { "msg_contents": "Hi,\n\nTo investigate a report of both postgres and pgbouncer having issues when a\nlot of new connections aree established, I used pgbench -C. Oddly, on an\nearly attempt, the bottleneck wasn't postgres+pgbouncer, it was pgbench. But\nonly when using TCP, not with unix sockets.\n\nc=40;pgbe...
[ { "msg_contents": "Hi all,\n\nFor the v18 cycle, I would like to try to get pytest [1] in as a\nsupported test driver, in addition to the current offerings.\n\n(I'm tempted to end the email there.)\n\nWe had an unconference session at PGConf.dev [2] around this topic.\nThere seemed to be a number of nodding hea...
[ { "msg_contents": "Is there an issue with the ODBC Source downloads today?\n\nThe source download URL isn't working: https://www.postgresql.org/ftp/odbc/versions/src/\n\nThanks, Mark\n\n\n\n\n\n\n\n\n\nIs there an issue with the ODBC Source downloads today?  \n\nThe source download URL isn’t working:  https://...
[ { "msg_contents": "In [1] Dominique Devienne complained that PQsocketPoll would be\nfar more useful to him if it had better-than-one-second timeout\nresolution. I initially pushed back on that on the grounds that\npost-beta1 is a bit late to be redefining public APIs. Which it is,\nbut if we don't fix it now ...
[ { "msg_contents": "Hi hackers,\n\nBuilding on bf279ddd1c, this patch introduces a GUC\n'standby_slot_names_from_syncrep' which allows logical failover slots\nto wait for changes to have been synchronously replicated before sending\nthe decoded changes to logical subscribers.\n\nThe existing 'standby_slot_names'...
[ { "msg_contents": "Hi,\n\nI was reading the walsender.c fileheader comment while studying\nanother thread. I think if there is logical replication in progress\nthen the PROCSIG_WALSND_INIT_STOPPING handler will *always* switch to\na \"stopping\" state: e.g.,\n\n/*\n * Handle PROCSIG_WALSND_INIT_STOPPING signal....
[ { "msg_contents": "Hi,\n\nI was looking around for an exotic index type to try the experience of\nstreamifying an extension, ie out-of-core code. I am totally new to\npgvector, but since everyone keeps talking about it, I could not avoid\npicking up some basic facts in the pgconf.dev hallway track, and\nunders...
[ { "msg_contents": "Hi,\n\nWhile searching the definition of auxiliary processes, I noticed that \nthe\ndescription of the WAL summarizer is incorrect. Additionally, I think \nit's\nbetter to add a description for the WAL writer similar to other \nAuxiliary\nprocesses. What do you think?\n\n# patch\n\n```\ndiff ...
[ { "msg_contents": "Hello, hackers.\n\nWhile testing my work on (1) I was struggling with addressing a strange\nissue with ON CONFLICT UPDATE and REINDEX CONCURRENTLY.\n\nAfter some time, I have realized the same issue persists on the master\nbranch as well :)\n\nI have prepared two TAP tests to reproduce the is...
[ { "msg_contents": "Way back in 2004 there was discussion of how we wanted to differentiate \nbuildfarm animals. We were flying blind to a large extent, as we didn't \nhave many similar things to compare to. We settled on {OS-name, \nOS-version, Compiler-name, Compiler-version}. The idea was that the \nnames wou...
[ { "msg_contents": "Hi Michael and Peter,\r\nThanks a lot for the elaboration of the patch process for PG17.&nbsp; It's really unfortunate missing the the development cycle of PG17.\r\nJust some context of why we hurry to try to catch up with PG17. \r\n\r\n\r\n\r\nThere are certain government, financial and othe...
[ { "msg_contents": "Hello All,\n\nI am working on a project that aims to produce test cases that\nimprove mutation coverage of a dbms's test suite.\n\nThe rough workflow of the project goes as follows:\n(a) apply mutation at a souce code level\n(b) compile and check if the mutated installation passed existing te...
[ { "msg_contents": "Hey Postgres team,\n\nI have been working on adding support for columnar format export to\nPostgres to speed up analytics queries.\nI've created an extension that achieves this functionality here\n<https://github.com/sushrut141/pg_analytica>.\n\nI\"m looking to improve the performance of this...