threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nTLDR: this email describes a serialization failure that happens (as I\nunderstand it) due to too coarse predicate locks granularity for primary\nkey index.\n\nI have a concurrent testsuite that runs 14 test cases. Each test case\noperates on a disjoint set of records, doesn't retry tra...
[ { "msg_contents": "Hi OSS Community,\nWe just wanted to confirm when the TAG will be created for the current FEB minor release as we could not find the TAG for none of the minor versions,\nbelow is the screen shot for the some of the minor versions.\n\n[cid:image001.png@01D93B13.7BF82E20]\nCould you please conf...
[ { "msg_contents": "Hi,\n\n-- commit 9d2d9728b8d546434aade4f9667a59666588edd6\n> Author: Michael Paquier <michael@paquier.xyz>\n> Date: Thu Jan 26 12:23:16 2023 +0900\n> \n> Make auto_explain print the query identifier in verbose mode\n> ..(snip)..\n> While looking at the area, I have noticed that more consoli...
[ { "msg_contents": "Hi,\n\nWhile working on [1], I was looking for a quick way to tell if a WAL\nrecord is present in the WAL buffers array without scanning but I\ncouldn't find one. Hence, I put up a patch that basically tracks the\noldest initialized WAL buffer page, named OldestInitializedPage, in\nXLogCtl. W...
[ { "msg_contents": "\nI'm trying to write am table_am extension. But I get \"too many Lwlocks taken\" after I insert \ntoo many tuples. So I try to use UnLockBuffers() everywhere; but it still give me \"too many Lwlocks taken\",\nSo how should I release All locks?\n\n--------------\n\n\n\njacktby@gmail.com\n\n\n...
[ { "msg_contents": "Hello,\n\nIt has been brought to my attention that SQL functions always use generic \nplans.\n\nTake this function for example:\n\ncreate or replace function test_plpgsql(p1 oid) returns text as $$\nBEGIN\n RETURN (SELECT relname FROM pg_class WHERE oid = p1 OR p1 IS NULL LIMIT 1); \nEND;...
[ { "msg_contents": "Hi\n\nI have a question about the possibility of simply getting the name of the\ncurrently executed function. The reason for this request is simplification\nof writing debug messages.\n\nGET DIAGNOSTICS _oid = PG_ROUTINE_OID;\nRAISE NOTICE '... % ... %', _oid, _oid::regproc::text;\n\nThe adva...
[ { "msg_contents": "Hi,\n\nOn cfbot / CI, we've recently seen a lot of spurious test failures due to\nsrc/test/isolation/specs/deadlock-hard.spec changing output. Always on\nfreebsd, when running tests against a pre-existing instance.\n\nI'm fairly sure I've seen this failure on the buildfarm as well, but I'm to...
[ { "msg_contents": "Hi,\n\nA recent cfbot run caused CI on windows to crash - on a patch that could not\nconceivably cause this issue:\n https://cirrus-ci.com/task/5646021133336576\nthe patch is just:\n https://github.com/postgresql-cfbot/postgresql/commit/dbd4afa6e7583c036b86abe2e3d27b508d335c2b\n\nregression...
[ { "msg_contents": "Hello\n\nIn PG15, ecpg japanese translation are different from other branches.\nIs there a reason for this?\nIf not, I think it would be better to make it the same as the other branch like the\nattached patch.\n\nregards,\nsho kato", "msg_date": "Wed, 8 Feb 2023 02:55:21 +0000", "msg_...
[ { "msg_contents": "Hi all,\n(Adding Bertrand in CC.)\n\n$subject is a follow-up of the automation of query jumbling for\nutilities and DDLs, and attached is a set of patches that apply\nnormalization to DDL queries across the board, for all utilities.\n\nThis relies on tracking the location of A_Const nodes whi...
[ { "msg_contents": "\nRight now, ICU locales are not validated:\n\n initdb ... --locale-provider=icu --icu-locale=anything\n CREATE COLLATION foo (PROVIDER=icu, LOCALE='anything');\n CREATE DATABASE anythingdb ICU_LOCALE 'anything';\n\nall succeed.\n\nWe do check that the value is accepted by ICU, but ICU see...
[ { "msg_contents": "Greetings, everyone!\n\nWhile working on an extension my colleague and I have found an \ninteresting case;\n\nWhen you try to execute next SQL statements on master branch of \nPostgreSQL:\n\nCREATE TABLE parted_fk_naming (\n id bigint NOT NULL default 1,\n id_abc bigin...
[ { "msg_contents": "Hi hackers,\n In evaluate_function(), I find codes as shown below:\n\n /*\n * Ordinarily we are only allowed to simplify immutable functions. But for\n * purposes of estimation, we consider it okay to simplify functions that\n * are merely stable; the risk that the result might change fr...
[ { "msg_contents": "PostgreSQL 16 Dev  apt-based Linux,  unable to install  ....\nmake sure all dependencies are resolved, like libpq5 (or higher) for \ntesting ...\n\n\" postgresql-client-16 : Prerequisites: libpq5 (>= 16~~devel) but \n15.1-1.pgdg+1+b1 will be installed \"\n\n\n-- \n\n__________________________...
[ { "msg_contents": "Most meson options (meson_options.txt) that enable an external \ndependency (e.g., icu, ldap) are of type 'feature'. Most of these have \na default value of 'auto', which means they are pulled in automatically \nif found. Some have a default value of 'disabled' for specific reasons \n(e.g.,...
[ { "msg_contents": "Hi,\n\nMy colleague Adam realized that when transferring ownership, 'REASSIGN \nOWNED' command doesn't check 'CREATE privilege on the table's schema' on \nnew owner but 'ALTER TABLE OWNER TO' docs state that:\n\nTo alter the owner, you must also be a direct or indirect member of the \nnew own...
[ { "msg_contents": "During data refactoring of our Application I encountered $subject when joining 4 CTEs with left join or inner join.\n\n\n1. Background\n\nPG 15.1 on Windows x64 (OS seems no to have no meening here)\n\n\nI try to collect data from 4 (analyzed) tables (up,li,in,ou) by grouping certain data (4 ...
[ { "msg_contents": "Stop recommending auto-download of DTD files, and indeed disable it.\n\nIt appears no longer possible to build the SGML docs without a local\ninstallation of the DocBook DTD, because sourceforge.net now only\npermits HTTPS access, and no common version of xsltproc supports that.\nHence, remov...
[ { "msg_contents": "Hi,\n\nVarious users and threads on -hackers (incl. [0] specifically) have\ncomplained about the overhead of our WAL format. One example of this\nis that we write at least 44 bytes to register any changes to a single\nrelation's page: There is a 24-byte WAL record header, a 4-byte block\nreco...
[ { "msg_contents": "Hello.\n\nWhile looking a patch, I found that pqSocketPoll passes through the\nresult from poll(2) to the caller and throws away revents. If I\nunderstand it correctly, poll() *doesn't* return -1 nor errno by the\nreason it has set POLLERR, POLLHUP, POLLNVAL, and POLLRDHUP for some\nof the ta...
[ { "msg_contents": "Hi all,\n\nThe following SQL sequence causes a failure of pg_upgrade when these\nare executed on a cluster of ~13, doing an upgrade to 14~, assuming\nthat the relation page size is 8kB. This creates a partition table\nwith a set of values large enough that it can be created in ~13:\nCREATE T...
[ { "msg_contents": "When we try to generate qual variants with different nullingrels in\ndeconstruct_distribute_oj_quals, we traverse all the JoinTreeItems and\nadjust qual nulling bits as we crawl up the join tree. For a\nSpecialJoinInfo which commutes with current sjinfo from below left, in\nthe next level up...
[ { "msg_contents": "Hi hackers,\n\nPlease find attached a patch proposal for $SUBJECT.\n\nThe idea has been raised in [1] by Andres: it would allow to simplify even more the work done to\ngenerate pg_stat_get_xact*() functions with Macros.\n\nIndeed, with the reconciliation done in find_tabstat_entry() then all ...
[ { "msg_contents": "Hi,\n\n\nI was looking at bug mentioned at \nhttps://www.postgresql.org/message-id/flat/201010112055.o9BKtZf7011251%40wwwmaster.postgresql.org\n\nIssue appears to be in gbt_inet_compress which doesn't store inet \ndetails like ip_family and netmask details in inetKEY and\n\ngbt_inet_consisten...
[ { "msg_contents": "As per the discussion at [1], here's a patchset to integrate\npg_bsd_indent into our main source tree, so that people don't\nhave to pull down a separate repo to get this tool.\n\n0001 is a verbatim import of the current pg_bsd_indent repo contents.\nI felt committing this separately is usefu...
[ { "msg_contents": "Currently, meson has a test suite named \"setup\". According to the\nWiki, this is needed to get something equivalent to \"make check\", by\nrunning \"meson test -v --suite setup --suite regress\".\n\nSome questions about this:\n\n* Isn't it confusing that we have a suite by that name, given ...
[ { "msg_contents": "I just found myself carefully counting the zeros in a call to pg_usleep().\nBesides getting my eyes checked, perhaps there should be a wrapper called\npg_ssleep() than can be used for multisecond sleeps. Or maybe the\nUSECS_PER_SEC macro should be used more widely. I attached a patch for th...
[ { "msg_contents": "Would there be interest in a variant of PQgetCopyData() that re-uses the\nsame buffer for a new row, rather than allocating a new buffer on each\niteration?\n\nI tried it on a toy benchmark, and it reduced client-side CPU time by about\n12%. (Less of a difference in wall-clock time of course...
[ { "msg_contents": "pgstat: Track more detailed relation IO statistics\n\nCommit 28e626bde00 introduced the infrastructure for tracking more detailed IO\nstatistics. This commit adds the actual collection of the new IO statistics\nfor relations and temporary relations. See aforementioned commit for goals and\nhi...
[ { "msg_contents": "Right now, it says that the default locale_provider is libc; but\nactually it's the same as the template from which the database is\ncreated.\n\nDoc patch attached.\n\nI also adjusted the wording of both CREATE DATABASE and CREATE\nCOLLATION to be more definite that there are two providers.\n...
[ { "msg_contents": "Hi\n\nJust a small note - I executed VACUUM ANALYZE on one customer's database,\nand I had to cancel it after a few hours, because it had more than 20GB RAM\n(almost all physical RAM). The memory leak is probably not too big. This\ndatabase is a little bit unusual. This one database has more...
[ { "msg_contents": ": Andres Freund <andres@anarazel.de>\nReferences: <b9e1f543-ee93-8168-d530-d961708ad9d3@gmail.com>\n <20230210.113242.699878230551547182.horikyota.ntt@gmail.com>\n <5420b28c-d33f-d25d-9f47-b06b8a2372ba@gmail.com>\nMIME-Version: 1.0\nContent-Type: text/plain; charset=us-ascii\nContent-Disposit...
[ { "msg_contents": "Outer-join removal does this:\n\n /*\n * Mark the rel as \"dead\" to show it is no longer part of the join tree.\n * (Removing it from the baserel array altogether seems too risky.)\n */\n rel->reloptkind = RELOPT_DEADREL;\n\nwhich apparently I thought was a good idea in 201...
[ { "msg_contents": "Hi,\n\nThis is a reply to:\nhttps://www.postgresql.org/message-id/CAA4eK1%2BDB66cYRRVyGcaMm7%2BtQ_u%3Dq%3D%2BHWGjpu9X0pqMFWbsZQ%40mail.gmail.com\nsplit off, so patches to address some of my concerns don't confuse cfbot.\n\n\nOn 2023-02-09 11:21:41 +0530, Amit Kapila wrote:\n> On Thu, Feb 9, 2...
[ { "msg_contents": "Hello pgsql-hackers!\n\nAs you may know there's a new version of UUID being standardized [0].\nThese new algorithms of UUID generation are very promising for\ndatabase performance. It keeps data locality for time-ordered values.\n From my POV v7 is especially needed for users. Current standar...
[ { "msg_contents": "Hi all,\n\nWhile working on sort optimization for window function, it was seen that \nperformance of sort where\n\nall tuples are in memory was bad when number of tuples were very large [1]\n\nEg: work_mem = 4 GB, sort on 4 int columns on table having 10 million \ntuples.\n\n\nIssues we saw w...
[ { "msg_contents": "Hi,\n\nA common annoyance when writing ad-hoc analytics queries is column naming once\naggregates are used.\n\nUseful column names:\nSELECT reads, writes FROM pg_stat_io;\ncolumn names: reads, writes\n\nNot useful column names:\nSELECT SUM(reads), SUM(writes) FROM pg_stat_io;\ncolumn names: s...
[ { "msg_contents": "While working on 16fd03e95, I noticed that in each aggregate\ndeserialization function, in order to \"receive\" the bytea value that\nis the serialized aggregate state, appendBinaryStringInfo is used to\nappend the bytes of the bytea value onto a temporary StringInfoData.\nUsing appendBinary...
[ { "msg_contents": "Hi all,\n\nAs mentioned two times on this thread, there is not much coverage for\nthe query jumbling code, even if it is in core:\nhttps://www.postgresql.org/message-id/Y5BHOUhX3zTH/ig6@paquier.xyz\n\nThs issue is that we have the options to enable it, but only\npg_stat_statements is able to ...
[ { "msg_contents": "Hi hackers,\n\nPlease find attached a patch proposal to $SUBJECT: it would allow to simplify\neven more the work done to generate pg_stat_get_xact*() functions with Macros.\n\nThis is a follow up for [1] where it has been suggested\nto get rid of PgStat_BackendFunctionEntry in a separate patc...
[ { "msg_contents": "For Citus we'd like to hook into the way that GENERATED AS IDENTITY\ngenerates the next value. The way we had in mind was to replace\nT_NextValueExpr with a function call node. But doing that same for\nCOPY seems only possible by manually changing the defexprs array of\nthe CopyFromState. Sad...
[ { "msg_contents": "Hi hackers,\n After a61b1f74823c commit, below query reports error:\n\n create table perm_test1(a int);\n create table perm_test2(b int);\n select subq.c0\nfrom (select (select a from perm_test1 order by a limit 1) as c0, b as c1\nfrom perm_test2 where false order by c0, c1) as subq where f...
[ { "msg_contents": "Hi hackers,\n\nA colleague of mine wanted to use a ScanKey with SK_SEARCHNULL flag\nfor a heap-only scan (besides other ScanKeys) and discovered that the\nresult differs from what he would expect. Turned out that this is\ncurrently not supported as it is explicitly stated in skey.h.\n\nAlthou...
[ { "msg_contents": "Hi,\n\nwhile experimenting with BRIN indexes after a couple FOSDEM discussions,\nI ran into the existing limitation that BRIN indexes don't handle array\nscan keys. So BRIN indexes can be used for conditions like\n\n WHERE a IN (1,2,3,4,5)\n\nbut we essentially treat the values as individu...
[ { "msg_contents": "Hi,\n\nI'm working on rebasing [1], my patch to make relation extension scale\nbetter.\n\nAs part of that I'd like to add tests for relation extension. To be able to\ntest the bulk write strategy path, we need to have a few backends concurrently\nload > 16MB files.\n\nIt seems pretty clear th...
[ { "msg_contents": "Hi all,\n\nDuring the gssencmode CVE discussion, we noticed that PQconnectPoll()\nhandles the error cases for TLS and GSS transport encryption slightly\ndifferently. After TLS fails, the connection handle is dead and future\ncalls to PQconnectPoll() return immediately. But after GSS encryptio...
[ { "msg_contents": "While starting to poke at the hashed-enum-partition-key problem\nrecently discussed [1], I realized that pg_dump's flagInhAttrs()\nfunction has a logic issue: its loop changes state that will be\ninspected in other iterations of the loop, and there's no guarantee\nabout the order in which rel...
[ { "msg_contents": "It looks like pg_walinspect's GetWALRecordsInfo() routine doesn't take\nsufficient care with memory management. It should avoid memory leaks\nof the kind that lead to OOMs whenever\npg_get_wal_records_info_till_end_of_wal() has to return very many\ntuples. Right now it isn't that hard to make...
[ { "msg_contents": "Hello,\n\nThis is closely related to the prior conversation at [1]. There are a\ncouple places in CONNECTION_AWAITING_RESPONSE where libpq will read a\nhuge number of bytes from a server that we really should have hung up on.\n\nThe attached patch adds a length check for the v2 error compatib...
[ { "msg_contents": "Hi hackers!\n\nI was asked to prototype a feature that helps to distinguish shared\nbuffer usage between index reads and heap reads. Practically it looks\nlike this:\n\n# explain (analyze,verbose,buffers) select nextval('s');\n QUERY PLAN\n-----------...
[ { "msg_contents": "Here are two patches that refactor the mostly repetitive \"${object} is \nvisible\" and get_${object}_oid() functions in namespace.c. This uses \nthe functions in objectaddress.c to look up the appropriate per-catalog \nsystem caches and attribute numbers, similar to other refactoring \npatc...
[ { "msg_contents": "Hello All,\n\nIm working on my postgres FDW extension, to support logical replication I\nneed to use Custom WAL resource manager. In postgres extensions have the\nflexibility to register their resource managers in RmgrTable[]. But Like\nRmgrTable[] we have another resource manager related tab...
[ { "msg_contents": "Hi hackers,\n\nIn 82d0a46ea32 AllocSetRealloc() was changed to allow decreasing size of\nexternal chunks and give memory back to the malloc pool. Two\nVALGRIND_MAKE_MEM_UNDEFINED() calls were not changed to work properly in the\ncase of decreasing size: they can mark memory behind the new all...
[ { "msg_contents": "Hi,\n\nThe default reaction to SIGQUIT is to create core dumps. We use SIGQUIT to\nimplement immediate shutdowns. We send the signal to the entire process group.\n\nThe result of that is that we regularly produce core dumps for binaries like\nsh/cp. I regularly see this on my local system, I'...
[ { "msg_contents": "It seems odd that stats_ext uses double:\n\npostgres=# SELECT attrelid::regclass, attname, atttypid::regtype, relkind FROM pg_attribute a JOIN pg_class c ON c.oid=a.attrelid WHERE attname='most_common_freqs';\n attrelid | attname | atttypid | relkind \n----------...
[ { "msg_contents": "This is a derived thread form [1], that discusses some subtle\nbehaviors of KeepLogSeg.\n\n1: https://www.postgresql.org/message-id/20230213194131.hgzs6ropcvhda5w3@awork3.anarazel.de\n\nAt Mon, 13 Feb 2023 11:41:31 -0800, Andres Freund <andres@anarazel.de> wrote\n> Hi,\n> \n> On 2023-02-13 15...
[ { "msg_contents": "I came across $subject on HEAD and here is the query I'm using.\n\ncreate table t1 (a int, b int);\ncreate table t2 (a int, b int);\ncreate table t3 (a int, b int);\n\ninsert into t1 values (1, 1);\ninsert into t2 values (2, 200);\ninsert into t3 values (3, 3);\n\n# select * from t1 left join...
[ { "msg_contents": "Hi, hackers.\n\nI found that CREATE DATABASE occurs lost of DDL result after crash server.\nThe direct cause is that the checkpoint skips sync for page of template1's main fork\nbecause buffer status is not marked as BM_PERMANENT in BufferAlloc().\n\nHave you any knowledge about it?\n\nReprod...
[ { "msg_contents": "Hi,\r\n\r\nWhen I refer to the GUC \"max_locks_per_transaction\", I find that the description\r\nof the shared lock table size in pg-doc[1] is inconsistent with the code\r\n(guc_table.c). BTW, the GUC \"max_predicate_locks_per_xact\" has similar problems.\r\n\r\nI think the descriptions in pg...
[ { "msg_contents": "Hi All,\n\nI'd like to report what seems to be a missing optimization opportunity or understand why it is not possible to achieve.\n\nTLDR; additional index column B specified in CREATE INDEX .. (A) INCLUDE(B) is not used to filter rows in queries like WHERE B = $1 ORDER BY A during IndexScan...
[ { "msg_contents": "Hello hackers,\n\nI've been testing various edge-cases of timestamptz and related types\nand noticed that despite being a 16-byte wide type, interval overflows\nfor some timestamptz (8-byte) subtractions (timestamp_mi).\nA simple example of this would be:\n\nselect timestamptz'294276-12-31 23...
[ { "msg_contents": "Hi,\n\nI came across another harmless thinko in numeric.c.\n\nIt is harmless since 20/DEC_DIGITS and 40/DEC_DIGITS happens to be exactly 5 and 10 since DEC_DIGITS == 4,\nbut should be fixed anyway for correctness IMO.\n\n- alloc_var(var, 20 / DEC_DIGITS);\n+ alloc_var(var, (20 + D...
[ { "msg_contents": "While doing some benchmarking of some fast-to-execute queries, I see\nthat set_ps_display() popping up on the profiles. Looking a little\ndeeper, there are some inefficiencies in there that we could fix.\n\nFor example, the following is pretty poor:\n\nstrlcpy(ps_buffer + ps_buffer_fixed_siz...
[ { "msg_contents": "Hi,\n\nWhile working on the BRIN SK_SEARCHARRAY patch I noticed a silly bug in\nhandling clauses on multi-column BRIN indexes, introduced in PG13.\n\nConsider a simple table with two columns (a,b) and a multi-columns BRIN\nindex on them:\n\n create table t (a int, b int);\n\n insert int...
[ { "msg_contents": "Hi,\n\nHere's some archeology I did a while back, but was reminded to post\nwhen I saw David's nearby performance improvements for ps_status.c.\n\n * there are no systems with HAVE_PS_STRINGS (ancient BSD)\n * setproctitle_fast() is in all live FreeBSD releases\n * setproctitle() is in all ot...
[ { "msg_contents": "Hi,\n\nThe attached patch removes the comment line noting the same as the\nprevious paragraph of the ExecUpdateAct() prolog comment.\n\n--\nRegards,\nAmul Sul\nEDB: http://www.enterprisedb.com", "msg_date": "Thu, 16 Feb 2023 11:05:13 +0530", "msg_from": "Amul Sul <sulamul@gmail.com>",...
[ { "msg_contents": "Hi,\n\nI noticed the NumericVar's pos_var and neg_var are not free_var()'d at the end of accum_sum_final().\n\nThe potential memory leak seems small, since the function is called only once per sum() per worker (and from a few more places), but maybe they should be free'd anyways for correctne...
[ { "msg_contents": "Hi hackers,\nI have this query as shown below:\n\nselect ref_1.r_comment as c0, subq_0.c1 as c1 from public.region as\nsample_0 right join public.partsupp as sample_1 right join public.lineitem\nas sample_2 on (cast(null as path) = cast(null as path)) on (cast(null as\n\"timestamp\") < cast(n...
[ { "msg_contents": "Hi hackers,\r\n\r\nI noticed that the document of GUC createrole_self_grant doesn't mention its\r\ndefault value. The attached patch adds that.\r\n\r\nRegards,\r\nShi Yu", "msg_date": "Thu, 16 Feb 2023 09:47:03 +0000", "msg_from": "\"shiy.fnst@fujitsu.com\" <shiy.fnst@fujitsu.com>", ...
[ { "msg_contents": "Hi,\n\n\nIn 'instr_time.h' it is stated that:\n\n* When summing multiple measurements, it's recommended to leave the\n* running sum in instr_time form (ie, use INSTR_TIME_ADD or\n* INSTR_TIME_ACCUM_DIFF) and convert to a result format only at the end.\n\n\nSo, I refactored 'PendingWalStats' t...
[ { "msg_contents": "Hi,\n\nWhile working on [1], I was in need to know WAL read stats (number of\ntimes and amount of WAL data read from disk, time taken to read) to\nmeasure the benefit. I had to write a developer patch to capture WAL\nread stats as pg_stat_wal currently emits WAL write stats. With recent\nwork...
[ { "msg_contents": "Hi everyone,\n\nI've been working on a federated database project that heavily relies on\nforeign data wrappers. During benchmarking, we noticed high system CPU\nusage in OLTP-related cases, which we traced back to multiple brk calls\nresulting from block frees in AllocSetReset upon ExecutorE...
[ { "msg_contents": "While working on [1] to make improvements in the query planner around\nthe speed to find EquivalenceMembers in an EquivalenceClass, because\nthat patch does have a large impact in terms of performance\nimprovements, some performance tests with that patch started to\nhighlight some other place...
[ { "msg_contents": "Hi hackers!\n\n From time to time I want to collect some stats from locks, activity\nand other stat views into one table from different time points. In\nthis case the \\watch psql command is very handy. However, it's not\ncurrently possible to specify the number of times a query is\nperformed...
[ { "msg_contents": "Hi,\n\nThe thread around https://postgr.es/m/CADUqk8Uqw5QaUqLdd-0SBCvZVncrE3JMJB9+yDwO_uMv_hTYCg@mail.gmail.com\nreminded me of the following:\n\nISTM that we really shouldn't use ALLOCSET_DEFAULT_SIZES for expression\ncontexts, as they most commonly see only a few small, or no, allocations.\...
[ { "msg_contents": "Hi\n\nmore times I needed to get the extension's assigned namespace. There is\nalready a cooked function get_extension_schema, but it is static.\n\nI need to find a function with a known name, but possibly an unknown schema\nfrom a known extension.\n\nRegards\n\nPavel\n\nHimore times I needed...
[ { "msg_contents": "Hi,\n\nI was working on testing a major upgrade scenario using a mix of physical and\nlogical replication when I faced some unexpected problem leading to missing\nrows. Note that my motivation is to rely on physical replication / physical\nbackup to avoid recreating a node from scratch using...
[ { "msg_contents": "Hi,\n\nHere is a small patch to improve the note, which was added by commit\n97da48246 (\"Allow batch insertion during COPY into a foreign table.\"),\nby adding an explanation about how the actual number of rows\npostgres_fdw inserts at once is determined in the COPY case, including\na limita...
[ { "msg_contents": "Hi,\n\nThe output sql generated by pg_dump for the below function refers to a\nmodified table name:\ncreate table t1 (c1 int);\ncreate table t2 (c1 int);\n\nCREATE OR REPLACE FUNCTION test_fun(c1 int)\nRETURNS void\nLANGUAGE SQL\nBEGIN ATOMIC\n WITH delete_t1 AS (\n DELETE FROM t...
[ { "msg_contents": "Hi hackers!\n\nRecently we faced a problem with one of our production clusters. Problem\nwas with pg_upgrade,\nthe reason was an invalid pg_dump of cluster schema. in pg_dump sql there\nwas strange records like\n\nREVOKE SELECT,INSERT,DELETE,UPDATE ON TABLE *relation* FROM \"144841\";\n\nbut ...
[ { "msg_contents": "When adding a check to pg_upgrade a while back I noticed in a profile that the\ncluster compatibility check phase spend a lot of time in connectToServer. Some\nof this can be attributed to data type checks which each run serially in turn\nconnecting to each database to run the check, and thi...
[ { "msg_contents": "Andres recently reminded me of some loose ends in archive modules [0], so\nI'm starting a dedicated thread to address his feedback.\n\nThe first one is the requirement that archive module authors create their\nown exception handlers if they want to make use of ERROR. Ideally, there\nwould be...
[ { "msg_contents": "Hi,\n\nI am looking for a way to define a global variable in CustomScan plugin\nthat is shared between different psql backends. Is it possible without\nusing shared memory? Does postgresql implement any function that\nfacilitates this?\n\nThank you,\nAmin\n\nHi,I am looking for a way to defin...
[ { "msg_contents": "Hi,\n\nWhile trying to add additional File* functions (FileZero, FileFallocat) I went\nback and forth about the argument order between \"amount\" and \"offset\".\n\nWe have:\n\nextern int FilePrefetch(File file, off_t offset, off_t amount, uint32 wait_event_info);\nextern int FileRead(File fi...
[ { "msg_contents": "Hi\n\nI am starting to think about the next generation of pspg (\nhttps://github.com/okbob/pspg).\n\nNow, the communication between psql and pspg is very simple. psql reads all\ndata, does formatting to pretty table format, and sends it through pipe to\npspg. pspg stores all data and tries to...
[ { "msg_contents": "Hi,\n\nI've been running a lot of valgrind tests on 32-bit arm recently, and\nfrom time to time I get a failure in handle_sig_alarm like this:\n\n ==13605== Use of uninitialised value of size 4\n ==13605== at 0x88DA98: handle_sig_alarm (timeout.c:457)\n ==13605== by 0xFFFFFFFF:...
[ { "msg_contents": "Hi,\n\nWhen building with meson, TEMP_CONFIG is supported for TAP tests, but doesn't\ndo anything for regress/isolation.\n\nThe reason for that is that meson's (and ninja's) architecture is to separate\n\"build setup\" from the \"build/test/whatever\" stage, moving dynamism (and more\ncostly ...
[ { "msg_contents": "Hi hackers,\r\n\r\nAfter multiple calls to the function pg_logical_slot_get_binary_changes() in\r\nsingle client backend (the output plugin of the slot is pgoutput), I got the\r\nfollowing error:\r\n\r\nclient backend FATAL: out of relcache_callback_list slots\r\nclient backend CONTEXT: slo...
[ { "msg_contents": "On 2023-02-11, Andres Freund wrote 20230212004254.3lp22a7bpkcjo3y6@awork3.anarazel.de:\n> The windows test failure is a transient issue independent of the patch\n> (something went wrong with image permissions).\n\nThat's happening again since 3h ago.\nhttps://cirrus-ci.com/github/postgresql-c...
[ { "msg_contents": "This patch adds support for the unit \"B\" to pg_size_pretty(). This \nmakes it consistent with the units support in GUC. (pg_size_pretty() \nonly supports \"bytes\", but GUC only supports \"B\". -- I opted against \nadding support for \"bytes\" to GUC.)", "msg_date": "Mon, 20 Feb 2023 ...
[ { "msg_contents": "Hi all,\n I have written an FDW, which is similar to the file_fdw. I need the\nsupport of WAL to perform logical and stream replication. I have knowledge\nabout custom WAL but do not have clarity about implementing WAL(writing,\nredo, desc, identify, etc..) and cases where WAL can be a...
[ { "msg_contents": "I want to resolve the domain name asynchronously before connecting to the target;\r\none way is parse sql connect parameters string; like&nbsp;\r\nif (\"host=\" in conn_params) and (\"hostaddr=\" not in conn_params):\r\n&nbsp; &nbsp;get_domain_name_and_resolv_and_add_hostaddr_to_conn_params_s...
[ { "msg_contents": "I suddenly (?, IIRC a few days ago this worked fine) started getting the following error while trying to following while building from source on Apple M1\n\nThis is on REL_13_9 but happens to all other releases too.\n\nIn file included from pg_crc32c_armv8.c:17:\n/Library/Developer/CommandLin...
[ { "msg_contents": "Playing around with MERGE some more, I noticed that the command tag\nrow count is wrong if it does a cross-partition update:\n\nCREATE TABLE target (a int, b int) PARTITION BY LIST (b);\nCREATE TABLE target_p1 PARTITION OF target FOR VALUES IN (1);\nCREATE TABLE target_p2 PARTITION OF target ...
[ { "msg_contents": "As part of the MERGE RETURNING patch I noticed a suspicious Assert()\nin ExecInitPartitionInfo() that looked like it needed updating for\nMERGE.\n\nAfter more testing, I can confirm that this is indeed a pre-existing\nbug, that can be triggered using MERGE into a partitioned table that\nhas R...
[ { "msg_contents": "Another one noticed from the MERGE RETURNING patch -- the switch\nstatement in SPI_result_code_string() is missing cases for\nSPI_OK_TD_REGISTER and SPI_OK_MERGE.\n\nThe SPI_OK_TD_REGISTER case goes back all the way, so I suppose it\nshould be back-patched to all supported branches, though ev...
[ { "msg_contents": "Another one noticed in the MERGE RETURNING patch -- this allows PL/Tcl\nto execute MERGE (i.e., don't fail when SPI returns SPI_OK_MERGE). I'm\nnot sure if anyone uses PL/Tcl anymore, but it's a trivial fix,\nprobably not worth a regression test case.\n\nRegards,\nDean", "msg_date": "Mon,...
[ { "msg_contents": "Greetings,\n\nThe name canonicalization support for Kerberos is doing us more harm\nthan good in the regression tests, so I propose we disable it. Patch\nattached.\n\nThoughts?\n\nThanks,\n\nStephen", "msg_date": "Mon, 20 Feb 2023 18:35:55 -0500", "msg_from": "Stephen Frost <sfrost@s...
[ { "msg_contents": "Hi all,\n\nWhile playing with the SSL tests last week, I have noticed that we\ndon't have a way to regenerate the SSL files with meson for its TAP\nsuite. It seems to me that we had better transfer the rules currently\nstored in sslfiles.mk into something that meson can use?\n\nAnother appro...