threads
listlengths
1
2.99k
[ { "msg_contents": "Hi all,\n\n\n\nHow to fetch certain number of tuples from a postgres table.\n\n\n\nSame I am doing in oracle using following lines by setting prefetch attribute.\n\n\n\nFor oracle\n// Prepare query\n if( OCIStmtPrepare( myOciStatement, myOciError, (text *)aSqlStatement,\n// Get statement t...
[ { "msg_contents": "I'm not sure if this can be considered a bug or not, but it is perhaps\nunexpected. I found that when using a view that is simply select * from\ntable, then doing INSERT ... ON CONFLICT ON CONSTRAINT constraint_name on\nthat view, it does not find the constraint and errors out. But it does\...
[ { "msg_contents": "Hello,\n\nJehan-Guillaume (in Cc) reported me today a problem with logical\nreplication, where in case of network issue the walsender is correctly\nterminating at the given wal_sender_timeout but the logical worker\nkept waiting indefinitely.\n\nThe issue is apparently a simple thinko, the ti...
[ { "msg_contents": "Greetings,\n\nlibpq since PostgreSQL-12 has stricter checks for integer values in\nconnection parameters. They were introduced by commit\nhttps://github.com/postgres/postgres/commit/e7a2217978d9cbb2149bfcb4ef1e45716cfcbefb\n.\n\nHowever in case of \"connect_timeout\" such an invalid integer v...
[ { "msg_contents": "While reviewing the partitionwise-join patch, I noticed $Subject,ie,\nthis in create_list_bounds():\n\n /*\n * Never put a null into the values array, flag instead for\n * the code further down below where we construct the actual\n ...
[ { "msg_contents": "Attached is a patch to implement change badges in our documentation.\n\nWhat's a change badge? It's my term for a visual cue in the documentation\nused to indicate that the nearby section of documentation is new in this\nversion or otherwise changed from the previous version.\n\nOne example o...
[ { "msg_contents": "I've been struggling with how we're going to upgrade launchpad.net to\nPostgreSQL 12 or newer (we're currently on 10). We're one of those\napplications that deliberately uses CTEs as optimization fences in a few\ndifficult places. The provision of the MATERIALIZED keyword in 12 is\ngreat, b...
[ { "msg_contents": "Hi Hackers,\n\nBy optimising our application I stumbled over the join quals used very often in our application.\nIn general this concerns datasets, which are subdivided into chunks, like years, seasons (here half a year), multiple tenants in OLTP system etc.\nIn these cases many tables are jo...
[ { "msg_contents": "Hello,\n\nI am one of the primary maintainers of Pleroma, a federated social\nnetworking application written in Elixir, which uses PostgreSQL in\nways that may be considered outside the typical usage scenarios for\nPostgreSQL.\n\nNamely, we leverage JSONB heavily as a backing store for JSON-L...
[ { "msg_contents": "I am not sure if this causes any potential problems or not, but for\nconsistency of code seems we are missing below. All other places in code\nwhere sigsetjmp() exists for top level handling has error_context_stack set\nto NULL.\n\ndiff --git a/src/backend/postmaster/autovacuum.c\nb/src/backe...
[ { "msg_contents": "For all ppc compilers, implement compare_exchange and fetch_add with asm.\n\nThis is more like how we handle s_lock.h and arch-x86.h.\n\nReviewed by Tom Lane.\n\nDiscussion: https://postgr.es/m/20191005173400.GA3979129@rfd.leadboat.com\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttps://gi...
[ { "msg_contents": "Hello,\n\n\nThe attached trivial patch fixes the initialization of the fake unlogged LSN. Currently, BootstrapXLOG() in initdb sets the initial fake unlogged LSN to FirstNormalUnloggedLSN (=1000), but the recovery and pg_resetwal sets it to 1. The patch modifies the latter two cases to matc...
[ { "msg_contents": "Hello hackers,\n\nI've noticed that the createuser utility supports two undocumented\noptions (--adduser, --no-adduser), that became obsolete in 2005.\nI believe that their existence should come to end someday (maybe\ntoday?). The patch to remove them is attached.\n\nBest regards.\nAlexander"...
[ { "msg_contents": "Hello,\n\nThis patch propose a new way to sample statement to logs.\n\nAs a reminder, this feature was committed in PG12[1] then reverted[2] after the\nproposition of log_statement_sample_limit[3]\n\nThe first implementation added a new GUC to sample statement logged by\nlog_min_duration_stat...
[ { "msg_contents": "Here’s a cut-down version of Umair Shahid’s blog post here:\n\nhttps://www.2ndquadrant.com/en/blog/postgresql-11-server-side-procedures-part-1/ <https://www.2ndquadrant.com/en/blog/postgresql-11-server-side-procedures-part-1/>\n__________\n\ncreate table t(k int primary key, v int not null);\...
[ { "msg_contents": "While reviewing Pavel's patch for a new option in Drop Database\ncommand [1], I noticed that the check for CountDBSubscriptions in\ndropdb() is done after we kill the autovac workers and allowed other\nbackends to exit via CountOtherDBBackends. Now, if there are already\nactive subscritions ...
[ { "msg_contents": "Hi,\n\nI found that the argument name of XLogFileInit() is wrong in its comment.\nAttached is the patch that fixes that typo.\n\nRegards,\n\n-- \nFujii Masao", "msg_date": "Mon, 21 Oct 2019 15:57:43 +0900", "msg_from": "Fujii Masao <masao.fujii@gmail.com>", "msg_from_op": true, ...
[ { "msg_contents": "Hi hackers,\nI found this issue when restart standby node and then try to connect it.\nIt return \"psql: FATAL: the database system is starting up\".\n\n\nThe steps to reproduce this issue.\n1. Create a session to run uncommit_trans.sql\n2. Create the other session to do checkpoint\n3. Re...
[ { "msg_contents": "Hi all,\n\nWhile digging into the issues reported lately about REINDEX\nCONCURRENTLY, I have bumped into the following, independent, issue:\n/* Now open the relation of the new index, a lock is also needed on it */\nnewIndexRel = index_open(indexId, ShareUpdateExclusiveLock)\n\nIn this code p...
[ { "msg_contents": "\nBowerbird (Visual Studio 2017 / Windows 10 pro) just had a failure on\nthe pg_ctl test :\n<https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=bowerbird&dt=2019-10-21%2011%3A50%3A21>\n\n\nThere was a similar failure 17 days ago.\n\n\nI surmise that what's happening here is that the test...
[ { "msg_contents": "After setting up logical replication of a slowly changing table using the\nbuilt in pub/sub facility, I noticed way more network traffic than made\nsense. Looking into I see that every transaction in that database on the\nmaster gets sent to the replica. 99.999+% of them are empty transacti...
[ { "msg_contents": "Hello,\n\nI ran across an EXPLAIN plan and had some questions about some of its\ndetails. The BUFFERS docs say\n\n>The number of blocks shown for an upper-level node includes those used by\nall its child nodes.\n\nI initially assumed this would be cumulative, but I realized it's probably\nnot...
[ { "msg_contents": "Hello,\n\nWhile developing pgbench to allow partitioned tabled, I reproduced the \nstring management style used in the corresponding functions, but was \npretty unhappy with that kind of pattern:\n\n \tsnprintf(buf + strlen(buf), sizeof(buf) - strlen(buf), ...)\n\nHowever adding a feature is ...
[ { "msg_contents": "Hi,\n\nWhen I run pg_basebackup in v12 against v11, standby server fails to connecto\nprimary with the following error:\n\n2019-10-22 09:28:23.673 UTC [2375] FATAL: could not connect to the primary\nserver: invalid connection option \"gssencmode\"\n\nWhen I remove this from recovery.conf, it...
[ { "msg_contents": "Hello,\n\nI originally reported this in pgsql-bugs [0], but there wasn't much\nfeedback there, so moving the discussion here. When using JSON, YAML, or\nXML-format EXPLAIN on a plan that uses a parallelized sort, the Sort nodes\nlist two different entries for \"Workers\", one for the sort-rel...
[ { "msg_contents": "Hello\n\nTo benchmark with tpcb model, I tried to create a foreign key in the partitioned history table, but backend process killed by OOM.\nthe number of partitions is 8192. I tried in master(commit: ad4b7aeb84).\n\nI did the same thing in another server which has 200GB memory, but creating ...
[ { "msg_contents": "Hi,\n\nWhile working on some slides explaining EXPLAIN, I couldn't resist the\nurge to add the missing $SUBJECT. The attached 0001 patch gives the\nfollowing:\n\nGather ... time=0.146..33.077 rows=1 loops=1)\n Workers Planned: 2\n Workers Launched: 2\n Buffers: shared hit=4425\n -> Par...
[ { "msg_contents": "Hi all ,\n\nTemporal table is one of the main new features added in sql standard 2011.\n From that I will like to implement system versioned temporal table which\nallows to keep past and present data so old data can be queried. Am propose\nto implement it like below\n\nCREATE\n\nIn create tab...
[ { "msg_contents": "Hi,\n\nTL;DR: Some performance figures at the end. Lots of details before.\n\n\nFor a while I've been on and off (unfortunately more the latter), been\nhacking on improving expression evaluation further.\n\nThis is motivated by mainly two factors:\na) Expression evaluation is still often a ve...
[ { "msg_contents": "Hi,\n\nI tried to install PostgreSQL 12 with the \"Norwegian Bokmål, Norway\" locale in hope that it would, among other things, provide proper support for Norwegian characters out-of-the-box.\n\nBut initcluster.vbs appear to fail during post-install because the locale name contains a Norwegia...
[ { "msg_contents": "Hello,\n\nI noticed that our existing 2-param json{,b}_object functions take \ntext[] for both keys and values, so they are only able to build \none-layer-deep JSON objects. I'm interested in adding json{,b}_object \nfunctions that take text[] for the keys and json{,b}[] for the values. \nIt ...
[ { "msg_contents": "We have primary and hot standby databases running Postgres 11.3 inside Docker, with their data directories bind-mounted to a reflink-enabled XFS filesystem. The VM is running Debian's 4.19.16-1~bpo9+1 kernel inside an AWS EC2 instance.\n\nI've seen TOAST corruption in one of the standby datab...
[ { "msg_contents": "Currently I see the vacuum behavior for a table is that, even if a long\nrunning query on a different table is executing in another read committed\ntransaction.\nThat vacuum in the 1st transaction skips the dead rows until the long\nrunning query finishes.\nWhy that is the case, On same table...
[ { "msg_contents": "Hi all,\n\nWhile digging into a separate issue, I have found a new bug with\nREINDEX CONCURRENTLY. Once the new index is built and validated,\na couple of things are done at the swap phase, like switching\nconstraints, comments, and dependencies. The current code moves all\nthe dependency e...
[ { "msg_contents": "Hi,\n\nI recently discovered two possible bugs about synchronous replication.\n\n1. SyncRepCleanupAtProcExit may delete an element that has been deleted\nSyncRepCleanupAtProcExit first checks whether the queue is detached, if it is not detached, \nacquires the SyncRepLock lock and deletes it....
[ { "msg_contents": "Today, I committed a patch (dddf4cdc) to reorder some of the file\nheader inclusions and buildfarm members prairiedog and locust failed\nas a result of that. The reason turns out to be that we have defined\na bool in pgtypeslib_extern.h and that definition is different from\nwhat we define i...
[ { "msg_contents": "Dear all,\n\nWe stumbled upon a few cases in which retrieving information from the\nforeign server may turn pretty useful before creating any foreign\ntable, especially info related to the catalog. E.g: a list of schemas\nor tables the user has access to.\n\nI thought of using dblink for it, ...
[ { "msg_contents": "Hi list,\n\nWhen investigating for the bug reported in thread \"logical replication -\nnegative bitmapset member not allowed\", I found a way to seg fault postgresql\nonly when cassert is enabled.\n\nSee the scenario in attachment.\n\nWhen executed against binaries compiled with --enable-cass...
[ { "msg_contents": "Under MinGW, when compiling the ecpg test files, you get these warnings:\n\nsqlda.pgc: In function 'dump_sqlda':\nsqlda.pgc:44:11: warning: unknown conversion type character 'l' in format [-Wformat=]\n printf(\"name sqlda descriptor: '%s' value %lld\\n\", sqlda->sqlvar[i].sqlname.data, *(l...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 16079\nLogged by: Yudhveer Kandukuri\nEmail address: k.yudhveer@gmail.com\nPostgreSQL version: 10.10\nOperating system: UBUNTU\nDescription: \n\nAs your team mentioned that LDAP process is not secu...
[ { "msg_contents": "Hi, \n\nI found a missing column value in the pg_stat_progress_cluster view document.\nI read the src/backend/catalog/system_views.sql file, there seems to be a possibility that 'writing new heap' is output in the 'phase' column.\nThe attached patch adds a description of the 'writing new heap...
[ { "msg_contents": "It seems to me that using IDENT_USERNAME_MAX for peer authentication is\nsome kind of historical leftover and not really appropriate or useful,\nso I propose the attached cleanup.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote D...
[ { "msg_contents": "Hi,\n\nOne of the function apply_typmod in numeric.c file present within #if 0.\nThis is like this for many years.\nI felt this can be removed.\nAttached patch contains the changes to handle removal of apply_typmod\npresent in #if 0.\nThoughts?\n\nRegards,\nVignesh\nEnterpriseDB: http://www.e...
[ { "msg_contents": "When the user modifies the REPLICA IDENTIFY field type, the logical \nreplication settings are lost.\n\nFor example:\n\npostgres=# \\d+ t1\n Table \"public.t1\"\n Column | Type | Collation | Nullable | Default | Storage | Stats \ntarget | Description\n-...
[ { "msg_contents": "Hi.\n\nI have noticed that it would be cool to use '==' in place of 'IS NOT\nDISTICT FROM'\n\nWhat do you think about this crazy idea?\n\n-- \nBest regards,\nEugen Konkov\n\n\n\n", "msg_date": "Sat, 26 Oct 2019 18:41:10 +0300", "msg_from": "Eugen Konkov <kes-kes@yandex.ru>", "ms...
[ { "msg_contents": "At pgconf.eu, someone whose name I've forgotten pointed out to me\nthat this doesn't work:\n\nregression=# select (row(1, 2.0)).f1;\nERROR: could not identify column \"f1\" in record data type\nLINE 1: select (row(1, 2.0)).f1;\n ^\n\nThe fields of an anonymous rowtype are cert...
[ { "msg_contents": "commit #898e5e32 (Allow ATTACH PARTITION with only ShareUpdateExclusiveLock)\nupdates ddl.sgml but not alter_table.sgml, which only says:\n\nhttps://www.postgresql.org/docs/12/release-12.html\n|An ACCESS EXCLUSIVE lock is held unless explicitly noted.\n\nFind attached patch, which also improv...
[ { "msg_contents": "Hi folks\n\nI was recently surprised to notice that log_line_prefix doesn't support a\ncluster_name placeholder. I suggest adding one. If I don't hear objections\nI'll send a patch.\n\nBefore anyone asks \"but why?!\":\n\n* A constant (short) string in log_line_prefix is immensely useful when...
[ { "msg_contents": "Hi,\n\nCurrently, we need to scan the WHOLE shared buffers when VACUUM\ntruncated off any empty pages at end of transaction or when relation\nis TRUNCATEd.\nAs for our customer case, we periodically truncate thousands of tables,\nand it's possible to TRUNCATE single table per transaction. Thi...
[ { "msg_contents": "This patch adds const qualifiers to internal range type APIs. It \ndoesn't require any new casts or remove any old ones.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services", "msg_date": "Mon, 28 Oct 201...
[ { "msg_contents": "As mentioned in [0], pg_upgrade currently does not preserve the version \nof collation objects created by initdb. Here is an attempt to fix that.\n\nThe way I deal with this here is by having the binary-upgrade mode in \npg_dump delete all the collations created by initdb and then dump out \...
[ { "msg_contents": "Greetings hackers,\n\nBefore PG12, select strpos('test', '') returns 1 (empty substring found at\nfirst position of the string), whereas starting with PG12 it returns 0\n(empty substring not found).\n\nIs this behavior change intentional? If so, it doesn't seem to be\ndocumented in the releas...
[ { "msg_contents": "Hi,\n\nPostgreSQL 10 introduced extended statistics, allowing us to consider\ncorrelation between columns to improve estimates, and PostgreSQL 12\nadded support for MCV statistics. But we still had the limitation that\nwe only allowed using a single extended statistics per relation, i.e.\ngiv...
[ { "msg_contents": "Hi,\n\nPlease find the attached patch having the fix for the typos and\ninconsistencies present in code.\nThe patch contains the following changes:\n1) attibute -> attribute\n2) efficent -> efficient\n3) becuase -> because\n4) fallthru -> fall through\n5) uncoming -> upcoming\n6) ans -> and\n...
[ { "msg_contents": "Hi,\n\nI've groused about this a few times, but to me it seems wrong that\nHashJoin and Hash are separate nodes. They're so tightly bound together\nthat keeping them separate just doesn't architecturally makes sense,\nimo. So I wrote a prototype.\n\nEvidence of being tightly bound together:\n...
[ { "msg_contents": "The attached patch teaches psql to redisplay any not-yet-executed\nquery text after editing with \\e. The fact that you don't get to\nsee what you're about to execute has been complained of before,\nmost recently at bug #16034 [1]. In that thread I complained that\nwe needed some probably-n...
[ { "msg_contents": "Hello,\nI think this demonstrates a bug, tested in 11.5:\nhttps://gist.github.com/wkalt/a298fe82c564668c803b3537561e67a0\n\nThe same script succeeds if the index on line 11 is either dropped, made to\nbe non-partial on b, or shifted to a different column (the others are used\nin the partition...
[ { "msg_contents": "The cache_plan argument to ri_PlanCheck has not been used since\ne8c9fd5fdf768323911f7088e8287f63b513c3c6. I propose to remove it.\n\nThat commit said \"I left it alone in case there is any future need for \nit\" but there hasn't been a need in 7 years, and I find it confusing to \nhave an u...
[ { "msg_contents": "Continuing the discussion from [0] and [1], here is a patch that \nautomates the process of updating Unicode derived files. Summary:\n\n- Edit UNICODE_VERSION and/or CLDR_VERSION in src/Makefile.global.in\n- Run make update-unicode\n- Commit\n\nI have added that to the release checklist in R...
[ { "msg_contents": "When joining tables with USING, the listed columns are merged and no\nlonger belong to either the left or the right side.  That means they can\nno longer be qualified which can often be an inconvenience.\n\n\nSELECT a.x, b.y, z FROM a INNER JOIN b USING (z);\n\n\nThe SQL standard provides a w...
[ { "msg_contents": "Hi.\n\nThis is not clear from doc, so I have asked on IRC too.\n\nfrom the DOC: https://www.postgresql.org/docs/current/trigger-definition.html\nIn the case of INSTEAD OF triggers, the possibly-modified row returned by each trigger becomes the input to the next trigger\n\nI modify OLD row, t...
[ { "msg_contents": "Hi,\n\none of the most frequent conflicts I see is that two patches add files\nto OBJS (or one of its other spellings), and there are conflicts because\nanother file has been added.\n\nRight now there's two reasons why that's likely to happen:\n1) By listing multiple objects for each line, we...
[ { "msg_contents": "Hi,\n\nWhen using -b, --bkp-details pg_waldump outputs an unnecessary newline\nfor blocks that contain an FPW.\n\nIn --bkp-details block references are output on their own lines, like:\n\nrmgr: SPGist len (rec/tot): 4348/ 4348, tx: 980, lsn: 0/01985818, prev 0/01983850, desc: P...
[ { "msg_contents": "Hi,\n\nThis patch, in a slightly rougher form, was submitted as part of [1],\nbut it seems worth bringing up separately, rather than just committing\nhearing no objections.\n\n From the commit message:\n\n Make StringInfo available to frontend code.\n\n There's plenty places in frontend...
[ { "msg_contents": "Hello,\n\n\nI propose new simple sql query, which shows total block numbers in the \nrelation.\n\nI now reviewing this patch (https://commitfest.postgresql.org/25/2211/) \nand I think,\nit is usefull for knowing how many blocks there are in the relation to \ndetermine whether we use VACUUM RE...
[ { "msg_contents": "A global index by very definition is a single index on the parent table\nthat maps to many\nunderlying table partitions. The parent table itself does not have any\nunderlying storage,\nso it must, therefore, retrieve the data satisfying index constraints from\nthe underlying tables.\nIn very ...
[ { "msg_contents": "Please consider this scenario (race conditions):\n\n1. FlushBuffer() has written the buffer but hasn't yet managed to clear the\nBM_DIRTY flag (however BM_JUST_DIRTIED could be cleared by now).\n\n2. Another backend modified a hint bit and called MarkBufferDirtyHint().\n\n3. In MarkBufferDirt...
[ { "msg_contents": "HAVE_LONG_LONG_INT is now implied by the requirement for C99, so the \nseparate Autoconf check can be removed. The uses are almost all in ecpg \ncode, and AFAICT the check was originally added specifically for ecpg.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQ...
[ { "msg_contents": "While fooling with the NetBSD-vs-libpython issue noted in a nearby\nthread, I observed that the core regression tests sometimes hang up\nin the \"stats\" test on this platform (NetBSD 8.1/amd64). Investigation\nfound that the stats collector process was sometimes exiting like\nthis:\n\n2019-...
[ { "msg_contents": "Hi,\n\nCurrently CREATE OR REPLACE VIEW command fails if the column names\nare changed. For example,\n\n =# CREATE VIEW test AS SELECT 0 AS a;\n =# CREATE OR REPLACE VIEW test AS SELECT 0 AS x;\n ERROR: cannot change name of view column \"a\" to \"x\"\n\nI'd like to propose the atta...
[ { "msg_contents": "Hi all,\n\nI wondered can we have a shortcut somewhat similar to following POC\nin recomputeNamespacePath () when the recomputed path is the same as the\nprevious baseSearchPath/activeSearchPath :\n\n== POC patch ==\ndiff --git a/src/backend/catalog/namespace.c\nb/src/backend/catalog/namespac...
[ { "msg_contents": "AFAICT, these build options were only useful to maintain compatibility \nfor version-0 functions, but those are no longer supported, so these \noptions can be removed. There is a fair amount of code all over the \nplace to support these options, so the cleanup is quite significant.\n\nThe cu...
[ { "msg_contents": "Hi,\n\nI want to know how postgres stores catalog relations in cache in-depth. Is\nthere any documentation for that?\n\nHi,I want to know how postgres stores catalog relations in cache in-depth. Is there any documentation for that?", "msg_date": "Thu, 31 Oct 2019 15:19:23 +0530", "msg...
[ { "msg_contents": "Hi,\n\nThe command tag of ALTER MATERIALIZED VIEW is basically\n\"ALTER MATERIALIZED VIEW\". For example,\n\n =# ALTER MATERIALIZED VIEW test ALTER COLUMN j SET STATISTICS 100;\n ALTER MATERIALIZED VIEW\n =# ALTER MATERIALIZED VIEW test OWNER TO CURRENT_USER;\n ALTER MATERIALIZED ...
[ { "msg_contents": "Dear hackers,\n\nAs declared last month, I propose again the new ECPG grammar, DECLARE STATEMENT.\nThis had been committed once, but it removed from PG12 because of\nsome problems. \nIn this mail, I want to report some problems that previous implementation has,\nproduce a new solution, and at...
[ { "msg_contents": "Hi,\n\nThe attached patch adds an -a / --appname command line switch to \npg_basebackup, pg_receivewal and pg_recvlogical.\n\nThis is useful when f.ex. pg_receivewal needs to connect as a \nsynchronous client (synchronous_standby_names),\n\n pg_receivewal -h myhost -p 5432 -S replica1 -a rep...
[ { "msg_contents": "Hi\n\nI almost finished patch optimizing non volatile function calls.\n\nselect f(t.n) from t where f(t.n) > 10 and f(t.n) < 100; needs 3 calls of\nf() for each tuple,\nafter applying patch only 1.\n\nAny pros and cons ?\n\nHiI almost finished patch optimizing non volatile function calls.se...
[ { "msg_contents": "This is the first of a number of patches to enhance SSL functionality,\nparticularly w.r.t. passphrases.\n\n\nThis patch provides a hook for a function that can supply an SSL\npassphrase. The hook can be filled in by a shared preloadable module. In\norder for that to be effective, the startup...
[ { "msg_contents": "Hi everyone,\n\nI was taking a look at pg_stat_statements module and noticed that it does\nnot collect any percentile metrics. I believe that It would be really handy\nto have those available and I'd love to contribute with this feature.\n\nThe basic idea is to accumulate the the query execut...
[ { "msg_contents": "Hi\n\nlong time we are think how to allow add some custom commands in psql. I had\na following idea\n\n1. psql can has special buffer for custom queries. This buffer can be\nfilled by special command \\gdefq. This command will have two parameters -\nname and number of arguments.\n\nsome like\...
[ { "msg_contents": "This small patch authored by my colleague Craig Ringer enhances\nTestlib's command_fails_like by allowing the passing of extra keyword\ntype arguments. The keyword initially recognized is 'extra_ipcrun_opts'.\nThe value for this keyword needs to be an array, and is passed through\nto the call...
[ { "msg_contents": "Hello Devs,\n\nThis patch moves duplicated query cancellation code code from psql & \nscripts to fe-utils, so that it is shared and may be used by other \ncommands.\n\nThis is because Masao-san suggested to add a query cancellation feature to \npgbench for long queries (server-side data gener...
[ { "msg_contents": "Hi,\n\nWe currently align byval types such as int4/8, float4/8, timestamp *,\ndate etc, even though we mostly don't need to. When tuples are deformed,\nall byval types are copied out from the tuple data into the\ncorresponding Datum array, therefore the original alignment in the tuple\ndata d...
[ { "msg_contents": "This patch allows the superuser to grant passwordless connection rights\nin postgres_fdw user mappings.\n\n\nThe patch is authored by my colleague Craig Ringer, with slight bitrot\nfixed by me.\n\n\nOne use case for this is with passphrase-protected client certificates,\na patch for which wil...
[ { "msg_contents": "\nThis patch provides for an sslpassword parameter for libpq, and a hook\nthat a client can fill in for a callback function to set the password.\n\n\nThis provides similar facilities to those already available in the JDBC\ndriver.\n\n\nThere is also a function to fetch the sslpassword from th...
[ { "msg_contents": "Hello hackers,\n\nPlease feel free to edit this new page, which I'd like to use to keep\ntrack of observations, ideas and threads relating to hash joins.\n\nhttps://wiki.postgresql.org/wiki/Hash_Join\n\n\n", "msg_date": "Fri, 1 Nov 2019 10:16:35 +1100", "msg_from": "Thomas Munro <thom...
[ { "msg_contents": "Hi!\n\nOur customer faced with issue, when index is invisible after creation.\nThe reproducible case is following.\n\n $ psql db2\n # begin;\n # select txid_current();\n$ psql db1\n# select i as id, 0 as v into t from generate_series(1, 100000) i;\n# create unique index idx on t (id)...
[ { "msg_contents": "This patch achieves  $SUBJECT and also provides some testing of the\nsslpassword setting.\n\n\ncheers\n\n\nandrew\n\n\n\n-- \nAndrew Dunstan https://www.2ndQuadrant.com\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services", "msg_date": "Thu, 31 Oct 2019 19...
[ { "msg_contents": "Hi,\n\nSometimes you want to answer if a difference between two timestamps is\nlesser than x minutes but you are not sure which timestamp is greater\nthan the other one (to obtain a positive result -- it is not always\npossible). However, if you cannot obtain the absolute value of\nsubtractio...
[ { "msg_contents": "Hi,\n\n Postgres has a global variable `disable_cost`. It is set the value\n1.0e10.\n\n This value will be added to the cost of path if related GUC is set off.\nFor example,\n if enable_nestloop is set off, when planner trys to add nestloop join\npath, it continues\n to add such p...
[ { "msg_contents": "This patch moves the parse analysis component of ExecuteQuery() and\nEvaluateParams() into a new transformExecuteStmt() that is called from\ntransformStmt(). This makes EXECUTE behave more like other utility\ncommands.\n\nEffects are that error messages can have position information (see \nr...
[ { "msg_contents": "Hi.sorry for my English.I want to once again open the topic of 64 bit transaction id. I did not manage to find in the archive of the option that I want to discuss, so I write. If I searched poorly, then please forgive me.The idea is not very original and probably has already been considered, ...
[ { "msg_contents": "Hi, hackers\n\nAs the $Subject, does anyone have one? I'd like to refer to it, and\nwrite an example for people who is also looking for the document.\n\nThanks.\n\n-- \nAdam Lee\n\n\n", "msg_date": "Fri, 1 Nov 2019 20:18:02 +0800", "msg_from": "Adam Lee <ali@pivotal.io>", "msg_fro...
[ { "msg_contents": "Hi,\n\n\nAs per the following code, t1 is a remote table through postgres_fdw:\n\n\n test=# BEGIN;\n BEGIN\n test=# SELECT * FROM t1;\n ...\n\n test=# PREPARE TRANSACTION 'gxid1';\n ERROR:  cannot prepare a transaction that modified remote tables\n\n\nI have attached a patch...
[ { "msg_contents": "It would be useful to have CREATE INDEX CONCURRENTLY be ignored by\nvacuuming's OldestXmin. Frequently in OLTP scenarios, CIC transactions\nare severely disruptive because they are the only long-running\ntransactions in the system, and VACUUM has to keep rows only for their\nsake, pointlessl...
[ { "msg_contents": "Hello,\n\nI came across a surprising behavior when upgrading our PostgreSQL 10 DBs that\nalso serve as a destination for the logical replication of some reference tables.\n\npg_upgrade turns off all subscriptions on the cluster and doesn't turn them on.\nSpecifically, it creates them with con...
[ { "msg_contents": "Hi hackers,\n\nI just noticed that when contrib/seg was converted to V1 calling\nconvention (commit 389bb2818f4), the PG_GETARG_SEG_P() macro got defined\nin terms of PG_GETARG_POINTER(). But it itself calls DatumGetPointer(),\nso shouldn't it be using PG_GETARG_DATUM()?\n\nAttached is a pat...
[ { "msg_contents": "While monitoring pg_stat_subscription, I noticed that last_msg_send_time\nwas usually NULL, which doesn't make sense. Why would we have a message,\nbut not know when it was sent?\n\nLooking in src/backend/replication/walsender.c, there is this:\n\n /* output previously gathered data in a ...
[ { "msg_contents": "Hello Folks\n\nI would like to update unaccent.rules file to support Arabic letters. so could someone help me or tell me how could I add such contribution. I attached the file including the modifications, only the last 4 lines.\n\nthank you", "msg_date": "Sun, 3 Nov 2019 06:02:19 +0000", ...
[ { "msg_contents": "Hello!\n\nRecently I got few times into situation where I was trying to find out what\nis blocking DELETE queries. Running EXPLAIN (even VERBOSE one) wasn't\nuseful, since the reason was slow trigger (missing index on foreign key\ncolumn). I had to create testing entry and run EXPLAIN ANALYZE...