threads
listlengths
1
2.99k
[ { "msg_contents": "While researching a pgsql-general question, I noticed that commit\n73c986adde5d73a5e2555da9b5c8facedb146dcd added several new fields\nto pg_control without bothering to touch PG_CONTROL_VERSION. Thus,\nPG_CONTROL_VERSION is still \"942\" even though the file contents\nare not at all compatib...
[ { "msg_contents": "Hi,\n\nWhile validating my patch for http://archives.postgresql.org/message-id/20160714060607.klwgq2qr7egt3zrr%40alap3.anarazel.de\nI noticed that the standby's infomask still had HEAP_XMAX_INVALID set\nafter replaying a XLOG_HEAP_LOCK record.\n\nThat's bad, but not really commonly fatal, bec...
[ { "msg_contents": "We've talked before about how the regression tests should be circumspect\nabout what role names they create/drop, so as to avoid possibly blowing\nup an installation's existing users during \"make installcheck\". In\nparticular I believe there was consensus that such names should begin\nwith...
[ { "msg_contents": "Hi,\n\nThe $subject says it all. Am I missing something, or is that not ok?\nNow, these branches should never be hit, but it surely isn't good that\nthe corruption will persist on a primary, after it's explicitly been\nfixed on the standby.\n\nGreetings,\n\nAndres Freund\n\n\n-- \nSent via pg...
[ { "msg_contents": "After putting \"plperl\" into shared_preload_libraries so that things\nget loaded upon server start, I was surprised to see that each backend\nwas still accessing a handful of perl files the first time it used a\nplperl function.\n\nI see that the cause is src/pl/plperl/plc_trusted.pl, which ...
[ { "msg_contents": "Hi hackers!\n\nFollowing is a proposal to add timestamp informations to\n`pg_stat_statements`.\n\n# Use case\n- If we want to gather list and stats for queries executed at least once\nlast 1 hour, we had to reset a hours ago. There is no way if we didn't.\n- If we found some strange query fro...
[ { "msg_contents": "Hi\r\n I run a simple SQL with latest PG:\r\npostgres=# explain select * from t1 where id1 in (select id2 from t2 where c1=c2);\r\n QUERY PLAN \r\n------------------------------------------------------------\r\n Seq Scan on t1 (cost=0.00..43...
[ { "msg_contents": "Hi,\n\nheap_update() retries pinning the vm pinning, as explained in the\nfollowing comment:\n\n\t/*\n\t * Before locking the buffer, pin the visibility map page if it appears to\n\t * be necessary. Since we haven't got the lock yet, someone else might be\n\t * in the middle of changing this...
[ { "msg_contents": "While reading the logical decoding code I noticed a few supposedly mistyped\ncomments, see the diff below.\n\nBesides that, output_plugin_options argument of CreateInitDecodingContext\nfunction is unused, and the function passes NIL to the corresponding argument\nof StartupDecodingContext. Th...
[ { "msg_contents": "When I updated our copy of the IANA timezone library back in March\n(commit 1c1a7cbd6), I noted that we ought to consider back-patching\nthose changes once they'd settled out in HEAD. Now that the code\nhas survived a couple of months of beta testing, I think it is time\nto do that.\n\nI wen...
[ { "msg_contents": "Hi All,\n\nDuring the discussion of supporting multi tenancy with the help of\nrow level security, because of some problems of executing any\npolicy that was created by an unprivileged user [1].\n\nTo avoid that problem, If we have some kind of new mechanism to\nGRANT/REVOKE only CREATE POLIC...
[ { "msg_contents": "Hi all,\n\nThe file 006_logical_decoding_timelines.pl was removed by the commit c1543a8.\nBut currently 005_***.pl and 007_***.pl exist on source tree.\nShould we change its file number to 006?\n\nPlease find attached patch renames 007_sync_rep.pl to 006_sync_rep.pl.\n\nRegards,\n\n--\nMasahi...
[ { "msg_contents": "Hi,\n\nA few days ago I ran into a problem with the init script packaged in our \ncommunity RPM packages. What happened was that they initiated a restart, \nbut this happened:\n\n# /etc/init.d/postgresql-9.3 restart\nStopping postgresql-9.3 service: [FAILED]\nStartin...
[ { "msg_contents": "At PgCon we discussed that Petr Jelinek would be working on the code for an\nin-core logical replication implementation, while I would work on user\ninterface/security models. Petr has been actively working on the code and\nwill post patch in a few weeks, as discussed and agreed. Craig Ringer...
[ { "msg_contents": "I can't help noticing that the failure rate on skink has gone from\n\"rare\" to \"100%\" since 3d5b227:\nhttp://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=skink&br=REL9_4_STABLE\nI think we need to put some effort into figuring out what's up there.\n\nAlso, this morning curculio show...
[ { "msg_contents": "Seems you can't use UNION and COLLATE in the same SELECT statement; you\nhave to put the UNION inside of WITH and then do the COLLATE outside:\n\n test=> SELECT 'a-c' AS x UNION ALL SELECT 'ab' AS x ORDER BY 1 COLLATE \"C\";\n ERROR: collations are not supported by type integer\n LINE 1: .....
[ { "msg_contents": "Hi,\n\nI have been trying MADlib [1], a machine-learning library for PostgreSQL,\nand when I was tying it on 9.5 and 9.6beta2, I often got following\nerror on my box.\n\n------------------------------------\nmadpack.py : ERROR : SQL command failed:\nSQL: DROP OWNED BY madlib_19_installcheck C...
[ { "msg_contents": "Folks,\n\nPlease find attached a patch which makes it possible to disallow\nUPDATEs and DELETEs which lack a WHERE clause. As this changes query\nbehavior, I've made the new GUCs PGC_SUSET.\n\nWhat say?\n\nThanks to Gurjeet Singh for the idea and Andrew Gierth for the tips\nimplementing.\n\n...
[ { "msg_contents": "Hi Hackers,\r\n\r\n\r\nI have been seeing memory usage increasing for a simple plpgsql function. Could you please take a look and check is it a bug?\r\n\r\n\r\nThe function definition is:\r\n\r\n\r\ncreate function f() returns int as\r\n$$DECLARE count int;\r\nBEGIN\r\n count := 1;\r\n ...
[ { "msg_contents": "In Danish, the sequence 'aa' is sometimes treated as a single letter\nwhich collates after 'z'.\n\nSome regression tests got into 9.5, and are still in 9.6beta3, which\nfail due to assuming they know how things will sort or compare.\n\nI thought the easiest way to deal with it was just to cha...
[ { "msg_contents": "The open items list says this:\n\nheap_update sets xmax and infomask without logging the changes or\nclearing PD_ALL_VISIBLE or visibility map bits\n* volunteer owner wanted\n* This has been buggy essentially forever but the freeze map changes\ngive it new urgency.\n* Andres working on commit...
[ { "msg_contents": "Hi,\n\nThe following steps reproduce an error with pg_restore:\n\nDROP TABLE IF EXISTS myTable;\nDROP FUNCTION IF EXISTS myInnerFunction(INTEGER);\nDROP FUNCTION IF EXISTS myOuterFunction(INTEGER);\nDROP SCHEMA IF EXISTS myOtherSchema;\n\nCREATE SCHEMA myOtherSchema;\n\nSET search_path = myPr...
[ { "msg_contents": "In\nhttps://www.postgresql.org/message-id/tencent_5C738ECA65BAD6861AA43E8F@qq.com\nit was pointed out that you could get an intra-function-call memory leak\nfrom something like\n\n\tLOOP\n\t BEGIN\n\t EXECUTE 'bogus command';\n\t EXCEPTION WHEN OTHERS THEN\n\t END;\n\tEND LOOP;\n\nThe p...
[ { "msg_contents": "Hi,\n\nTo build the representative tuple for each group in hash-aggregates we\ndo:\nstatic AggHashEntry\nlookup_hash_entry(AggState *aggstate, TupleTableSlot *inputslot)\n{\n...\n\t/* if first time through, initialize hashslot by cloning input slot */\n\tif (hashslot->tts_tupleDescriptor == N...
[ { "msg_contents": "Hi,\n\nI've previously mentioned (e.g. [1]) that tuple deforming is a serious\nbottlneck. I've also experimented successfully [2] making\nslot_deform_tuple() faster.\n\nBut nontheless, tuple deforming is still a *major* bottleneck in many\ncases, if not the *the* major bottleneck.\n\nWe could...
[ { "msg_contents": "Hi all,\n\nSome people may have bumped into the following surprise for VS2015:\nhttps://yro.slashdot.org/story/16/06/10/1350245/visual-studio-2015-c-compiler-secretly-inserts-telemetry-code-into-binaries\n\nVS 2015 is adding calls to telemetry (surprise!) to track activity of\nan application....
[ { "msg_contents": "Hi all,\n\nI am currently playing with extensions. And I found a strange behaviour \nchange with 9.6beta2 and 3 when pg_dumping a database with an extension \nhaving sequences. This looks like a bug, ... unless I did something wrong.\n\nHere is a test case (a simple linux shell script, that c...
[ { "msg_contents": "I have created a patch to cache the meta page of Hash index in\nbackend-private memory. This is to save reading the meta page buffer every\ntime when we want to find the bucket page. In “_hash_first” call, we try to\nread meta page buffer twice just to make sure bucket is not split after we\n...
[ { "msg_contents": "Hi hackers,\n\nwe are a group of researches that work on temporal databases. Our main focus is\nthe processing of data with time intervals, such as the range types in\nPostgreSQL.\n\nFor this type of processing the range types that are stored with the tuples are\nconsidered to represent the t...
[ { "msg_contents": "CREATE DOMAIN text_not_null AS text NOT NULL;\nCREATE TYPE c AS( t text_not_null, i int );\nCREATE TABLE test_table( id serial, c c );\nCREATE OR REPLACE FUNCTION test_func(i test_table) RETURNS oid LANGUAGE \nplpgsql AS $$\nBEGIN\nRETURN pg_typeof(i);\nEND$$;\nSELECT test_func(NULL);\nERROR:...
[ { "msg_contents": "Teaser: change made in 9.4 to simplify WAL segment compression\nmade it easier to compress a low-activity-period WAL segment\nfrom 16 MB to about 27 kB ... but much harder to do better than\nthat, as I was previously doing (about two orders of magnitude\nbetter).\n\nAt $work, we have a usuall...
[ { "msg_contents": "In light of the fact that it is an endless cause of bugs both in pg and\npotentially to applications, I propose that we cease attempting to\nconform to the spec's definition of IS NULL in favour of the following\nrules:\n\n1. x IS NULL is true if and only if x has the null value (isnull set)...
[ { "msg_contents": "Hi,\n\nAs already noted[1], LWLocks don't currently work in DSM segments,\nbecause they use dlist for the list of waiters. Even though all of\nthe waiter nodes are in PGPROC and therefore have stable addresses,\nthe dlist code internally constructs a circular list including\npointers to a sp...
[ { "msg_contents": "Hi Team,\n\nCurrently we have a project running with MySQL with YII & Wordpress, Now i\nwant to change the Database from MYSQL to PostgreSQL.\n\nPlease put your inline comments below.\n*[JS:] *Is there any way we can convert MYSQL queries to PostreSQL Queries?\n\n*Your Comment : ?*\n\n\n*[JS:...
[ { "msg_contents": "Found a bug:\n\ncreate table foo as select x, floor(random()*100)::int as y,\nfloor(random()*100)::int as z from generate_series(1,1000000) f(x);\n\nexplain select count(y) filter (where y<0.01) from foo where x < 10000;\n\nERROR: variable not found in subplan target list\nSTATEMENT: select...
[ { "msg_contents": "Hi all,\n\nLately hamster is failing every 4/5 days on the recovery regression\ntests in 003 covering the recovery targets, with that:\n# Postmaster PID for node \"standby_2\" is 20510\n#\nTimed out while waiting for standby to catch up at\nt/003_recovery_targets.pl line 36.\n\nWhich means th...
[ { "msg_contents": "The comment seems to have been copied from ATExecAddColumn, which says:\n\n /*\n * If we are told not to recurse, there had better not be any\n- * child tables; else the addition would put them out of step.\n\nFor ATExecValidateConstraint, it should say something like:\n\n+ * child tables; e...
[ { "msg_contents": "Hi all,\n\nI was checking out TAP tests documentation. And I found confusing this \npart of src/test/perl/README file:\n\n my $ret = $node->psql('postgres', 'SELECT 1');\n is($ret, '1', 'SELECT 1 returns 1');\n\nThe returning value of psql() function is the exit code of the psql. \nHe...
[ { "msg_contents": "Hi,\n\nI spent some time profiling a simply query with a SUM() aggregate. We've \nmade some big improvements in this area in recent years, but it seems \nthere's still some room for improvement. A lot of CPU time is spent in \nthe numeric add_var() and friends. Which isn't that surprising, I ...
[ { "msg_contents": "With the gutting of pg_am in 9.6, there seems to be no longer any way\nfor a query of the system catalogs to discover any of the index\ncapabilities that were formerly columns in pg_am (notably amcanorder,\namcanorderbyop, amclusterable, amsearcharray, amsearchnulls).\n\nAm I missing somethin...
[ { "msg_contents": "Example: I have a database cluster initialized with --locale=ru_RU.UTF-8\n(built with NLS). Let's say for some reason, I have client encoding set\nto LATIN1. All error messages come back like this:\n\ntest=> select * from notthere;\nERROR: character with byte sequence 0xd0 0x9e in encoding...
[ { "msg_contents": "I was trying to look up the background of this error message:\n\n\"Ispell dictionary supports only \\\"default\\\", \\\"long\\\", and \\\"num\\\" flag\nvalue\"\n\n(src/backend/tsearch/spell.c)\n\nBut I found that this actually talks about Hunspell format dictionaries.\n (So the man page is hu...
[ { "msg_contents": "Hello folks,\n\nI've got a small patch I'd like to submit for consideration.\n\nThe scenario involves MSVC builds, where a user can do the following:\n1) Install ActivePerl's latest (5.22 or 5.24).\n2) Add this line to their config.pl file (in src/tools/msvc):\n$config->{perl} = \"C:\\\\Perl6...
[ { "msg_contents": "Hello,\n\nThe following article is a very good look at some of our limitations and \nhighlights some of the pains many of us have been working \"around\" since \nwe started using the software.\n\nhttps://eng.uber.com/mysql-migration/\n\nSpecifically:\n\n* Inefficient architecture for writes\n...
[ { "msg_contents": "On Thu, Jul 21, 2016 at 12:06 PM, Robert Haas <robertmhaas@gmail.com> wrote:\n> On Wed, Jul 20, 2016 at 9:15 PM, Noah Misch <noah@leadboat.com> wrote:\n>> This PostgreSQL 9.6 open item now needs a permanent owner. Would any other\n>> committer like to take ownership? If this role interests ...
[ { "msg_contents": "Hi,\n\nAs previously mentioned, dynahash isn't particularly fast. In many cases\nthat doesn't particularly matter. But e.g. hash aggregation and bitmap\nindex scans are quite sensitive to hash performance.\n\nThe biggest problems with dynahash (also discussed at [1]) are\n\na) two level struc...
[ { "msg_contents": "Hi,\n\nI noticed that currently the core doesn't show any information on the \ntarget relations involved in a foreign/custom join in EXPLAIN, by \nitself. Here is an example:\n\n-- join two tables\nEXPLAIN (COSTS false, VERBOSE)\nSELECT t1.c1, t2.c1 FROM ft1 t1 JOIN ft2 t2 ON (t1.c1 = t2.c...
[ { "msg_contents": "Hello\n\nWhile working on some new feature for PostgreSQL (which is still in\ndevelopment and is irrelevant in this context) I noticed that current\nRBTree implementation interface is following:\n\n```\nextern void rb_begin_iterate(RBTree *rb, RBOrderControl ctrl);\nextern RBNode *rb_iterate(...
[ { "msg_contents": "I looked into the problem reported in bug #14265,\nhttps://www.postgresql.org/message-id/20160727005725.7438.26021@wrigleys.postgresql.org\n\nThe core of the problem is a design decision that seems pretty bad in\nhindsight: if we have array-subscripting or field-selection decoration\nin the t...
[ { "msg_contents": "Hello hackers,\n\nI noticed that exit_hook_registered variable in start_postmaster() is \nlocal variable. Shouldn't it be a static variable?\n\nI attached a patch. Thank you!\n\n-- \nArtur Zakirov\nPostgres Professional: http://www.postgrespro.com\nRussian Postgres Company\n\n\n\n-- \nSent vi...
[ { "msg_contents": "Hello,\n\nWhile testing replication for 9.5, we found that repl-master can\nignore wal_sender_timeout and seemingly waits for TCP\nretransmission timeout for the case of sudden power-off of a\nstandby.\n\nMy investigation told me that the immediate cause could be that\nsecure_write() is calle...
[ { "msg_contents": "On Thu, Jul 28, 2016 at 8:44 PM, Amit Kapila <amit.kapila16@gmail.com> wrote:\n> On Tue, Jul 26, 2016 at 11:58 AM, Fujii Masao <masao.fujii@gmail.com> wrote:\n>> On Wed, Jul 13, 2016 at 3:06 AM, Jeff Janes <jeff.janes@gmail.com> wrote:\n>>> On Tue, Jul 12, 2016 at 10:48 AM, Peter Eisentraut\n...
[ { "msg_contents": "Hi\n\nFollowing issue exists with PL/Python: when your function takes array as\ninput parameters, processing arrays of fixed-size elements containing null\nvalues is many times slower than processing same array without nulls. Here\nis an example:\n\n-- Function\n\ncreate or replace function t...
[ { "msg_contents": "If I understand correctly, we currently deem an update to be non-HOT\nwhenever any indexed column is updated. This is because tuple\nversions created by HOT updates can later be removed by HOT pruning,\nwhich means that they must not be referenced by index entries.\nOtherwise, after HOT prun...
[ { "msg_contents": "Hello,\n\nLooking into pqcomm.c, I noticed that the prototype of\nsocket_set_nonblocking defined twice. Actually the prototype is\nnot necessary at all but one may remain as a convention.\n\nIt doesn't no harm so backpatching seems unnecessary. \n\nregards,\n\n-- \nKyotaro Horiguchi\nNTT Open...
[ { "msg_contents": "Following Uber's case discussion, I found this talk by Alexey Kopytov to be\nreally interesting:\n http://kaamos.me/talks/pgday16/strongmysql/strongmysql.html (online html,\nin Russian)\n\nI translated it to English:\n\nhttps://www.dropbox.com/s/t6a15s66jxg50tg/mysqlstrong_pgday16russia.pdf?...
[ { "msg_contents": "Hi\n\nI discovered that if you build with -DEXEC_BACKEND on a Unix system\nand then try to start a background worker, it dies in\nInitializeLatchSupport:\n\nTRAP: FailedAssertion(\"!(selfpipe_readfd == -1)\", File: \"latch.c\", Line: 161)\n\nThat's because InitPostmasterChild is called twice....
[ { "msg_contents": "we observed that spawning the specified number of parallel workers for\nevery query that satisfies for parallelism is sometimes leading to\nperformance drop compared to improvement during the peak system load\nwith other processes. Adding more processes to the system is leading\nto more conte...
[ { "msg_contents": "Hello\n\nSome time ago we discussed an idea of \"fast temporary tables\":\n\nhttps://www.postgresql.org/message-id/20160301182500.2c81c3dc%40fujitsu\n\nIn two words the idea is following.\n\n<The Idea>\n\nPostgreSQL stores information about all relations in pg_catalog. Some\napplications crea...
[ { "msg_contents": "$SUBJECT sucks.\n\nCreate a table containing lots of composite arrays:\n\nregression=# create table foo (f1 int8_tbl[]);\nCREATE TABLE\nregression=# insert into foo select array[row(1,2),row(3,4)]::int8_tbl[] from generate_series (1,10000000);\nINSERT 0 10000000\nregression=# vacuum analyze f...
[ { "msg_contents": "The CREATE INDEX documentation states:\n\n\"For hash indexes, the value of effective_cache_size is also relevant\nto index creation time: PostgreSQL will use one of two different hash\nindex creation methods depending on whether the estimated index size\nis more or less than effective_cache_s...
[ { "msg_contents": "Hi hackers,\n\nAndres Freund asked me off list what I thought about this part of\nexecGrouping.c, which builds a hash from the hashes of several datums\nin a loop:\n\n /* rotate hashkey left 1 bit at each step */\n hashkey = (hashkey << 1) | ((hashkey & 0x80000000) ? 1 : 0);\n ...
[ { "msg_contents": "hi,\ncan you prompt a programming libraries - collection of hash-fuctions and\nindexes for all situations from dbms till 3d-graphics?\n\nhi,can you prompt a programming libraries - collection of hash-fuctions and indexes for all situations from dbms till 3d-graphics?", "msg_date": "Sun, 3...
[ { "msg_contents": "Hi\n\nI am working on xmltable function. This function is used for simple data\nextraction from XML documents. In this moment I am working on prototype's\nparser.\n\nThe SQL/XML syntax is:\n\nXMLTABLE (\n xmlquery\n PASSING xmldocument\n [COLUMNS columns_list] )\n\ncolumns_list := column_l...
[ { "msg_contents": "Hi all. I know this has been discussed before, I'd like to know what's the\ncurrent position on this.\n\nComparing the performance of the simple vs. extended protocols with pgbench\nyields some extreme results:\n\n$ ./pgbench -T 10 -S -M simple -f /tmp/pgbench.sql pgbench\ntps = 14739.803253 ...
[ { "msg_contents": "Both shm_mq.c and nodeGather.c contain instances of this coding pattern:\n\n WaitLatch(MyLatch, WL_LATCH_SET, 0);\n CHECK_FOR_INTERRUPTS();\n ResetLatch(MyLatch);\n\nI believe this is wrong and the CHECK_FOR_INTERRUPTS needs to be before\nor after the two latc...
[ { "msg_contents": "Hi,\n\nI noticed that the following note about direct modification via \nGetForeignUpperPaths in fdwhandler.sgml is a bit confusing. We have \nanother approach using PlanDirectModify, so that should be reflected in \nthe note as well. Please find attached a patch.\n\n <function>Plan...
[ { "msg_contents": "A few notes on the next PostgreSQL development cycle (the one after 9.6):\n\n- After several rounds of consultations, it has been decided to change\nthe version numbering scheme. Instead of X.Y.Z, future releases will\nhave a two-part version number M.N, where M is the major version number,\...
[ { "msg_contents": "As Peter mentioned in\nhttps://www.postgresql.org/message-id/ba76aeb0-2f84-d180-268f-ea0f5ace4a7b@2ndquadrant.com\nthe decision has been taken to simplify our user-facing version numbering\nsystem to be a two-component number. Since there have been questions\nabout the details of that, I wan...
[ { "msg_contents": "Hi pgsql-hackers,\n\nFollowing the patch to implement strpos with Boyer-Moore-Horspool,\nit was proposed we bring BMH to LIKE as well.\n\nOriginal thread:\nhttps://www.postgresql.org/message-id/flat/27645.1220635769%40sss.pgh.pa.us#27645.1220635769@sss.pgh.pa.us\n\nI'm a first time hacker and...
[ { "msg_contents": "$SUBJECT seems like a pretty bad idea, because it implies a recursive\nentry to ProcessInterrupts and thence to HandleParallelMessages itself.\nBy what reasoning is that call necessary where it's placed?\n\n\t\t\tregards, tom lane\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@p...
[ { "msg_contents": "I noticed $subject while fooling around with the tqueue.c memory leak\nissues. This does not seem like a good idea to me. At the very least,\nit's a waste of space that could be used for something else, and at the\nworst, it might be a security issue because it leaves security-sensitive\npg...
[ { "msg_contents": "As some of you know, I've been working on parallel sort. I think I've\ngone as long as I can without feedback on the design (and I see that\nwe're accepting stuff for September CF now), so I'd like to share what\nI came up with. This project is something that I've worked on\ninconsistently si...
[ { "msg_contents": "Attached patch fixes a minor typo in tuplesort.c\n\ns/child content/child context/g\n\nThanks,\nAmit\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": "Tue, ...
[ { "msg_contents": "Dear list,\n\nI'm interested in pgsql, and would like to know more about the design\ndecisions behind it's features.\nWhere should I search in order to know more about subjects, for example:\n\n - Why in the roles system, user are actually roles with login attribute\n and not a separate e...
[ { "msg_contents": "https://wiki.postgresql.org/wiki/PostgreSQL10_Roadmap\n\n-- \nSimon Riggs http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your sub...
[ { "msg_contents": "Hi,\n\nBack in the bug #14231 thread [1], dealing with performance issues in \nreorderbuffer due to excessive number of expensive free() calls, I've \nproposed to resolve that by a custom slab-like memory allocator, \nsuitable for fixed-size allocations. I'd like to put this into the next \nC...
[ { "msg_contents": "In my understanding, we don't have any regression test for protocol\nlevel prepared query (we do have SQL level prepared query tests,\nthough). Shouldn't we add those tests to the regression test suites?\n\nBest regards,\n--\nTatsuo Ishii\nSRA OSS, Inc. Japan\nEnglish: http://www.sraoss.co.jp...
[ { "msg_contents": "[Sorry for a top post. For unknown reason I couldn' get mails from\npgsql-hackers since this morning and I have to check the archive]\n\n>> In my understanding, we don't have any regression test for protocol\n>> level prepared query (we do have SQL level prepared query tests,\n>> though). Sho...
[ { "msg_contents": "Hi,\n\nCould you please let me know if there is a way to get LSN of each\ntransaction by directly communicating with Postgres server and NOT by\naccessing logs.\n\nThanks!\nJoshua\n\nHi,Could you please let me know if there is a way to get LSN of each transaction by directly communicating wit...
[ { "msg_contents": "Hi all,\n\nIn 9.6 development cycle, we had been discussed about configuration\nsyntax for a long time while considering expanding.\nAs a result, we had new dedicated language for multiple synchronous\nreplication, but it supports only priority method.\nWe know that quorum commit is very usef...
[ { "msg_contents": "This proposal introduces the idea of \"lossy index tuples\", an idea\nthat provides two important optimizations for btrees and potentially\nother index types stimulated by recent blog complaints.\n\nThe two optimizations are Clustered Indexes (mostly for INSERTs) and\nUpdate Duplicate Removal...
[ { "msg_contents": "Hello, \n\nI had an inquiry about the following log messages.\n\n2016-07-20 10:16:58.294 JST,,,3240,,578ed102.ca8,1,,2016-07-20 10:16:50 JST,30/75,0,LOG,00000,\"no left sibling (concurrent deletion?) in \"\"some_index_rel\"\"\",,,,,,,,\"_bt_unlink_halfdead_page, nbtpage.c:1643\",\"\"\n2016-07...
[ { "msg_contents": "Hi All,\n\nmonitoring.sgml file has the list of all the wait event names that is\nbeing monitored by pg_stat_activity but as one of the LWLock named\n'OldSnapshotTimemapLock' was added recently as the part of git commit\n'848ef42b' -->\"Add the \"snapshot too old\" feature\", this lwlock\ninf...
[ { "msg_contents": "Hello,\n\nNeed community's opinion on following behaviour of \\set AUTOCOMMIT\n\nIf \\set AUTOCOMMIT ON is issued after \\set AUTOCOMMIT OFF the commands\nwhich follow after AUTOCOMMIT is set ON are not committed until an explicit\nCOMMIT is issued.\nIts can be surprising to the user to not...
[ { "msg_contents": "Hi\n\nCurrent implementation of PL/Python does not allow the use of\nmulti-dimensional arrays, for both input and output parameters. This forces\nend users to introduce workarounds like casting arrays to text before\npassing them to the functions and parsing them after, which is an\nerror-pro...
[ { "msg_contents": "Hi all\n\nI think we have a bit of a problem with the behaviour specified for logical\nslots, one that makes it hard to prevent a outdated snapshot or backup of a\nlogical-slot-using downstream from knowing it's missing a chunk of data\nthat's been consumed from a slot. That's not great since...
[ { "msg_contents": "\n Hi list.\n\n As has been previously discussed (see \nhttps://www.postgresql.org/message-id/BAY7-F17FFE0E324AB3B642C547E96890%40phx.gbl \nfor instance) varlena fields cannot accept the literal 0x00 value. Sure, \nyou can use bytea, but this hardly a good solution. The problem seems ...
[ { "msg_contents": "Hi,\n\ntesting with sqlsmith shows that the following assertion doesn't hold:\n\n FailedAssertion(\"!(XLogCtl->Insert.exclusiveBackup)\", File: \"xlog.c\", Line: 10200)\n\nThe triggering statements always contain a call to pg_start_backup with\nthe third argument 'true', i.e. it's trying t...
[ { "msg_contents": "Hi,\n\nthe following statement triggers an assertion in tsearch:\n\nselect ts_delete(array_to_tsvector('{smith,smith,smith}'::text[]), '{smith,smith}'::text[]);\n-- TRAP: FailedAssertion(\"!(k == indices_count)\", File: \"tsvector_op.c\", Line: 511)\n\nregards,\nAndreas\n\n\n-- \nSent via pg...
[ { "msg_contents": "Prevent \"snapshot too old\" from trying to return pruned TOAST tuples.\n\nPreviously, we tested for MVCC snapshots to see whether they were too\nold, but not TOAST snapshots, which can lead to complaints about missing\nTOAST chunks if those chunks are subject to early pruning. Ideally,\nthe...
[ { "msg_contents": "Hi all,\n\nWhile reviewing freeze map code, Andres pointed out[1] that\nlazy_scan_heap could accesses visibility map twice and its logic is\nseems a bit tricky.\nAs discussed before, it's not nice especially when large relation is\nentirely frozen.\n\nI posted the patch for that before but si...
[ { "msg_contents": "Hello,\n\nI'd like to propose changing the default value of update_process_title to off, at least on Windows. I'll submit a patch if we see no big problem.\n\n\nPROBLEM\n========================================\n\nOur customer is trying to certify PostgreSQL with their packaged software prod...
[ { "msg_contents": "Write Amplification Reduction Method (WARM)\n====================================\n\nA few years back, we developed HOT to address the problem associated with\nMVCC and frequent updates and it has served us very well. But in the light\nof Uber's recent technical blog highlighting some of the ...
[ { "msg_contents": "Hi all,\n\nI was looking through the buffer manager's code and have noticed that \nfunction PinBuffer has an unused 'strategy' argument. It's seems that \nafter refactoring made by Alexander Korotkov and Andres Freund \n(48354581a49c30f5757c203415aa8412d85b0f70) it became useless. The \nattac...
[ { "msg_contents": "Recently I've encountered a strange crash while calling elog(ERROR, \"...\") \nafter the WaitForBackgroundWorkerShutdown() function. It turns out that \n_returns_ inside the PG_TRY()..PG_CATCH() block are *highly* undesirable, \nsince they leave PG_exception_stack pointing to a local struct i...
[ { "msg_contents": "I am attaching the patch to improve some coverage of hash index code [1].\nI have added some basic tests, which mainly covers overflow pages. It took\n2 sec extra time in my machine in parallel schedule.\n\n\n\n\nHit Total Coverage\nold tests Line Coverage 780 1478 52.7\n\nFunction Coverage 6...
[ { "msg_contents": "Here are two WIP patches to improve the DefElem list processing that is\nused by many utility commands.\n\nOne factors out the duplicate checks, which are currently taking up a\nlot of space with duplicate code. I haven't applied this everywhere\nyet, but the patch shows how much boring code...
[ { "msg_contents": "\"\\echo\" has \"\\qecho\" - I'm basically looking for a \"\\qprint\"\n\n\"\\write\" doesn't apply\n\nThe following doesn't work either...\n\n#bash (stock Ubuntu 14.04)\npsql --set=query_in_var='SELECT version();' > /dev/null <<'SQL'\n\\o /tmp/psql-test.txt\n\\set ECHO queries\n--still ends u...
[ { "msg_contents": "I'm trying to run pgbench on a moderately beefy machine (4-core 3.4GHz\nwith 32G of ram and md mirrored spinning rust drives) at scale 300\nwith 32 clients with duration of 15min. I'm getting TPS numbers\nbetween 60-150 which seems surprisingly low to me and also to several\npeople on IRC.\n\...