threads
listlengths
1
2.99k
[ { "msg_contents": "Hi all,\n\nI just bumped into the following thing in pg_dump.c:\n /* Set default options based on progname */\n if (strcmp(progname, \"pg_backup\") == 0)\n format = \"c\";\nAs far as I can see this comes from e8f69be0 dated of 2000. Couldn't\nthis be removed? I have never seen tr...
[ { "msg_contents": "Hi all,\n\nIn my quest of making the backup tools more compliant to data\ndurability, here is a thread for pg_dump and pg_dumpall. Here is in a\ncouple of lines my proposal:\n- Addition in _archiveHandle of a field to track if the dump generated\nshould be synced or not.\n- This is effective ...
[ { "msg_contents": "Hi all,\n\nI have been looking at the possibility to support wait events for\nsystem processes, and here are the things that I think need to be\ndone:\n- System processes do not have PGPROC entries in PROC_HDR. I think\nthat we should add an array for system processes, putting in it\nwalwrite...
[ { "msg_contents": "Hi all,\n\nThis is a follow-up of\nhttps://www.postgresql.org/message-id/11202.1472597262%40sss.pgh.pa.us\nwhere we are looking at improving OOM handling in the code. In short,\nreport an ERROR appropriately instead of crashing. As mentioned in\nthis message, pg_locale.c is trickier to handle...
[ { "msg_contents": "Hello.\n\nStatistics sender logic during usual commit and two-phase commit do not strictly matches each other and that leads to\ndelta_live_tuples added to n_live_tup in case of truncate in two phase commit.\n\nThat can be see in following example:\n\nCREATE TABLE trunc_stats_test5(id serial)...
[ { "msg_contents": "I propose the attached patch to clean up some redundancy and confusion\nin pg_dump.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresq...
[ { "msg_contents": "During Vacuum, cleanup in btree need to acquire cleanup lock on the\nblock and the non-MVCC scans or scans on unlogged index retain the pin\non a buffer during scan of a block. Now, if the scan is suspended\n(use cursor and then fetch one row) after holding a pin on a buffer in\nSession-1 an...
[ { "msg_contents": "Hello everyone :).\n\nFirst of all, I want to introduce me to this list. My name is Mario de\nFrutos and I work at CARTO :)\n\nI come here asking for some advice/help because we're facing some\nunexpected behavior when we want to interrupt functions doing CPU intensive\noperations in plpython...
[ { "msg_contents": "I've been trying to get $SUBJECT working, but all my lcov.info files are \nempty. I'm also getting warnings about no .da files.\n\nI've slowly stripped away my normal build environment; I'm now using \nbaseline gcc (no ccache) with the following ./configure... anyone have \nany ideas how to d...
[ { "msg_contents": "Today I had an emergency production outage on a server. This\nparticular server was running 9.5.2. The symptoms were interesting\nso I thought I'd report. Here is what I saw:\n\n*) User CPU was pegged 100%\n*) Queries reading data would block and not respond to cancel or terminate\n*) pg_...
[ { "msg_contents": "I think this is a typo. Since I am not an English native speaker, I\nwould appreciate if someone confirm this.\n\ndiff --git a/doc/src/sgml/parallel.sgml b/doc/src/sgml/parallel.sgml\nindex 7f8e902..02173da 100644\n--- a/doc/src/sgml/parallel.sgml\n+++ b/doc/src/sgml/parallel.sgml\n@@ -339,7 ...
[ { "msg_contents": "Hi,\n\nI think it's better to mention that an alias is needed for the target \ntable specified in the USING clause of a DELETE statement, to set up a \nself-join, as the documentation on the from_list parameter of UPDATE \ndoes. Please find attached a patch.\n\nBest regards,\nEtsuro Fujit...
[ { "msg_contents": "Hi,\n\nlong time I working on this topic. Session server side variables are one\nmajor missing feature in PLpgSQL. Now I hope, I can summarize requests for\nimplementation in Postgres:\n\nRequirements\n==========\n1. Should be used in any PL (PLpgSQL, PLPython, PLPerl, ..)\n\n2. Should not bl...
[ { "msg_contents": "Hi all,\n\nI have a question about behavior of snapshot too old feature.\n\nFor example, I set old_snapshot_threshold = 1min and prepare a table\nand two terminals.\nAnd I did the followings steps.\n\n1. [Terminal 1] Begin transaction and get snapshot data and wait.\n BEGIN TRANSACTION IS...
[ { "msg_contents": "The getrusage() output that is shown by VACUUM VERBOSE and other places\nhas always been a little too terse and confusing for me. I propose to\nimprove that a bit:\n\n-CPU 0.01s/0.08u sec elapsed 0.18 sec.\n+CPU: user: 0.08s, system: 0.01s, elapsed: 0.18s.\n\nPatch attached.\n\nI have also u...
[ { "msg_contents": "Today, I tried compiling with:\n\n-#define TOAST_TUPLE_THRESHOLD MaximumBytesPerTuple(TOAST_TUPLES_PER_PAGE)\n+#define TOAST_TUPLE_THRESHOLD 100\n\nMost of the regression tests pass just fine, but the tablesample one\nexperiences numerous failures. For example:\n\n SELECT t.id FROM test...
[ { "msg_contents": "Hi,\n\nsqlsmith just found another crasher:\n\n select bit '1' >> (-2^31)::int;\n\nThis is due to an integer overflow in bitshiftright()/bitshiftleft()\nleading to them recursively calling each other. Patch attached.\n\nregards,\nAndreas\n\n\n\n-- \nSent via pgsql-hackers mailing list (pg...
[ { "msg_contents": "postgres_fdw has some checks to enforce that non-superusers must connect to\nthe foreign server with a password-based method. The reason for this is to\nprevent the authentication to the foreign server from happening on the\nbasis of the OS user who is running the non-foreign server.\n\nBut ...
[ { "msg_contents": "I'm working on a function(attached) that returns a bitmask of NULL \nfields in a record. It works fine if I feed it a row directly, but fails \nin this case:\n\nselect record_nulls(r), expected, CASE WHEN record_nulls(r) <> expected \nTHEN 'BAD' END AS bad, r\nfrom (values(row(NULL,NULL,NULL,...
[ { "msg_contents": "Related to [1], I want to add an operator that returns the count of set \n(or unset) bits in a bit|varbit input. Given the number of times people \nask \"how can I get a count of NULL fields\" and similar, I expect this to \nbecome quite popular. The obvious choice would be to use #, but I wa...
[ { "msg_contents": "Hello,\n\nI'm now trying to carry extra performance statistics on CustomScan\n(like DMA transfer rate, execution time of GPU kernels, etc...)\nfrom parallel workers to the leader process using the DSM segment\nattached by the parallel-context.\nWe can require an arbitrary length of DSM using ...
[ { "msg_contents": "Hi\n\nI expect so \\c without parameters has only informational character. But \\c\nreset user.\n\n\n\npostgres=# set role to tom;\nSET\nTime: 0.787 ms\npostgres=> select current_user;\n+--------------+\n| current_user |\n+--------------+\n| tom |\n+--------------+\n(1 row)\n\nTime: ...
[ { "msg_contents": "\n\n\n\n\nHi, hackers !TopMemoryContext is created with malloc in MemoryContextInit().All the other MemoryContexts such as ErrContext, MessageContext are allocated with palloc in a block of TopMemoryContext.So, to release all the allocated memories, TopMemoryContext should be freed with Memor...
[ { "msg_contents": "Replace PostmasterRandom() with a stronger way of generating randomness.\n\nThis adds a new routine, pg_strong_random() for generating random bytes,\nfor use in both frontend and backend. At the moment, it's only used in\nthe backend, but the upcoming SCRAM authentication patches need strong\...
[ { "msg_contents": "Hello.\n\nSometimes it's useful to log content of files used in COPY ... TO ... and\nCOPY ... FROM ... queries. Unfortunately PostgreSQL doesn't allow to do\nit, even if log_statement='all'. Suggested patch fixes this.\n\nLog example:\n\n```\nLOG: statement: create table test (k int, v text)...
[ { "msg_contents": "Hello everyone. This is my first time posting in -hackers, so please keep\nthis in mind.\n\nI would like to formally request the addition of \"IF EXISTS\", \"IF NOT\nEXISTS\", \"OR REPLACE\", and any other CINE variants to DDL statements that\ncurrently do not feature an idempotent construct....
[ { "msg_contents": "it's -> its\nthe the -> the\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpref/pgsql-hackers", "msg_date": "Tue, 18 Oct 2016 09:41:14 +0200", "msg_from": "Erik Rijkers <er@xs4all.nl>",...
[ { "msg_contents": "Hi,\n\nIn pgjdbc we have regular regression testing against \"build from\nmaster\" PostgreSQL, and recent master builds fail for \"statement cancel\"\ntest.\n\nThe PostgreSQL as of Mon Oct 17 00:09:39 UTC 2016 was fine, then \"statement\ncancel\" started to fail.\nThe test executes \"select p...
[ { "msg_contents": "Hi -hackers.\nΒ \n From time to time pg_largeobject comes up as an issue with being implemented \nas a system-catalog.\nΒ \nAs I see it, there are 2 relevant use-cases for improving the situation:\n1. Being able to pg_dump *without* any LOs (think of it as\n Β  Β without the contents of pg_largeo...
[ { "msg_contents": "The .psql_history file is naturally used by different DB connections\n(distinguished by a different combination of host + port + database + user).\nAt least in my multi-database working environment, this leads sometimes to\nfrustration because there are commands that cannot or should not be u...
[ { "msg_contents": "I propose we introduce the concept of \"indirect indexes\". I have a toy\nimplementation and before I go further with it, I'd like this assembly's\ninput on the general direction.\n\nIndirect indexes are similar to regular indexes, except that instead of\ncarrying a heap TID as payload, they...
[ { "msg_contents": "Is there a way to get \"make check\" to install a custom pg_hba.conf for its\ntemporary installation? Something like pre-prending the line:\n\nlocal all password_user md5\n\nTo the default pg_hba.conf?\n\n\nThanks,\n\nJeff\n\nIs there a way to get \"make check\" to install a custom pg_hba....
[ { "msg_contents": "We previously stated that the next regularly-scheduled set of PG\nback-branch updates would be the week of Nov. 7th, announcing on\nthe 10th. In view of some particularly nasty bugs that have\nsurfaced in 9.6.0 (e.g. pg_upgrade's corruption of visibility maps),\nwe're going to move that up b...
[ { "msg_contents": "Hi,\n\nWe are in the process of writing up draft notes for the upcoming update\nreleases. To initiate the process, we need to list out the major fixes\ngoing into the release. Need help from -hackers to generate that list.\n\nThanks!\n\n- Umair\n\nHi,Β We are in the process of writing up draft...
[ { "msg_contents": "Back in 2001 a hack to add __attribute__((packed)) to ItemPtr was\nadded with a comment \"Appropriate whack upside the head for ARM\"\n(dcbbdb1b3ee). I don't know if this is still a factor in 2016 or not\nbut it has already resulted in some collateral damage in 2015 when\nsome compiler took t...
[ { "msg_contents": "A portability hazard that we fight constantly is that the <ctype.h>\nmacros such as isalpha() can't safely be called on \"char\" values.\nPer POSIX, you have to make sure the input is cast to \"unsigned char\".\nThat's far too easy to forget, but on most machines you won't get any\nwarning ab...
[ { "msg_contents": "[resending to -hackers sorry]\n\nBack in 2001 a hack to add __attribute__((packed)) to ItemPtr was\nadded with a comment \"Appropriate whack upside the head for ARM\"\n(dcbbdb1b3ee). I don't know if this is still a factor in 2016 or not\nbut it has already resulted in some collateral damage i...
[ { "msg_contents": "Bruce's commit 5d305d86bd917723f09ab4f15c075d90586a210a back in April\nof 2014 includes this change:\n\n /* See PQconnectPoll() for how we use 'int' and not 'pgsocket'. */\n- int sock; /* Unix FD for socket, -1 if not connected */\n+ pgsocket sock; /* ...
[ { "msg_contents": "Hello,\n\nAfter all these years, we are still regularly running into people who \nsay, \"performance was bad so we disabled autovacuum\". I am not talking \nabout once in a while, it is often. I would like us to consider removing \nthe autovacuum option. Here are a few reasons:\n\n1. It does ...
[ { "msg_contents": "Hello,\n\nAfter all these years, we are still regularly running into people who \nsay, \"performance was bad so we disabled autovacuum\". I am not talking \nabout once in a while, it is often. I would like us to consider removing \nthe autovacuum option. Here are a few reasons:\n\n1. It does ...
[ { "msg_contents": "Hi Hackers!\n\nWhen using psql interactively one might be tempted to guard potentially\ndestructive commands such as \"UPDATE / DELETE / DROP <object>\" by starting\nthe input line with an explicit \"BEGIN; ...\". This has the added benefit\nthat then you invoke the command by reverse-search...
[ { "msg_contents": "Hi!\n\nThe XML output of explain potentially outputs the XML tag names \"I/O-Write-Time\"\nand \"I/O-Read-Time\", which are invalid due to the slash.\n\nThis can easily be seen with this:\n set track_io_timing = on;\n explain (analyze true, buffers true, format xml) select 1;\n\n [...]\...
[ { "msg_contents": "A customer just pinged me wondering how it was that a BitmapAnd node was \nreporting 0 tuples when the Bitmap Heap Scan above it showed it had in \nfact generated tuples.\n\nWhile this is mentioned in the docs, I think it would be very helpful to \nhave ANALYZE spit out \"N/A\" instead of 0 f...
[ { "msg_contents": "Hi,\n\n\n- * st_progress_command_target, and st_progress_command[].\n\n+ * st_progress_command_target, and st_progress_param[].\n\n\nAttached patch fixed typo.\n\n\nRegards,\n\nVinayak Pokale\n\nNTT Open Source Software Center\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hacke...
[ { "msg_contents": "Hi,\n\nAttached patch fixes a typo in pgstat.c\n\ns/addtions/additions/g\n\nRegards,\n\nVinayak Pokale\n\nNTT Open Source Software Center\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpref/pgs...
[ { "msg_contents": "Hello,\n\n From our experience in handling customers' problems, I feel it's necessary to evolve PostgreSQL's transaction management. The concrete problems are:\n\n1. PostgreSQL cannot end and begin transactions in PL/pgSQL and PL/Java stored functions.\nThis is often the reason people could ...
[ { "msg_contents": "Why is autovacuum_freeze_max_age's default set to 200 million, rather\nthan something like 2 billion? It seems 2 billion is half way to\nwrap-around and would be a better default. Right now, the default seems\nto freeze 10x more often than it has to.\n\nDoes it default to 200 million so clo...
[ { "msg_contents": "Hi all,\n\nThe log file generated by pgbench -l option is fixed file name\n'pgbench_log.<pid>.<thread id>'. And it's a little complicated for the\nscript that runs pgbench repeatedly to identify the log file name.\nAttached patch make it possible to specify the log file name. I think\nit's us...
[ { "msg_contents": "On 2016-10-18 20:04:32, Claudio Freire wrote:\n\n > You don't need that limitation (and vacuum will be simpler) if you add\nthe PK as another key, akin to:\n >\n > CREATE INDIRECT INDEX idx ON tab (a, b, c);\n >\n > turns into\n >\n > CREATE INDEX idx ON tab (a, b, c, pk);\n\n\nI know I am la...
[ { "msg_contents": "As promised and requested find attached a work in progress patch for fast defaults.\nThis is my first patch, I hope I used the right format…..\n\nThe premise of the feature is to avoid a table rewrite when adding a column with a default.\n\nThis is done by remembering the default value in pg_...
[ { "msg_contents": "I noticed that the routine tuplesort_gettuple_common() fails to set\n*should_free in all paths in master branch (no bug in 9.6). Consider\nthe TSS_SORTEDONTAPE case, where we can return false without also\nsetting \"*should_free = false\" to instruct caller not to pfree() tuple\nmemory that t...
[ { "msg_contents": "I have committed draft release notes at\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=eacaf6e29fd2a3047aff9738a35a8e9b05e55375\n\nThey should be up on the website at\nhttps://www.postgresql.org/docs/devel/static/release-9-6-1.html\nas soon as guaibasaurus does its next r...
[ { "msg_contents": "Hi,\n\nI'm using the latest version of Linux Mint Debian Edition, having recently\nupgraded from an older version, and now I can't get make check-world to\nfinish successfully.\n\nThe initial theory was that the version of Bison I'm using (3.0.2) is to\nblame, but I've also tested it against ...
[ { "msg_contents": "I just noticed that if track_commit_timestamp is enabled, the\noldestCommitTsXid and newestCommitTsXid don't persist after a server\nrestart, so you can't ask for the commit ts of a transaction that\ncommitted before the last server start, although the information is\nstill available (unless ...
[ { "msg_contents": "I found our postgresql.conf and pg_hba.conf config files had\ninconsistent comment instructions about reloading, and didn't mention\nSELECT pg_reload_conf().\n\nThe attached doc patch fixes this.\n\n-- \n Bruce Momjian <bruce@momjian.us> http://momjian.us\n EnterpriseDB ...
[ { "msg_contents": "I just did did a \"git pull\" to test one of my patches and i get the\nfollowing error :\n\n2016-10-23 18:51:47.679 AEDT [31930] FATAL: could not open archive status\ndirectory \"pg_xlog/archive_status\": No such file or directory\n2016-10-23 18:51:47.679 AEDT [31841] LOG: archiver process ...
[ { "msg_contents": "Remove extra comma at end of enum list\n\nC99-specific feature, and wasn't intentional in the first place.\n\nPer buildfarm member mylodon\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttp://git.postgresql.org/pg/commitdiff/d97a59a4c5597af5f53869a5a1c753893752c66b\n\nModified Files\n-------...
[ { "msg_contents": "Looking at the issue raised in\nhttps://www.postgresql.org/message-id/flat/57EE93C8.8080504%40postgrespro.ru\nprompted me to wonder whether there were any other places in which we\nwere calling tqual.c routines without holding buffer content lock.\nI tried adding\n\n Assert(BufferIsLocal(b...
[ { "msg_contents": "Hi,\n\nThe last argument of create_foreignscan_path called by postgresGetForeignJoinPaths is\nset to NULL, but it would be suitable to set it to NIL because the argument type is List.\n\nPlease find attached a patch.\n\nTatsuro Yamada\nNTT Open Source Software Center\n\n\n\n-- \nSent via pgsq...
[ { "msg_contents": "Hello everyone,\r\n\r\nI’d like to submit the attached patch for feedback from the PostgreSQL community and potential future inclusion in the codebase. The patch adds a new parameter to the RADIUS authentication method named β€œradiustimeout”, allowing the database administrator to configure th...
[ { "msg_contents": "Hi All,\n\nI have added a microvacuum support for hash index access method and\nattached is the v1 patch for the same. The patch basically takes care\nof the following things:\n\n1. Firstly, it changes the marking of dead tuples from\n'tuple-at-a-time' to 'page-at-a-time' during hash index sc...
[ { "msg_contents": "Hello,\nI am using repmgr 3.2 (PostgreSQL 9.6.0), postgresql-9.5.\nI have a master, a slave and a third server for my setup. The third server\nis used to house the rep mgr database.\nmy config is as below : \n\n===MASTER=====\ncluster=test\nnode=1\nnode_name=node1\nconninfo='host=192.168.2.33...
[ { "msg_contents": "Hello,\n\nBelow is the draft of the press release for the update this Thursday:\n\nhttps://git.postgresql.org/gitweb/?p=press.git;a=blob;f=update_releases/current/update_201610.md;h=aac4d0b36f3f3017d319ac617eff901efe0c10c0;hb=880dc99766ee0e608e95d9c0f36ce3cde59f470f <https://git.postgresql.or...
[ { "msg_contents": "Hi\n\nI got a email about issues with reading feed URL.\n\nI checked manually URL and it looks well. http://okbob.blogspot.com/\nfeeds/posts/default\n\nRegards\n\nPavel\n\nHiI got a email about issues with reading feed URL.I checked manually URL and it looks well. http://okbob.blogspot.com/fe...
[ { "msg_contents": "When commit 3e23b68dac006e8deb0afa327e855258df8de064 introduced single-byte\nvarlena headers, its fmgr.h changes presented PG_GETARG_TEXT_PP() and\nPG_GETARG_TEXT_P() as equals. Its postgres.h changes presented\nPG_DETOAST_DATUM_PACKED() and VARDATA_ANY() as the exceptional case. Let's\nfir...
[ { "msg_contents": "Do we still need to report the wraparound warning on server startup?\n\n\tLOG: MultiXact member wraparound protections are now enabled\n\nI thought that was going to be removed at some point, no?\n\n-- \n Bruce Momjian <bruce@momjian.us> http://momjian.us\n EnterpriseDB ...
[ { "msg_contents": "Hello,\n\nPer: https://www.commandprompt.com/blog/can_i_make_initdb_quiet/\n\nThis was a question that was asked on #postgresql. Obviously we found a \nwork around but I wonder if it makes sense to add a -q to solve some of \nthese issues? (I could see it being useful with automation).\n\nSin...
[ { "msg_contents": "Spoonbill is very rarely (ie once every few months) failing like this:\n\n[2016-08-29 18:15:35.273 CEST:57c45f88.52d4:8] LOG: statement: SELECT\ntest_shm_mq_pipelined(16384, (select\nstring_agg(chr(32+(random()*95)::int), '') from\ngenerate_series(1,270000)), 200, 3);\n[2016-08-29 18:15:35.2...
[ { "msg_contents": "Currently, we don't produce very good plans when row-level security\nis enabled. An example is that, given\n\n\tcreate table t1 (pk1 int primary key, label text);\n\tcreate table t2 (pk2 int primary key, fk int references t1);\n\nthen for\n\n\tselect * from t1, t2 where pk1 = fk and pk2 = 42...
[ { "msg_contents": "Hi,\n\nI have a report of a PL/Java crash in 9.6 where the stack trace\nsuggests it was trying to initialize in a background worker\nprocess (not sure why that even happened, yet), and by my first\nglance, it seems to have crashed dereferencing MyProcPort, which\nI am guessing a BGW might not...
[ { "msg_contents": "Hello, compiler complains about unused variable during build\npostgres_fdw without assertions (!--enable-cassert).\n\ndeparse.c: In function β€˜deparseFromExpr’:\ndeparse.c:1029:14: warning: unused variable β€˜foreignrel’ [-Wunused-variable]\n RelOptInfo *foreignrel = context->foreignrel;\n ...
[ { "msg_contents": "Hi,\n\nAttached patch fixes a typo in reorderbuffer.c\n\ns/messsage/message/g\n\nRegards,\n\nVinayak Pokale\n\nNTT Open Source Software Center\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpre...
[ { "msg_contents": "Hello,\n\nIf the stats collector is forcibly terminated on the standby in streaming replication configuration, it won't be restarted until the standby is promoted to the primary. The attached patch restarts the stats collector on the standby.\n\nFYI, when the stats collector is down, SELECTs...
[ { "msg_contents": "On Fri, Oct 21, 2016 at 2:38 PM, Ashutosh Bapat\n<ashutosh.bapat@enterprisedb.com> wrote:\n> On Wed, Oct 19, 2016 at 9:17 PM, Robert Haas <robertmhaas@gmail.com> wrote:\n>> On Thu, Oct 13, 2016 at 7:27 AM, Amit Langote\n>> <Langote_Amit_f8@lab.ntt.co.jp> wrote:\n>>> However, when I briefly re...
[ { "msg_contents": "Spotted a tiny typo in contrib/pageinspect/heapfuncs.c: s/accordindly/accordingly/\n\ncheers ./daniel\n\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpref/pgsql-hackers", "msg_date": "We...
[ { "msg_contents": "Hi hackers,\n\nHere is a new version of my patch to add a replay_lag column to the\npg_stat_replication view (originally proposed as part of a larger\npatch set for 9.6[1]), like this:\n\npostgres=# select application_name, replay_lag from pg_stat_replication;\nβ”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€...
[ { "msg_contents": "pg_get_encoding_from_locale() in chklocale.c reports this when it finds\na locale with an encoding it does not recognize:\n\nereport(WARNING,\n (errmsg(\"could not determine encoding for locale \\\"%s\\\": codeset\nis \\\"%s\\\"\",\n ctype, sys),\n errdetail(\"Please r...
[ { "msg_contents": "Hello,\n\nCMD has been working on building snap packages. It has been an adventure \nand we are very close to having them complete. In fact they are complete \nenough that we have published them in the snap repo.\n\njd@jd-wks:~$ snap find postgres\nName Version Developer Notes S...
[ { "msg_contents": "Here is a series of patches to add NLS to the remaining bin programs,\nwhich were moved from contrib a while ago. (If you're missing pgbench,\nI'm skipping that for now because it's more complicated.) I'll add this\nto the commit fest.\n\n-- \nPeter Eisentraut http://www.2ndQua...
[ { "msg_contents": "Hi\n​,​\n\n ​\nselectDumpableExtension() function skip\n​s dump of​\nbuilt-in extensions in case of binary-upgrade only,\n​ ​\nwhy not in normal\n​dump​\n?\n​ ​\nCan't we assume those will already be installed in the target database\n​ at restore\n?\n\nThanks\n​ &\nRegards,\nAmul​\n\nHi​,​ ​...
[ { "msg_contents": "# pg_autoprewarm.\n\nThis a PostgreSQL contrib module which automatically dump all of the\nblocknums\npresent in buffer pool at the time of server shutdown(smart and fast mode\nonly,\nto be enhanced to dump at regular interval.) and load these blocks when\nserver restarts.\n\nDesign:\n------\...
[ { "msg_contents": "Currently, initdb parses locale -a output to populate pg_collation. If\nadditional collations are installed in the operating system, it is not\npossible to repeat this process, only by doing each step manually. So I\npropose to move this to a backend function that can be called\nseparately,...
[ { "msg_contents": "I propose to change the psql \\d output a bit, best shown with an example:\n\n \\d persons3\n- Table \"public.persons3\"\n- Column | Type | Modifiers\n---------+---------+------------------\n- id | integer | not null\n- name | text | default ''::text\n+ Table...
[ { "msg_contents": "Here is a patch to refactor some of the I/O functions in pseudotypes.c\nto save redundant code and reduce the number of distinct translatable\nstrings.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services\n\n\...
[ { "msg_contents": "Hi all,\n\nI have just been trapped by the fact that in some code paths we look\nat the RMGR information of a WAL record (record->xl_info) but the\nfilter dedicated to it, ~XLR_INFO_MASK, is not applied. This is\nharmful now, but this could lead to problems if in the future new\nrecord-level ...
[ { "msg_contents": "In 9.6 and earlier, if you change pg_stat_tmp to be a symlink, basebackups\nno longer work. That's because we create symlink entry in the tarfile for\nit instead of an empty directory, but with no data, which Breaks Everything\n(TM).\n\nThis was fixed in head in 6ad8ac60, which introduced \"m...
[ { "msg_contents": "Hello hackers,\n\nWe'd like to present our work on adding LLVM JIT compilation of expressions\nin SQL queries for PostgreSQL. The source code (based on 9.6.1) along with\nbrief manual is available at our github: https://github.com/ispras/postgres .\nΠ‘urrent speedup for TPC-H Q1 is 20% (on 40G...
[ { "msg_contents": "It looks like pq_putmessage_hook and pq_flush_hook were meant for\ndevelopment purpose and not supposed to be committed.\n\nAttached patch remove them.\n\n-- \nJulien Rouhaud\nhttp://dalibo.com - http://dalibo.org\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\...
[ { "msg_contents": "I looked into this complaint:\nhttps://www.postgresql.org/message-id/1477487162344-5927751.post@n3.nabble.com\nwhich boils down to array_append being a lot slower in 9.5 & up than it\nwas before. Now, using array_append as an aggregate transfn has never\nbeen a very good idea, because it's i...
[ { "msg_contents": "Hi,\n\ntesting with sqlsmith yielded an uncancellable backend hogging CPU time.\nGdb showed it was busy in findeq() of tsquery_rewrite.c. This function\nappears to have exponential complexity wrt. the size of the involved\ntsqueries. The following query runs for 12s on my machine with no wa...
[ { "msg_contents": "Hi,\n\nwhile working on the executor, to process \"batches\" or \"bubbles\" of\ntuples I hit some weird performance issues (as in things didn't improve\nas much as I had hoped). A fair amount of headscratching later I\nfigured out that the tuple order in sequential scans is a major\nbottlene...
[ { "msg_contents": "In doc/src/sgml/sources.sgml:\n\nWhen the definition an inline function references symbols\n(i.e. variables, functions) that are only available as part of the\nbackend, the function may not be visible when included from frontend\ncode.\n\nShinichi Matsuda reported that there should be \"of\" ...
[ { "msg_contents": "Commit fest CF 2016-11 is supposed to start in about a day. I don't\nthink a commit fest manager was chosen yet. Volunteers?\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services\n\n\n-- \nSent via pgsql-hack...
[ { "msg_contents": "Hi all\n\nI've been investigating some intermittent timeout issues I've seen\nwith BDR users in the wild and I think I've identified an issue with\nhow logical decoding sends data and handles feedback.\n\nTL;DR: Logical decoding clients need to generate their own keepalives\nand not rely on t...
[ { "msg_contents": "Hi,\n\nI^Wsomebody appears to have made a number of dumb mistakes in\nWalSndWriteData(), namely:\n1) The timestamp is set way too late, after\n pq_putmessage_noblock(). That'll sometimes work, sometimes not. I\n have no idea how that ended up happening. It's eye-wateringly dumb.\n\n2) We...
[ { "msg_contents": "Hi,\n\nwhile hacking up nodeAgg.c to use a dedicated slot/desc for the\nhashtable, an assert I placed brought up a weird case:\n\nregression[29535][1]=# EXPLAIN VERBOSE update bar set f2 = f2 + 100 where f1 in (select f1 from foo);\nβ”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€...
[ { "msg_contents": "Hello,\r\n\r\nThe attached patch is revised version of the pass-down-bounds feature.\r\nIts functionality is not changed from the previous version, however,\r\nimplementation was revised according to the discussion at the last CF.\r\n\r\nThis patch add a new fields (ps_numTuples) to the PlanS...
[ { "msg_contents": "Hello,\r\n\r\nThe attached patch implements the suggestion by Amit before.\r\n\r\nWhat I'm motivated is to collect extra run-time statistics specific\r\nto a particular ForeignScan/CustomScan, not only the standard\r\nInstrumentation; like DMA transfer rate or execution time of GPU\r\nkernels...
[ { "msg_contents": "I looked into bug#14397. The submitter was discourteous enough not to\nprovide an in-line example, but here it is:\n\nCREATE TABLE IF NOT EXISTS TEST_1 (\nID SERIAL PRIMARY KEY,\nC1 BYTEA,\nC2 TEXT NOT NULL,\nC3 BOOLEAN NOT NULL DEFAULT FALSE,\nCONSTRAINT TEST_1_uniqu...
[ { "msg_contents": "While reviewing code coverage in pltcl, I uncovered a bug in trigger \nfunction return handling. If you returned the munged name of a dropped \ncolumn, that would silently be ignored. It would be unusual to hit this, \nsince dropped columns end up with names like \n\".......pg.dropped.2.........