threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nGetConfigOptionValues function extracts the config parameters for the\ngiven variable irrespective of whether it results in noshow or not.\nBut the parent function show_all_settings ignores the values parameter\nif it results in noshow. It's unnecessary to fetch all the values\nduring ...
[ { "msg_contents": "Hi all,\n\nA recent system update of a Debian SID host has begun to show me this\nissue:\n./src/bin/psql/create_help.pl: Bareword dir handle opened at line 47,\ncolumn 1. See pages 202,204 of PBP.\n([InputOutput::ProhibitBarewordDirHandles] Severity: 5)\n\nThis issue gets fixed here as of th...
[ { "msg_contents": "Hi,\n\nI was playing around with splitting up the tablespace test in regress so\nthat I could use the tablespaces it creates in another test and happened\nto notice that the pg_class validity checks in type_sanity.sql are\nincomplete.\n\nIt seems that 8b08f7d4820fd did not update the pg_class...
[ { "msg_contents": "Just my luck, I had to dig into a two-\"character\" emoji that came to me\nas part of a Google Calendar entry --- here it is:\n\n\t👩🏼‍⚕️🩺\n\t\n\t libc\n\tUnicode UTF8 len\n\tU+1F469 f0 9f 91 a9 2 woman\n\tU+1F3FC f0 9f 8f bc 2 emoji modifier fitzpatr...
[ { "msg_contents": "I had a conversation a while back with Heikki where he expressed that\nit was annoying that we negotiate SSL/TLS the way we do since it\nintroduces an extra round trip. Aside from the performance\noptimization I think accepting standard TLS connections would open the\ndoor to a number of othe...
[ { "msg_contents": "pg_stat_progress_copy was added in v14 (8a4f618e7, 9d2d45700).\n\nBut if a command JOINs file_fdw tables, the progress report gets bungled\nup. This will warn/assert during file_fdw tests.\n\ndiff --git a/src/backend/utils/activity/backend_progress.c b/src/backend/utils/activity/backend_prog...
[ { "msg_contents": "Dear hackers, my good friend Hou Jiaxing and I have implemented a version of the code that supports multiple integer range conditions in the in condition control of the for loop statement in the plpgsql procedural language. A typical example is as follows:\r\n\r\npostgres=# do $$\r\ndeclare\r...
[ { "msg_contents": "In [1] I noticed a bit of a poor usage of appendStringInfoString which\njust appends 4 spaces in a loop, one for each indent level of the\njsonb. It should be better just to use appendStringInfoSpaces and\njust append all the spaces in one go rather than appending 4 spaces in\na loop. That'l...
[ { "msg_contents": "Hi,\n\nThere's a few places in the code that try to format a variable definition like this\n\n ReorderBufferChange *next_change =\n dlist_container(ReorderBufferChange, node, next);\n\nbut pgindent turns that into\n\n ReorderBufferChange *next_change =\n dlist_container(Reorde...
[ { "msg_contents": "Hi hackers,\n\nEXPLAIN ANALYZE for parallel Bitmap Heap Scans currently only reports \nthe number of heap blocks processed by the leader. It's missing the \nper-worker stats. The attached patch adds that functionality in the \nspirit of e.g. Sort or Memoize. Here is a simple test case and the...
[ { "msg_contents": "Hi Team,\n\nHope you guys are doing good.\n\nWe are facing below issue with read replica we did work arounds by setting hot_standby_feedback, max_standby_streaming_delay and max_standby_archive_delay, which indeed caused adverse effects on primary DB and storage. As our DB is nearly 6 TB whic...
[ { "msg_contents": "In the script below, the presence of an IN clause forces the internal\ncomponents of the UNION ALL clause to fully compute even though they are\nfully optimizable. = ANY doesn't have this issue, so I wonder if there is\nany opportunity to convert the 'slow' variant (see below) to the 'fast'\...
[ { "msg_contents": "Hi,\n\nWe have code like this in libpqrcv_connect():\n\n\tconn = palloc0(sizeof(WalReceiverConn));\n\tconn->streamConn = PQconnectStartParams(keys, vals,\n\t\t\t\t\t\t\t\t\t\t\t /* expand_dbname = */ true);\n\tif (PQstatus(conn->streamConn) == CONNECTION_BAD)\n\t{\n\t\t*err = pchomp(PQerrorMe...
[ { "msg_contents": "Hi,\n\nDue to [1] I thought it'd be a good idea to write an isolation test for\ntesting postgres_fdw interruptability during connection establishment.\n\nI was able to make that work - but unfortunately doing so requires preventing\na login from completing. The only way I could see to achieve...
[ { "msg_contents": "The attached patch adds GUCs to control the use of the abbreviated keys\noptimization when sorting. Also, I changed the TRUST_STRXFRM from a\n#define into a GUC.\n\nOne reason for these GUCs is to make it easier to diagnose any issues\nthat come up with my collation work. Another is that I ob...
[ { "msg_contents": "Hi,\n\nOn platforms where we support 128bit integers, we could accelerate division\nwhen the number of digits in the divisor is larger than 8 and less than or\nequal to 16 digits, i.e. when the divisor that fits in a 64-bit integer but would\nnot fit in a 32-bit integer.\n\nThis patch adds di...
[ { "msg_contents": "pg_stat_progress_analyze was added in v13 (a166d408e).\n\nFor tables with inheritance children, do_analyze_rel() and\nacquire_sample_rows() are called twice. The first time through,\npgstat_progress_start_command() has memset() the progress array to zero.\n\nBut the 2nd time, ANALYZE_BLOCKS_...
[ { "msg_contents": "On my machine, the src/test/subscription/t/002_types.pl test\nusually takes right about 1.5 seconds:\n\n$ time make check PROVE_FLAGS=--timer PROVE_TESTS=t/002_types.pl \n...\n[14:22:12] t/002_types.pl .. ok 1550 ms ( 0.00 usr 0.00 sys + 0.70 cusr 0.25 csys = 0.95 CPU)\n[14:22:13]\n\n...
[ { "msg_contents": "Hello,\n\nSee the attached for a simple comment fix -- the referenced\ngenerate_useful_gather_paths call isn't in grouping_planner it's in\napply_scanjoin_target_to_paths.\n\nThanks,\nJames Coleman", "msg_date": "Mon, 23 Jan 2023 08:31:04 -0500", "msg_from": "James Coleman <jtc331@gma...
[ { "msg_contents": "Hi!\n\nOne of our customers stumble onto a significant performance degradation\nwhile running multiple OLAP-like queries on a replica.\nAfter some investigation, it became clear that the problem is in accessing\nold_snapshot_threshold parameter.\n\nAccessing old_snapshot_threshold parameter i...
[ { "msg_contents": "Hi\n\nLast time I wrote new tests for session variables.\n\nOne is\n\ncreate variable :\"DBNAME\".public.var as int;\n\nOn platform with enabled WRITE_READ_PARSE_PLAN_TREES I got warning\n\n\"WARNING: outfuncs/readfuncs failed to produce an equal rewritten parse\ntree\"\n\nAfter some investi...
[ { "msg_contents": "On 2023-Jan-23, Tom Lane wrote:\n\n> 1. [...] So now I think that we should\n> stick to the convention that it's on the user to install\n> pg_bsd_indent somewhere in their PATH; all we'll be doing with\n> this change is eliminating the step of fetching pg_bsd_indent's\n> source files from som...
[ { "msg_contents": "Hey,\n\nGRANT role_name [, ...] TO role_specification [, ...]\n [ WITH { ADMIN | INHERIT | SET } { OPTION | TRUE | FALSE } ]\n [ GRANTED BY role_specification ]\n\nIt would be really nice to complete this new feature of INHERIT/SET\nFALSE/TRUE with a multi-specification capability.\n\nG...
[ { "msg_contents": "9d9c02ccd [1] added infrastructure in the query planner and executor\nso that the executor would know to stop processing a monotonic\nWindowFunc when its value went beyond what some qual in the outer\nquery could possibly match in future evaluations due to the\nWindowFunc's monotonic nature.\...
[ { "msg_contents": "On 13.01.23 11:01, Dean Rasheed wrote:\n> So I'm feeling quite good about the end result -- I set out hoping not\n> to make performance noticeably worse, but ended up making it\n> significantly better.\nHi Dean, thanks for your work.\n\nBut since PG_RETURN_NULL, is a simple return,\nnow the \...
[ { "msg_contents": "Hi,\n\ncfbot, the buildfarm and locally I have seen 100_bugs.pl fail\noccasionally. Just rarely enough that I never got around to looking into it\nfor real.\n\nJust now there was another failure on master:\nhttps://cirrus-ci.com/task/5279589287591936\n\n[01:00:49.441] ok 1 - index predicates ...
[ { "msg_contents": "We throw an error if the expression in a CREATE INDEX statement is not IMMUTABLE.\nBut while the documentation notes that expressions in CHECK constraints are not\nto be immutable, we don't enforce that. Why don't we call something like\nCheckMutability inside cookConstraint? Sure, that wou...
[ { "msg_contents": "I only recently realised that to_hex() converts its input to unsigned\nbefore converting it to hex (something that's not mentioned in the\ndocs):\n\n to_hex(-1) -> ffffffff\n\nI think that's something that some users might find surprising,\nespecially if they were expecting to be able to use...
[ { "msg_contents": "Hi,\n\nA recent commit of mine [1] broke compilation of plpython on AIX [2]. But my\ncommit turns out to only be very tangentially related - it only causes a\nfailure because it references clock_gettime() in an inline function instead of\na macro and, as it turns out, plpython currently break...
[ { "msg_contents": "Hi,\n\nHaving a query string, I am trying to use the postgres parser to find which\nrelations the query accesses. This is what I currently have:\n\nconst char *query_string=\"select * from dummytable;\";\nList *parsetree_list=pg_parse_query(query_string);\nListCell *parsetree_item;\n\nforeach...
[ { "msg_contents": "Hi,\n\nDavid Rowley and I were discussing how to test the\nNoMovementScanDirection case for heapgettup() and heapgettup_pagemode()\nin [1] (since there is not currently coverage). We are actually\nwondering if it is dead code (in core).\n\nThis is a link to the code in question on github in [...
[ { "msg_contents": "Attached is a quick-and-dirty attempt to add MSVC support for the\nrightmost/leftmost-one-pos functions.\n\n0001 adds asserts to the existing coding.\n0002 adds MSVC support. Tests pass on CI, but it's of course possible that\nthere is some bug that prevents hitting the fastpath. I've mostly ...
[ { "msg_contents": "Hello,\n\nI have discovered a bug in one usage of enums. If a table with hash\npartitions uses an enum as a partitioning key, it can no longer be\nbacked up and restored correctly. This is because enums are represented\nsimply as oids, and the hash function for enums hashes that oid to\ndeter...
[ { "msg_contents": "Rename contrib module basic_archive to basic_wal_module\n\nThis rename is in preparation for the introduction of recovery modules,\nwhere basic_wal_module will be used as a base template for the set of\ncallbacks introduced. The former name did not really reflect all that.\n\nAuthor: Nathan ...
[ { "msg_contents": "This works in PG 15:\n\n CREATE ROLE service CREATEROLE;\n CREATE ROLE service1 WITH LOGIN IN ROLE service;\n SET SESSION AUTHORIZATION service;\n CREATE ROLE service2 WITH LOGIN IN ROLE service;\n\nbut generates an error in git master:\n\n CREATE ROLE servi...
[ { "msg_contents": "Hi,\n\nattached is proposal idea by Tomas (in CC) for protecting and\nprioritizing OLTP latency on syncrep over other heavy WAL hitting\nsessions. This is the result of internal testing and research related\nto the syncrep behavior with Tomas, Alvaro and me. The main objective\nof this work-i...
[ { "msg_contents": "After I committed 1249371632 I thought that I should really go ahead and\ndo what I suggested and allow multiple exclude pattern files for\npgindent. One obvious case is to exclude an in tree meson build\ndirectory. I also sometimes have other in tree objects I'd like to be\nable exclude.\n\n...
[ { "msg_contents": "Hi hackers,\n\nCurrently we allow self-conflicting inserts for ON CONFLICT DO NOTHING:\n\n```\nCREATE TABLE t (a INT UNIQUE, b INT);\nINSERT INTO t VALUES (1,1), (1,2) ON CONFLICT DO NOTHING;\n-- succeeds, inserting the first row and ignoring the second\n```\n... but not for ON CONFLICT .. DO...
[ { "msg_contents": "Hi hackers,\n\nI attempted to perform an upgrade from PG-14.5 to PG-15.1 with pg_upgrade and unfortunately it errors out because of a function that does not exist anymore in PG-15.1.\nThe function is ‘pg_catalog.close_lb’ and it exists in 14.5 but not in 15.1.\nIn our scenario we changed the ...
[ { "msg_contents": "The attached patch responds to the discussion at [1] about how\nwe ought to offer a way to set any server GUC from the initdb\ncommand line. Currently, if for some reason the server won't\nstart with default parameters, the only way to get through initdb\nis to change the installed version o...
[ { "msg_contents": "Doing some work with extended query protocol, I encountered the same\r\nissue that was discussed in [1]. It appears when a client is using\r\nextended query protocol and sends an Execute message to a portal with\r\nmax_rows, and a portal is executed multiple times,\r\npg_stat_statements does ...
[ { "msg_contents": "Hi,\n\nIt seems that the planner currently elides an Append/MergeAppend that\nhas run-time pruning info (part_prune_index) set, but which I think is\na bug. Here's an example:\n\ncreate table p (a int) partition by list (a);\ncreate table p1 partition of p for values in (1);\nset plan_cache_...
[ { "msg_contents": "The symptom being exhibited by Michael's new BF animal tanager\nis perfectly reproducible elsewhere.\n\n$ cat /home/postgres/tmp/temp_config\n#default_toast_compression = lz4\nwal_compression = lz4\n$ export TEMP_CONFIG=/home/postgres/tmp/temp_config\n$ cd ~/pgsql/src/test/recovery\n$ make ch...
[ { "msg_contents": "Hi,\n\nI received an alert dikkop (my rpi4 buildfarm animal running freebsd 14)\ndid not report any results for a couple days, and it seems it got into\nan infinite loop in REL_11_STABLE when building hash table in a parallel\nhashjoin, or something like that.\n\nIt seems to be progressing no...
[ { "msg_contents": "I have found an odd behavior --- a query in the target list that assigns\nto a partitioned column causes queries that would normally be volatile\nto return always zero.\n\nIn the first query, no partitioning is used:\n\n\t d1 | d2\n\t----+----\n\t 1 | 0\n\t 2 | 0\n\t 2 | 1\n\t 1 | 0\n...
[ { "msg_contents": "Hi,\n\nI was going through the comments [1] mentioned in\ninit_toast_snapshot() and based on the comments understood that the\nerror \"cannot fetch toast data without an active snapshot\" will occur\nif a procedure fetches a toasted value into a local variable, commits,\nand then tries to det...
[ { "msg_contents": "Hi,\n\nI've been puzzled by this message:\n\n~~~\nLOG:  fetching timeline history file for timeline 17 from primary server\nFATAL:  could not receive timeline history file from the primary server: \nERROR:  could not open file \"pg_xlog/00000011.history\": No such file or \ndirectory\n~~~\n\n...
[ { "msg_contents": "Hi all,\n\nI am investigating the benefits of different profile-guided optimizations\n(PGO) and link-time optimizations (LTO) versus binary optimizers (e.g.\nBOLT) for applications such as PostgreSQL.\n\nI am facing issues when applying LTO to PostgreSQL as the produced binary\nseems broken (...
[ { "msg_contents": "This patch adds the n_tup_newpage_upd to all the table stat views.\n\nJust as we currently track HOT updates, it should be beneficial to track\nupdates where the new tuple cannot fit on the existing page and must go to\na different one.\n\nHopefully this can give users some insight as to whet...
[ { "msg_contents": "Hi,\n\nI found what appears to be a small harmless error in numeric.c,\nthat seems worthwhile to fix only because it's currently causes confusion.\n\nIt hasn't caused any problems, since the incorrect formula happens to\nalways produce the same result for DEC_DIGITS==4.\n\nHowever, for other ...
[ { "msg_contents": "I spent a little time investigating bug #17759 [1] in more detail.\nInitially, I thought that it had been fixed by 3f7836ff65, but it\nturns out that's not the case.\n\n[1] https://www.postgresql.org/message-id/17759-e76d9bece1b5421c%40postgresql.org\n\nThe immediate cause of the bug was that...
[ { "msg_contents": "One open issue (IMO) with the meson build system is that it installs the \ntest modules under src/test/modules/ as part of a normal installation. \nThis is because there is no way to set up up the build system to install \nextra things only when told. I think we still need a way to disable \...
[ { "msg_contents": "Hi hackers,\n\nI'm having some difficulties building the documentation on MacOS.\n\nI'm using ./full-build.sh script from [1] repository. It worked just\nfine for many years but since recently it started to fail like this:\n\n```\n/usr/bin/xsltproc --path . --stringparam pg.version '16devel'\...
[ { "msg_contents": "Hi,\n\nPlenty tap tests require a background psql. But they're pretty annoying to\nuse.\n\nI think the biggest improvement would be an easy way to run a single query and\nget the result of that query. Manually having to pump_until() is awkward and\noften leads to hangs/timeouts, instead of te...
[ { "msg_contents": "Hi hackers,\n\nI propose to add a new option \"updates_without_script\" to extension's\ncontrol file which a list of updates that do not need update script. \nThis enables to update an extension by ALTER EXTENSION even if the\nextension module doesn't provide the update script.\n\nCurrently, ...
[ { "msg_contents": "My colleague Jeremy Schneider (CC'd) was recently looking into usage count\ndistributions for various workloads, and he mentioned that it would be nice\nto have an easy way to do $SUBJECT. I've attached a patch that adds a\npg_buffercache_usage_counts() function. This function returns a row...
[ { "msg_contents": "Hi,\n\nI am looking for function calls to scan the buffer cache for a table and\nfind the cached pages. I want to find out which pages are cached and which\nof them are dirty. Having the relation id, how can I do that? I have gone\nthrough bufmgr.c and relcache.c, but could not find a way to ...
[ { "msg_contents": "Per:\n\n```\nselect ts_debug('english', 'you''re a star');\n ts_debug\n-----------------------------------------------------------------------\n (asciiword,\"Word, all ASCII\",you,{english_stem},english_stem,{})\n (blank,\"Space symbols\",',{},,)\n (asciiword,\"W...
[ { "msg_contents": "On Mon, Jan 30, 2023 at 11:50 PM Gurjeet Singh <gurjeet@singh.im> wrote:\n> It was the classical case of out-of-bounds access.\n\n> This mistake would've been caught early if there were assertions\n> preventing access beyond the number of arguments passed to the\n> function. I'll send the ass...
[ { "msg_contents": "We use Valgrind --together with the suppression file provided in Postgres repo-- to test Citus extension against memory errors.\nWe replace /bin/postgres executable with a simple bash script that executes the original postgres executable under Valgrind and then we run our usual regression tes...
[ { "msg_contents": "Remove over-optimistic Assert.\n\nIn commit 2489d76c4, I'd thought it'd be safe to assert that a\nPlaceHolderVar appearing in a scan-level expression has empty\nnullingrels. However this is not so, as when we determine that a\njoin relation is certainly empty we'll put its targetlist into a\...
[ { "msg_contents": "Hi Hackers,\n\nA user on IRC was confused about how to delete a security label using\nthe `SECURITY LABLEL ON … IS …` command, and looking at the docs I can\nsee why.\n\nThe synopsis just says `IS 'label'`, which implies that it can only be a\nstring. It's not until you read the description f...
[ { "msg_contents": "Hi all,\n\nWhile browsing the buildfarm, I have noticed this failure on curcilio:\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=curculio&dt=2023-02-01%2001%3A05%3A17\n\nThe test that has reported a failure is the check on the archive\nmodule callback:\n# Failed test 'check shutdo...
[ { "msg_contents": "Our document states that EXPLAIN can generate \"Subplan Removed\":\n\n\thttps://www.postgresql.org/docs/current/ddl-partitioning.html#DDL-PARTITION-PRUNING\n\n\tIt is possible to determine the number of partitions which were removed\n\tduring this phase by observing the “Subplans Removed” pro...
[ { "msg_contents": "I think there is a tiny typo in src/interfaces/ecpg/ecpglib/meson.build:\n\ndiff --git a/src/interfaces/ecpg/ecpglib/meson.build \nb/src/interfaces/ecpg/ecpglib/meson.build\nindex dba9e3c3d9..da8d304f54 100644\n--- a/src/interfaces/ecpg/ecpglib/meson.build\n+++ b/src/interfaces/ecpg/ecpglib/m...
[ { "msg_contents": "Earlier today I gave a talk about MERGE and wanted to provide an example\nwith FOR EACH STATEMENT triggers using transition tables. However, I\ncan't find a non-ugly way to obtain the NEW row that corresponds to each\nOLD row ... I had to resort to an ugly trick with OFFSET n LIMIT 1.\nCan ...
[ { "msg_contents": "While working on [1] I noticed that if RLS gets enabled, the COPY TO command\nincludes the contents of child table into the result, although the\ndocumentation says it should not:\n\n\t\"COPY TO can be used only with plain tables, not views, and does not\n\tcopy rows from child tables or chil...
[ { "msg_contents": "Hi hackers:\r\n I came across a blog that I was very impressed with, especially the views mentioned in it about PostgreSQL Core Team,Especially tom_lane in PostgreSQL Core Team,The new features submitted by some developers are often tainted with personal preferences, but fortunately not so...
[ { "msg_contents": "Hi hackers,\n\nWhile migrating from PostgreSQL 14 to 15, we encountered the following \nperformance degradation caused by commit 46846433a03dff: \"shm_mq: Update \nmq_bytes_written less often\", discussion in [1].\n\nThe batching can make queries with a LIMIT clause run significantly \nslower...
[ { "msg_contents": "Over at [1] we have a complaint that dump-and-restore fails for\nhash-partitioned tables if a partitioning column is an enum,\nbecause the enum values are unlikely to receive the same OIDs\nin the destination database as they had in the source, and the\nhash codes are dependent on those OIDs....
[ { "msg_contents": "\nAs a project, do we want to nudge users toward ICU as the collation\nprovider as the best practice going forward?\n\nIf so, is version 16 the right time to adjust defaults to favor ICU?\n\n * At build time, default to --with-icu (-Dicu=enabled); users who\n don't want ICU can specify --...
[ { "msg_contents": "\nHi, I'm trying to construct a new tuple type, that's not heaptuple,\nWhen I get a tupleTableSlot, I will get data info from it and then I\nwill constuct a new tuple, and now I need to put it into a physical\npage, how should I do?\n\n--------------\n\njacktby@gmail.com\n\n\n", "msg_date...
[ { "msg_contents": "In many cases, a DELETE or UPDATE not having a WHERE clause (or having it\nwith a condition matching all rows in the table) is a sign of some kind of\nmistake, leading to accidental data loss, performance issues, producing a\nlot of dead tuples, and so on. Recently, this topic was again discu...
[ { "msg_contents": "Here are a few small patches for basebackup.c:\n\n0001 fixes what I believe to be a slight logical error in sendFile(),\nintroduced by me during the v15 development cycle when I introduced\nthe bbsink abstraction. I believe that it is theoretically possible\nfor this to cause an assertion fai...
[ { "msg_contents": "Hi,\n\nThis small patch introduces a XML pretty print function. It basically \ntakes advantage of the indentation feature of xmlDocDumpFormatMemory \nfrom libxml2 to format XML strings.\n\npostgres=# SELECT xmlpretty('<foo id=\"x\"><bar id=\"y\"><var \nid=\"z\">42</var></bar></foo>');\n      ...
[ { "msg_contents": "Here is a patch that removes some unused leftovers from commit \ncfd9be939e9c516243c5b6a49ad1e1a9a38f1052 (old).", "msg_date": "Thu, 2 Feb 2023 22:58:32 +0100", "msg_from": "Peter Eisentraut <peter.eisentraut@enterprisedb.com>", "msg_from_op": true, "msg_subject": "Remove unus...
[ { "msg_contents": "I have found that in some corners of the code some calls to standard C \nfunctions are decorated with casts to (void *) for no reason, and this \ncode pattern then gets copied around. I have gone through and cleaned \nthis up a bit, in the attached patches.\n\nThe involved functions are: rep...
[ { "msg_contents": "Hey All,\n\nI have a query like below\n\n\nSELECT * FROM data WHERE val=trunc(val) AND\nacc_id='kfd50ed6-0bc3-44a9-881f-ec89713fdd80'::uuid ORDER BY ct DESC LIMIT\n10;\n\ntable structure is\n\n data\n(id uuid,\n c_id uuid,\n acc_id uuid,\n val numeric,\n ct timestamptz);\n\n\nCan you plea...
[ { "msg_contents": "When I use 'create table t(a int);'; suppose that this table t's oid is 1200,\nthen postgres will create a file named 1200 in the $PGDATA/base, So where\nis the logic code in the internal?\n\n\n--------------\n\n\n\njacktby@gmail.com\n\n\n", "msg_date": "Fri, 3 Feb 2023 17:18:50 +0800", ...
[ { "msg_contents": "Hi\n\nWe can simply allow an access to backend process id thru psql variable. I\npropose the name \"BACKEND_PID\". The advantages of usage are simple\naccessibility by command \\set, and less typing then using function\npg_backend_pid, because psql variables are supported by tab complete\nrou...
[ { "msg_contents": "Hi\n\none visitor of p2d2 (Prague PostgreSQL Developer Day) asked if it is\npossible to show the current role in psql's prompt. I think it is not\npossible, but fortunately (with some limits) almost all necessary work is\ndone, and the patch is short.\n\nIn the assigned patch I implemented a ...
[ { "msg_contents": "Hi hackers,\n\nRight now cost of index-only scan is using `random_page_cost`.\nCertainly for point selects we really have random access pattern, but \nqueries like \"select count(*) from hits\"  access pattern is more or less \nsequential:\nwe are iterating through subsequent leaf B-Tree page...
[ { "msg_contents": "... at\n\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=f282b026787da69d88a35404cf62f1cc21cfbb7c\n\nAs usual, please send corrections/comments by Sunday.\n\n\t\t\tregards, tom lane\n\n\n", "msg_date": "Fri, 03 Feb 2023 14:32:39 -0500", "msg_from": "Tom Lane <tgl@s...
[ { "msg_contents": "Respected Sir/Mam\n\n I am Shivam Ardeshna, A Computer Science Undergraduate 2nd\nYear. I was looking for a contribution and then I saw pgsql and wanted to\ncontribute to it even if I don't know about some languages I will try to\nlearn and solve the issues so can you allow me to...
[ { "msg_contents": "Hi,\nin src/test/modules/test_regex/test_regex.c\n\n\t/* Report individual info bit states */\n\tfor (inf = infonames; inf->bit != 0; inf++)\n\t{\n\t\tif (cpattern->re_info & inf->bit)\n\t\t{\n\t\t\tif (flags->info & inf->bit)\n\t\t\t\telems[nresults++] = PointerGetDatum(cstring_to_text(inf->...
[ { "msg_contents": "\nHi,I'm trying to implement my own access method. But I find the functions baout read is difficult.\nCan you give me an existed easy extension that impelment the tableamroutine to reference? I ho[e\nit's not complicated like heap_am,and it support insert sqls and select sqls.Thanks\n\n------...
[ { "msg_contents": "Hi,\n\ngcc warns about code like this:\n\ntypedef union foo\n{\n int i;\n long long l;\n} foo;\n\nfoo * assign(int i) {\n foo *p = (foo *) __builtin_malloc(sizeof(int));\n p->i = i;\n\n return p;\n}\n\n\n<source>: In function 'assign':\n<source>:9:6: warning: array subscript 'foo...
[ { "msg_contents": "While investigating code paths that use system() and popen() and\ntrying to write latch-multiplexing replacements, which I'll write\nabout separately, leaks of $SUBJECT became obvious. On a FreeBSD box,\nyou can see the sockets, pipes and data and WAL files that the\nsubprocess inherits:\n\n...
[ { "msg_contents": "I'm doing research on heap_am, and for heap_beginscan func, I find\r\nout that there is a arg called nkeys, I use some sqls as examples like \r\n'select * from t;' and 'select * from t where a = 1', but it is always zero,\r\ncan you give me some descriptions for this? what's it used for? \r\...
[ { "msg_contents": "When I use 'select * from t where a = 1'; And I debug to find where the 'a = 1' is used,\r\nwhen I arrive ExecScan in src/backend/executor/execScan.c, line 158, where this 'a = 1' is\r\nstored in?\r\n\r\n\r\njacktby@gmail.com\r\n\n\n\nWhen I use 'select * from t where a = 1'; And I debug to f...
[ { "msg_contents": "hi,\n\nI noticed that the pg_rules system view (all PG versions) does not include a\n\"status\" field (like in pg_trigger with tgenabled column)\n\nthe official view (from 15.1 sources) is :\n\nCREATE VIEW pg_rules AS\n SELECT\n N.nspname AS schemaname,\n C.relname AS tablena...
[ { "msg_contents": "Instead of defining the same set of macros several times, define it once \nin an appropriate header file. In passing, convert to inline functions.", "msg_date": "Mon, 6 Feb 2023 10:54:07 +0100", "msg_from": "Peter Eisentraut <peter.eisentraut@enterprisedb.com>", "msg_from_op": tr...
[ { "msg_contents": "I was just playing with some random timestamps for a week, for a month, for\na year ...\n\nselect distinct current_date+((random()::numeric)||'month')::interval from\ngenerate_series(1,100) order by 1;\nIt´s with distinct clause because if you change that 'month' for a 'year'\nit´ll return on...
[ { "msg_contents": "I recently moved crake to a new machine running Fedora 36, which has \nOpenSSL 3.0.0. This causes the SSL tests to fail on branches earlier \nthan release 13, so I propose to backpatch commit f0d2c65f17 to the \nrelease 11 and 12 branches.\n\n\ncheers\n\n\nandrew\n\n\n--\nAndrew Dunstan\nEDB:...
[ { "msg_contents": "Hi,\r\n\r\nAttached is a draft of the announcement for the 2023-02-09 update release.\r\n\r\nPlease review and provide corrections, notable omissions, and \r\nsuggestions no later than 2023-02-09 0:00 AoE.\r\n\r\nThanks!\r\n\r\nJonathan", "msg_date": "Mon, 6 Feb 2023 13:19:50 -0500", ...
[ { "msg_contents": "I notice that Michael's new BF animal gokiburi is failing in\nall the pre-v15 branches, though it's fine in v15 and HEAD.\nIt's evidently dying from ASLR effects because it's trying\nto build with EXEC_BACKEND on Linux: there's lots of\n\n2023-02-06 06:07:02.131 GMT [1503972] FATAL: could no...
[ { "msg_contents": "In deconstruct_distribute_oj_quals, when we've identified a commutable\nleft join which provides join clause with flexible semantics, we try to\ngenerate multiple versions of the join clause. Here we have the logic\nthat puts back any ojrelids that were removed from its min_righthand.\n\n ...
[ { "msg_contents": "Use appropriate wait event when sending data in the apply worker.\n\nCurrently, we reuse WAIT_EVENT_LOGICAL_PARALLEL_APPLY_STATE_CHANGE in the\napply worker while sending data to the parallel apply worker via a shared\nmemory queue. This is not appropriate as one won't be able to distinguish\...
[ { "msg_contents": "In cases where we have any clauses between two outer joins, these\nclauses should be treated as degenerate clauses in the upper OJ, and\nthey may prevent us from re-ordering the two outer joins. Previously we\nhave the flag 'delay_upper_joins' to help avoid the re-ordering in such\ncases.\n\...
[ { "msg_contents": "Hi All,\n\nI want to do TPCC benchmarking of postgresql with streaming data\nNow I am guessing the COPY command can be used for this purpose or is there\nany other option for this?\n\nCan someone point me towards a better option to do it in the best way?\n\nRegards,\nChandan\n\nHi All,I want...