threads
listlengths
1
2.99k
[ { "msg_contents": "Hello.\n\n# I'm not sure -hakcers is the place for this, though..\n\nI notieced that the official PG12-devel RPM pacakge for RHEL8 mandates\nccache being installed on building of an extension.\n\n$ grep ccache /usr/pgsql-12/lib/pgxs/src/Makefile.global \nCLANG = /usr/lib64/ccache/clang\n# cca...
[ { "msg_contents": "Hi,\n\nwe had a customer who ran pg_checksums on their v12 cluster and got a\nconfusing error:\n\n|pg_checksums: error: invalid segment number 0 in file name \"/PG-\n|Data/foo_12_data/pg_tblspc/16402/PG_10_201707211/16390/pg_internal.init\n|.10028\"\n\nTurns out the customer ran a pg_ugprade ...
[ { "msg_contents": "Using today's HEAD, the regression database cannot be dumped and\nrestored normally. Since the buildfarm isn't all red, I suppose\nit works in --binary-upgrade mode ... but if I just do\n\n$ make installcheck # to set up the test database\n$ pg_dump -Fc regression >r.dump\n$ createdb r2\n$ ...
[ { "msg_contents": "When I was working on the test_json stuff yesterday, I noticed that\nthere are some unexpected (by me at least) things installed when we do\nan MSVC build:\n\n$ ls -l bin| egrep 'regress|isolation'\n-rwxr-xr-x 1 pgrunner None 72192 Jan 30 07:51 isolationtester.exe\n-rwxr-xr-x 1 pgrunner Non...
[ { "msg_contents": "Hello,\n\nPlease find a one-liner patch in the attachment.\n\nThis patch fixes a size parameter of `pg_strncasecmp` which compared a\n\"string\" literal with a variable by passing a size of 5 while the \"string\"\nliteral has 6 bytes.\n\nThis issue can be observed with the following query (wh...
[ { "msg_contents": "Hi:\n\nI wrote a patch to erase the distinctClause if the result is unique by\ndefinition, I find this because a user switch this code from oracle\nto PG and find the performance is bad due to this, so I adapt pg for\nthis as well.\n\nThis patch doesn't work for a well-written SQL, but som...
[ { "msg_contents": "Eventually we find out that logical replication in the current version \nof Postgres works significantly slower on table with replica identity \nfull than old pglogical implementation.\n\nThe comment to RelationFindReplTupleSeq says:\n\n     Note that this stops on the first matching tuple.\n...
[ { "msg_contents": "I would like to introduce the ability to get object DDL (server-side) by introducing a new function with roughly the following prototype:\n\nget_ddl(regclass)\nRETURNS text\nLANGUAGE C STRICT PARALLEL SAFE;\n\nA previous conversation seemed to encourage the development of this feature\n\nhttp...
[ { "msg_contents": "We recently noticed that vacuum buffer counters wraparound in extreme\ncases, with ridiculous results. Example:\n\n2020-01-06 16:38:38.010 EST [45625-1] app= LOG: automatic vacuum of table \"somtab.sf.foobar\": index scans: 17\n pages: 0 removed, 207650641 remain, 0 skipped due to pi...
[ { "msg_contents": "Hi,\n\npg_current_wal_flush_lsn()pg_lsnGet current write-ahead log flush location\npg_current_wal_insert_lsn()pg_lsnGet current write-ahead log insert location\npg_current_wal_lsn()pg_lsnGet current write-ahead log write location\n\nI guess write is about how many bytes written in shared cach...
[ { "msg_contents": "Hello\n\nAt my current job, we have a lot of multi-tenant databases, thus with tables \ncontaining a tenant_id column. Such a column introduces a severe bias in \nstatistics estimation since any other FK in the next columns is very likely to \nhave a functional dependency on the tenant id. We...
[ { "msg_contents": "Prevent running pg_basebackup as root\n\nSimilarly to pg_upgrade, pg_ctl and initdb, a root user is able to use\n--version and --help, but cannot execute the actual operation to avoid\nthe creation of files with permissions incompatible with the\npostmaster.\n\nThis is a behavior change, so n...
[ { "msg_contents": "Hi,\n\nI've started a new separate thread from the previous long thread[1]\nfor internal key management system to PostgreSQL. As I mentioned in\nthe previous mail[2], we've decided to step back and focus on only\ninternal key management system for PG13. The internal key management\nsystem int...
[ { "msg_contents": "Other options are preserved by ALTER (and CLUSTER ON is and most obviously\nshould be preserved by CLUSTER's rewrite), so I think (SET) CLUSTER should be\npreserved by ALTER, too.\n\nAs far as I can see, this should be the responsibility of something in the\nvicinity of ATPostAlterTypeParse/R...
[ { "msg_contents": "Hello all,\n\nLike the title says, using \"gin_fuzzy_search_limit\" degrades speed when it\nhas a relatively low setting.\n\nWhat do I mean by \"relatively low\"? An example would be when a table with a\nGIN index has many millions of rows and a particular keyword search has\n1,000,000 possib...
[ { "msg_contents": "Hackers,\n\nI have implemented $subject, attached.\n\n\nWhile reviewing the \"New SQL counter statistics view (pg_stat_sql)” thread [1], I came across Andres’ comment\n\n> That's not really something in this patch, but a lot of this would be\n> better if we didn't internally have command tags...
[ { "msg_contents": "I noticed that \"ctid\" in the select list prevents an index only scan:\n\nCREATE TABLE ios (id bigint NOT NULL, val text NOT NULL);\n\nINSERT INTO ios SELECT i, i::text FROM generate_series(1, 100000) AS i;\n\nCREATE INDEX ON ios (id);\n\nVACUUM (ANALYZE) ios;\n\nEXPLAIN (VERBOSE, COSTS off)...
[ { "msg_contents": "Hi all,\n\nAs of [1], I have been playing with the compile time assertions that\nwe have for expressions, declarations and statements. And it happens\nthat it is visibly possible to consolidate the fallback\nimplementations for C and C++. Attached is the result of what I am\ngetting at. I ...
[ { "msg_contents": "Hello,\n\nHere are two more bugs I found by running the regression tests\nrepeatedly with dsm_create() hacked to fail at random.\n\n1. If find_or_make_matching_shared_tupledesc() fails, we leave behind\na null pointer in RecordCacheHash, so that a later lookup segfaults.\n\n2. If we do a re...
[ { "msg_contents": "This patch adds the possibility to use the \"header\" option when using COPY with\nthe text format. A todo entry was opened for this and I updated the tests and\nthe documentation.\n\nThis was previously discussed at https://www.postgresql.org/message-id/flat/CACfv%2BpJ31tesLvncJyP24quo8AE%2B...
[ { "msg_contents": "Add kqueue(2) support to the WaitEventSet API.\n\nUse kevent(2) to wait for events on the BSD family of operating\nsystems and macOS. This is similar to the epoll(2) support added\nfor Linux by commit 98a64d0bd.\n\nAuthor: Thomas Munro\nReviewed-by: Andres Freund, Marko Tiikkaja, Tom Lane\nT...
[ { "msg_contents": "Hi,\n\nWhen I compiled PostgreSQL with -DLWLOCK_STATS and tried to check\nthe statistics of light-weight locks, I observed that more than one\nstatistics entries were output *for the same backend process and\nthe same lwlock*. For example, I got the following four statistics\nwhen I checked h...
[ { "msg_contents": "I can't figure out why ExecGather/ExecGatherMerge do check whether num_workers\nis non-zero. I think the code would be a bit clearer if these tests were\nreplaced with Assert() statements, as the attached patch does.\n\nIn addition, if my assumptions are correct, I think that only Gather node...
[ { "msg_contents": "Hi,\n\nUser can create database objects such as functions into pg_catalog.\nBut if I'm not missing something, currently there is no\nstraightforward way to identify if the object is a user created object\nor a system object which is created during initdb. If we can do that\nuser will be able ...
[ { "msg_contents": "Hello pgsql-hackers,\n\nSubmitting a patch that would enable gathering of per-statement WAL\ngeneration statistics, similar to how it is done for buffer usage.\nCollected is the number of records added to WAL and number of WAL\nbytes written.\n\nThe data collected was found valuable to analyz...
[ { "msg_contents": "If the restore command claims to have succeeded, but fails to have created\na file with the right name (due to typos or escaping or quoting issues, for\nexample), no complaint is issued at the time, and it then fails later with\na relatively uninformative error message like \"could not locate...
[ { "msg_contents": "The following documentation comment has been logged on the website:\n\nPage: https://www.postgresql.org/docs/11/dml-returning.html\nDescription:\n\nIn the docs explaining RETURNING\nhttps://www.postgresql.org/docs/11/dml-returning.html there is no mention of\nthe fact that a nested sub-select...
[ { "msg_contents": "I sent earlier version of this a few times last year along with bunch of other\ndoc patches but it was never picked up. So maybe I'll try send one at a time\nin more digestible chunks.\nhttps://www.postgresql.org/message-id/flat/20190427025647.GD3925%40telsasoft.com#e1731c33455145eadc1158042...
[ { "msg_contents": "Hi,\n\nThe ringbuffers we use for seqscans, vacuum, copy etc can cause very\ndrastic slowdowns (see e.g. [1]), an can cause some workloads to\npractically never end up utilizing shared buffers. ETL workloads\ne.g. regularly fight with that problem.\n\nWhile I think there's a number of improve...
[ { "msg_contents": "Hi,\n\nI am testing performance both PG12 and PG11.\nI found the case of performance degradation in PG12.\n\nAmit Langote help me to analyze and to create patch.\nThanks!\n\n* environment\n\nCentOS Linux release 7.6.1810 (Core)\npostgresql 12.1\npostgresql 11.6\n\n* postgresql.conf\n\nshared_...
[ { "msg_contents": "Hi,\n\nAttached fixes $subject.\n\nThanks,\nAmit", "msg_date": "Thu, 6 Feb 2020 15:11:01 +0900", "msg_from": "Amit Langote <amitlangote09@gmail.com>", "msg_from_op": true, "msg_subject": "typo in set_rel_consider_parallel()" }, { "msg_contents": "On Thu, Feb 6, 2020 at...
[ { "msg_contents": "Buildfarm runs have triggered the assertion at the end of\nSyncRepGetSyncStandbysPriority():\n\n sysname │ snapshot │ branch │ bfurl\n──────────┼─────────────────────┼───────────────┼────────────────────────────────────────────────...
[ { "msg_contents": "During logical decoding, we send replication_origin and\nreplication_origin_lsn when we decode commit. In pgoutput_begin_txn,\nwe send values for these two but never used on the subscriber side.\nThough we have provided a function (logicalrep_read_origin) to read\nthese two values but that i...
[ { "msg_contents": "Hello,\n\nContinuing the work done in commits 0dc8ead4 and c24dcd0c, here are a\nfew more places where we could throw away some code by switching to\npg_pread() and pg_pwrite().", "msg_date": "Fri, 7 Feb 2020 12:38:27 +1300", "msg_from": "Thomas Munro <thomas.munro@gmail.com>", "m...
[ { "msg_contents": "Hello Postgres hackers,\r\nThe below problem occurs in Postgres versions 11, 10, and 9.6. However, it doesn’t occur since Postgres version 12, since the commit [6] to add basic infrastructure for 64-bit transaction IDs indirectly fixed it.\r\nProblem\r\nThe replica sends an incorrect epoch in...
[ { "msg_contents": "Hello,\n\nHere's a rebase of a refactoring patch that got lost behind a filing\ncabinet on another thread even though there seemed to be some\nagreement that we probably want something like this[1]. It introduces\na new type SegmentNumber, instead of using BlockNumber to represent\nsegment n...
[ { "msg_contents": "pgxs.mk assumes that if $(EXTENSION) is set, a file\n$(EXTENSION).control must exist in the $(srcdir).\n\nExtensions that need to support multiple Pg versions, multiple\nvariants of the extension, etc may need to template their extension\ncontrol file. PGXS's assumption prevents those extensi...
[ { "msg_contents": "Hello Hackers,\n\nWhile working on some issue in logical decoding, I found some\ninconsistencies in the comment for defining max_cached_tuplebufs in\nreorderbuffer.c. It only exists till PG10 because after that the\ndefinition got removed by the generational memory allocator patch. The\nvaria...
[ { "msg_contents": "Hello\n\nPatch ba79cb5 (for full discussion see [1]) introduces a feature to log \nbind parameter values on error,\nwhich greatly helps to reproduce errors artificially having only server \nlog -- thanks everyone who\nreviewed and improved it!\n\nHowever, it cuts the values, as some of the re...
[ { "msg_contents": "Just saw this in a PG 11.6 cluster starting a recovery:\n\n2020-02-07 10:45:40 EST FATAL: 42501: could not open file\n\"backup_label\": Permission denied\n2020-02-07 10:45:40 EST LOCATION: fsync_fname_ext, fd.c:3531\n\nThe label file was written with mode 0400 by a script that got\nthe cont...
[ { "msg_contents": "Late last year, I did some work to make it possible to use simplehash\nin frontend code.[1] However, a hash table is not much good unless one\nalso has some hash functions that one can use to hash the keys that\nneed to be inserted into that hash table. I initially thought that\nsolving this ...
[ { "msg_contents": "See\n\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=388d4351f78dfa6082922074127d496e6f525033\n\n(Note: these cover through 9710d3d4a, but not the additional partitioning\nfix I see Alvaro just pushed.)\n\nPlease send comments before Sunday.\n\n\t\t\tregards, tom lane\n\n...
[ { "msg_contents": "Hi,\nI am migrating my applications that use postgres client from msvc 2010\n(32bits) to msvc 2019 (32 bits).\nCompilation using msvc 2019 (64 bits), works very well.\nBut the build using msvc 2019 (32 bit) is not working.\nThe 32-bit Platform variable is set to x86, resulting in the first er...
[ { "msg_contents": "Hi hackers, attached is a proof of concept patch adding a new base type\ncalled \"rational\" to represent fractions. It includes arithmetic,\nsimplification, conversion to/from float, finding intermediates with a\nstern-brocot tree, custom aggregates, and btree/hash indices.\n\nThe primary mo...
[ { "msg_contents": "Forking this thread\nhttps://www.postgresql.org/message-id/20181227132417.xe3oagawina7775b%40alvherre.pgsql\n\nOn Wed, Dec 26, 2018 at 01:09:39PM -0500, Robert Haas wrote:\n> ALTER TABLE already has a lot of logic that is oriented towards being\n> able to do multiple things at the same time. ...
[ { "msg_contents": "Hi,\n\nWhile jumping around partically decoded xacts questions [1], I've read\nthrough the copy replication slots code (9f06d79ef) and found a couple\nof issues.\n\n1) It seems quite reckless to me to dive into\nDecodingContextFindStartpoint without actual WAL reservation (donors\nslot restar...
[ { "msg_contents": "Hackers,\n\n     Musing some other date-related things I stumbled upon the thought \nthat naming the upcoming release PostgreSQL 20 might be preferrable to \nthe current/expected \"PostgreSQL 13\".\n\n\nCons:\n\n  * Discontinuity in versions. 12 -> 20.  Now that we have the precedent \nof 9.6...
[ { "msg_contents": "I believe the 2nd hunk should reset node->hashnulls, rather than reset\n->hashtable a 2nd time:\n\n@@ -505,7 +505,10 @@ buildSubPlanHash(SubPlanState *node, ExprContext *econtext)\n if (nbuckets < 1)\n nbuckets = 1;\n \n- node->hashtable = BuildTupleHashTable(node-...
[ { "msg_contents": "Hi,\n\nI found that pg_basebackup -F plain -R *overwrites* postgresql.auto.conf\ntaken from the primary server with new primary_conninfo setting,\nwhile pg_basebackup -F tar -R just *appends* it into the file. I think that\nthis is a bug and pg_basebackup -F plain -R should *append* the setti...
[ { "msg_contents": "Hi hacker,\n\nCurrently we only print block number and relation path when checksum check\nfails. See example below:\n\nERROR: invalid page in block 333571 of relation base/65959/656195\n\nDBA complains that she needs additional work to calculate which physical\nfile is broken, since one physi...
[ { "msg_contents": "Hello, hackers.\n\nYesterday I have noticed that in simple protocol mode snapshot is\ntaken twice - first time for parsing/analyze and later for execution.\n\nI was thinking it is a great idea to reuse the same snapshot. After\nsome time (not short) I was able to find this thread from 2011 wi...
[ { "msg_contents": "Hello,\n\nMaybe I'm wrong, but anychar_typmodin() of\nsrc/backend/utils/adt/varchar.c of PostgreSQL 12.1 does not pfree()s\nthe memory allocated by ArrayGetIntegerTypmods(). Probably, I'm\nmissing something. Could anybody please clarify on that?\n\nThanks!\n\n\n", "msg_date": "Mon, 10 Feb...
[ { "msg_contents": "Hi,\n\nAttached is a draft for the 2020-02-13 press release. I would appreciate\nany review for accuracy, notable omissions, and the inevitable typos I\ntend to have on drafts (even though I do run it through a spell\nchecker). There were over 75 fixes, so paring the list down was a bit\ntric...
[ { "msg_contents": "Hi!\n\nIn Postgres Pro we have complaints about too large core dumps. The\npossible way to reduce code dump size is to skip some information.\nFrequently shared buffers is most long memory segment in core dump.\nFor sure, contents of shared buffers is required for discovering many\nof bugs. ...
[ { "msg_contents": "Hi,\n\nI started this as a reply to\nhttps://www.postgresql.org/message-id/CAA4eK1JMgUfiTdAgr9k3nA4cdKvvruousKBg7FWTDNzQgBpOZA%40mail.gmail.com\nbut the email seemed to morph into distinct topic that I thought it\nbest to separate out.\n\nWe've had a number of cases where heavyweight locks tu...
[ { "msg_contents": "Hi,\n\nI get the error `can not find file \"\"` when I hack the bgworkers, the\nroot case is a zero initialized bgworker was registered. It's not\ninteresting, but I'd like to refine the error message a bit.\n\nThanks.\n\n-- \nAdam Lee", "msg_date": "Tue, 11 Feb 2020 14:03:27 +0800", ...
[ { "msg_contents": "Example:\n\ninitdb --help\n...\nReport bugs to <pgsql-bugs@lists.postgresql.org>.\nPostgreSQL home page: <https://www.postgresql.org/>\n\nI think this is useful. You see this nowadays in other packages as \nwell. See also \n<https://www.gnu.org/prep/standards/standards.html#g_t_002d_002dhel...
[ { "msg_contents": "Continuing the discussion from [0], there are still a number of fsync() \ncalls in client programs that are unchecked or where errors are treated \nnon-fatally.\n\nDigging around through the call stack, I think changing fsync_fname() to \njust call exit(1) on errors instead of proceeding woul...
[ { "msg_contents": "Hi\nIn the Oracle world we use the product \"golden gate\" to execute transactions from a source database (Oracle, Mysql) to a PostgreSQL instance.\nThis allows 2 Oracle and PostgreSQL databases to be updated at the same time in real time.\nI would like to know if there is an equivalent open-...
[ { "msg_contents": "This patch allow to use custom postgres launcher for tests (tap&regress)\nby setting environment variable PGLAUNCHER.\n\nOther known methods (like: https://wiki.postgresql.org/wiki/Valgrind)\nrequires\nto perform installation, build system modifications, executable replacement\netc...\n\nAnd...
[ { "msg_contents": "Hi Postgres Developers,\n\nWe are currently integrating LSM-tree based storage engine RocksDB into\nPostgres. I am wondering is there any function that serialize data types in\nmemory-comparable format, similar to MySQL and MariaDB. With that kind of\nfunction, we can directly store the seria...
[ { "msg_contents": "Hi,\n\nI noticed this when tightening up some races for [1] I noticed that the\nway speculative locks are displayed in pg_locks is completely bogus. As\npg_locks has no branch specific to speculative locks, the object etc\npath is used:\n\t\t\tcase LOCKTAG_OBJECT:\n\t\t\tcase LOCKTAG_USERLOCK...
[ { "msg_contents": "There is a current discussion off-list about what should happen when a\nCOMMIT is issued for a transaction that cannot be committed for whatever\nreason. PostgreSQL returns ROLLBACK as command tag but otherwise succeeds.\n\nHere is an excerpt of Section 17.7 <commit statement> that I feel is...
[ { "msg_contents": "Hi,\n\nIn commit 3eb77eba we made it possible for any subsystem that wants a\nfile to be flushed as part of the next checkpoint to ask the\ncheckpointer to do that, as previously only md.c could do.\n\nIn the past, foreground CLOG flush stalls were a problem, but then\ncommit 33aaa139 cranked...
[ { "msg_contents": "Continuing the discussion in [0], here is a patch that allows parameter \nreferences in the arguments of the EXECUTE command. The main purpose is \nsubmitting protocol-level parameters, but the added regression test case \nshows another way to exercise it.\n\nWhat's confusing is that the cod...
[ { "msg_contents": "Hi,\nIn postgresGetForeignJoinPaths(), I see\n\n /* Estimate costs for bare join relation */\n estimate_path_cost_size(root, joinrel, NIL, NIL, NULL,\n &rows, &width, &startup_cost, &total_cost);\n /* Now update this information in the joinrel */\n joinre...
[ { "msg_contents": "Hi all,\n\nToday digging into a customer issue about errors in pg_restore I realized\nthat pg_restore dispatch a worker to restore EventTrigger\nduring restore_toc_entries_parallel. IMHO EventTriggers should be restored\nduring the restore_toc_entries_postfork in serial mode.\n\nFor example t...
[ { "msg_contents": "Hi,\n\nWhen I saw pg_stat_activity.wait_event while pg_basebackup -X none\nis waiting for WAL archiving to finish, it was either NULL or\nCheckpointDone. I think this is confusing. What about introducing\nnew wait_event like WAIT_EVENT_BACKUP_WAIT_WAL_ARCHIVE\n(BackupWaitWalArchive) and repor...
[ { "msg_contents": "Forking this thread for two tangential patches which I think are more\nworthwhile than the original topic's patch.\nhttps://www.postgresql.org/message-id/20200207143935.GP403%40telsasoft.com\n\nIs there a better place to implement assertion from 0002 ?\n\nOn Fri, Feb 07, 2020 at 08:39:35AM -0...
[ { "msg_contents": "Hi,\nCoverity detected a dead code in the src / interfaces / libpq / fe-auth.c\nfile, to correct it, a simplification was made and the oom_error goto was\nremoved, since it is clearly redundant and its presence can be confusing.\n\nThe second part of the patch refers to the file src / interfa...
[ { "msg_contents": "Attached is a demo patch that adds a placeholder %b for log_line_prefix \n(not in the default setting) that contains the backend type, the same \nthat you see in pg_stat_activity and in the ps status. I would have \nfound this occasionally useful when analyzing logs, especially if you \nhave...
[ { "msg_contents": "When making build system changes that risk breaking the MSVC build \nsystem, it's useful to be able to run the part of the MSVC build tools \nthat read the makefiles and produce the project files under a \nnot-Windows platform. This part does not really depend on anything \nparticular to Win...
[ { "msg_contents": "Hello,\n\nCurrently the documentation says that one can put \"a list of table \nexpressions\"\nafter FROM in UPDATE or after USING in DELETE.\nHowever, \"table expression\" is defined as a complex of\nFROM, WHERE, GROUP BY and HAVING clauses [1].\nThe thing one can list in the FROM clause in ...
[ { "msg_contents": "I've noticed that convert_and_check_filename() is always passed false for the\n\"logAllowed\" argument - someone probably forgot to remove the argument when it\nwas decided that log files are no longer accepted. If the argument was removed,\nthe function would become a bit simpler, see the pa...
[ { "msg_contents": "Hi,\n\nTRUNCATE command on the temporary tables of other sessions fails\nwith the following error. This behavior looks expected to me.\n\n ERROR: cannot truncate temporary tables of other sessions\n\nHowever I found that LOCK TABLE and DROP TABLE commands on\nthe temporary tables of othe...
[ { "msg_contents": "GCC reports various instances of\n\n warning: cast to pointer from integer of different size \n[-Wint-to-pointer-cast]\n warning: cast from pointer to integer of different size \n[-Wpointer-to-int-cast]\n\nand MSVC equivalently\n\n warning C4312: 'type cast': conversion from 'int'...
[ { "msg_contents": "pg_regress' --load-language option has been unused in the core code since\nwe introduced extensions in 9.1; all callers now use --load-extension\ninstead. It's a fairly safe bet that it's never been used by any non-core\ncode, since it could only work for languages listed in pg_pltemplate.\n...
[ { "msg_contents": "pg_dump/restore fail to restore the ownership of an extension correctly:\nin practice it'll always end up owned by whoever runs the restore\nscript. We've sort of averted our eyes from that up to now, because\nit's not a big deal in a world where most extensions have to be\nsuperuser-owned a...
[ { "msg_contents": "Hi all,\n\ncreatedb has a couple of issues with its quoting. For example take\nthat, which can be confusing:\n$ createdb --lc-ctype=\"en_US.UTF-8';create table aa();select '1\" popo\ncreatedb: error: database creation failed: ERROR: CREATE DATABASE\ncannot run inside a transaction block\n\n...
[ { "msg_contents": "This work is to parallelize the copy command and in particular \"Copy\n<table_name> from 'filename' Where <condition>;\" command.\n\nBefore going into how and what portion of 'copy command' processing we\ncan parallelize, let us see in brief what are the top-level operations\nwe perform while...
[ { "msg_contents": "[ Starting a new thread about this, since the old one about GUC reporting\nis only marginally related to this point ... if it were more so, maybe I'd\nhave found it when I went looking for it yesterday ]\n\nRobert Haas <robertmhaas@gmail.com> writes:\n> On Tue, Nov 5, 2019 at 10:02 AM Alvaro ...
[ { "msg_contents": "In general, the variable LN_S is 'ln -s', however, LN_S changes to 'cp\n-pR' if configure finds the file system does not support symbolic\nlinks.\n\nI was playing with 'ln' for some other reason where I symbolic linked\nit to '/bin/false'. That revealed the failure for\nsrc/backend/Makefile. ...
[ { "msg_contents": "Execute this:\n\nselect jsonb_pretty(jsonb_build_object(\n 'a'::varchar, 1.7::numeric,\n 'b'::varchar, 'dog'::varchar,\n 'c'::varchar, true::boolean\n ))\n\nIt produces the result that I expect:\n\n { +\n \"a\": 1.7, +\n \"b\": \"dog\",+\n \"c\": true +\n }\n\nN...
[ { "msg_contents": "Hi,\n\nFeel free to send out the email blast.\n\nThere are a number of other channels. postgres slack, postgres mailing\nlists, @PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, twitter\nwith Postgres tag\n\nCheers,\n\n\nDave Cramer\n\n\nOn Sat, 15 Feb 2020 at 19:44, 'Meetup Messages...
[ { "msg_contents": "Hi\n\nwhen I do some profiling of plpgsql, usually I surprised how significant\noverhead has expression execution. Any calculations are very slow.\n\nThis is not typical example of plpgsql, but it shows cleanly where is a\noverhead\n\nCREATE OR REPLACE FUNCTION public.foo()\n RETURNS void\n L...
[ { "msg_contents": "Forking old, long thread:\nhttps://www.postgresql.org/message-id/36712441546604286%40sas1-890ba5c2334a.qloud-c.yandex.net\nOn Fri, Jan 04, 2019 at 03:18:06PM +0300, Sergei Kornilov wrote:\n> About reindex invalid indexes - i found one good question in archives [1]: how about toast indexes?\n>...
[ { "msg_contents": "Hello,\n\n1. I was told that M$ SQLServer provides huge performance deltas over \nPostgreSQL when dealing with index-unaligned queries :\ncreate index i on t (a,b, c);\nselect * from t where b=... and c=...;\nColumnar storage has been tried by various companies, CitusData, \nEnterpriseDB, 2nd...
[ { "msg_contents": "Dear Hackers.\n\nFor the current PostgreSQL, the toast data and some WAL data (page\ndata) are compressed using the LZ-based algorithm.\nFor PostgreSQL, two types of strategy(PGLZ_strategy_default,\nPGLZ_strategy_always) are provided by default,\nand only used of PGLZ_strategy_default(default...
[ { "msg_contents": "Hi,\n\nI propose this small fix for 27.4. Progress Reporting:\n\n- all of its partitions are also recursively analyzed as also mentioned on\n+ all of its partitions are also recursively analyzed as also mentioned in\n <xref linkend=\"sql-analyze\"/>.\n\nNote the last word: \"in\" so...
[ { "msg_contents": "Hi all,\n\nDuring testing recovery, I realized that it's possible that a relation\nfile is orphaned (probably) forever if postgres crashes during\nexecuting a transaction that creates a new relation and loads data.\n\nAfter postgres crashing, the relation is recovered during crash\nrecovery a...
[ { "msg_contents": "When applying the recent \"the the\" comment fixup to downstream docs I happened\nto notice other cases of duplicated words in comments. The attached trivial\ndiff removes the few that I came across (the last one was perhaps correct but\nif so seemed strange to a non-native speaker).\n\nchee...
[ { "msg_contents": "We've had multiple previous discussions of $SUBJECT (eg [1][2]),\nwithout any resolution of what to do exactly. Thinking about this\nsome more, I had an idea that I don't think has been discussed.\nTo wit:\n\n1. On platforms where Python 2.x is still supported, recommend that\npackagers cont...
[ { "msg_contents": "Dear Hackers\n\nI've been working on an extension and using SPI to execute some queries. \nI am in a situation where I have the option to issue multiple queries \nconcurrently, ideally under same snapshot and transaction. In short, I \nam achieving this by creating multiple dynamic background...
[ { "msg_contents": "As mentioned in https://postgr.es/m/20191231194759.GA24692@alvherre.pgsql\nI propose to add a new column to pg_trigger, which allows us to remove a\npg_depend scan when cloning triggers when adding/attaching partitions.\n(It's not that I think the scan is a performance problem, but rather\nth...
[ { "msg_contents": "ALTER ... DEPENDS ON EXTENSION (dependencies of type 'x' on an\nextension) was found to have a few problems. One was fixed as\nCVE-2020-1720. Other issues:\n\n* pg_dump does not reproduce database state correctly.\n The attached 0000 fixes it.\n\n* More than one 'x' dependencies are allowe...
[ { "msg_contents": "Hi,\n\nRecoveryWalAll and RecoveryWalStream wait events are documented as follows.\n\n RecoveryWalAll\n Waiting for WAL from any kind of source (local, archive or stream) at recovery.\n\n RecoveryWalStream\n Waiting for WAL from a stream at recovery.\n\nBut as far as I read th...
[ { "msg_contents": "Hello.\n\nI found it quite annoying that it stops with complaining as \"unused\ndefines\" during repeated execution of build.pl. The subroutine\nGenerateConfigHeader prepares %defines_copy before checking the\nnewness of $config_header and even if it decides not to generate new\none, the foll...
[ { "msg_contents": "Hi all,\n\nWhen recovery conflicts happen on the streaming replication standby,\nthe wait event of startup process is null when\nmax_standby_streaming_delay = 0 (to be exact, when the limit time\ncalculated by max_standby_streaming_delay is behind the last WAL data\nreceipt time is behind). M...
[ { "msg_contents": "after upgrade Postgres to v9.6.11 from v9.6.9 DB running out of memory issues no world load has changed before and after upgrade. \n\nspec: RAM 16gb,4vCore\nAny bug reported like this or suggestions on how to fix this issue? I appreciate the response..!! \n\n\n\n\nI could see below error logs...
[ { "msg_contents": "Hello,\n\nI noticed that variables in PL/Python are not released at the end of procedure.\nDoes it expected behavior?\n\nSee this example below:\nhttps://github.com/heterodb/pg-strom/blob/master/test/input/arrow_python.source#L53\n\nThis PL/Python function maps a GPU buffer as cupy.ndarray ob...