threads
listlengths
1
2.99k
[ { "msg_contents": "Hi all,\n\nCurrently, the SCRAM channel binding tls-server-end-point is supported\nonly with OpenSSL 1.0.2 and newer versions as we rely on\nX509_get_signature_nid to get the certificate signature ID, which is the\nofficial way of upstream to get this information as all the contents of\nX509 ...
[ { "msg_contents": "Hi all,\n\nWhile reviewing the MSVC code, I have noticed that pg_config.h.win32 is\nforgetting about a couple of flags defined in pg_config.h.in for v11\ndevelopment. Forgetting some of them is problematic, and here are the\nones I spotted:\n- HAVE_LDAP_INITIALIZE\n- HAVE_X509_GET_SIGNATURE_...
[ { "msg_contents": "Hi!\n\nAs far as I known, columns in GROUP BY could be reordered without loss of \ncorrectness. But reorder could give a benefits in performance. Suggested patch \nimplements that in several ways:\n\n1) Reorder GROUP BY columns by number of unique values in descent order. Simple \nexample sho...
[ { "msg_contents": "https://blogs.msdn.microsoft.com/commandline/2017/12/19/af_unix-comes-to-windows/\n\nThe latest Windows 10 update shipped with AF_UNIX socket support for win32\nsockets.\n\nIt's not that exciting because it doesn't support socketpair() or fd\npassing - yet. So really it doesn't offer us much ...
[ { "msg_contents": "Hi mentors and hackers,\n\n I am working on providing a new plugin where creates new data type\n(thrift). What I am currently planning is to translate cstring to byte for\nthrift_in functions. The cstring should be json format. When I looking at\njson helper functions I find the header\n\n...
[ { "msg_contents": "In the header comment, SnapBuildInitialSnapshot() claims to set\nsnapshot->satisfies to the HeapTupleSatisfiesMVCC test function, and indeed it\nconverts the \"xid\" array to match its semantics (i.e. the xid items eventually\nrepresent running transactions as opposed to the committed ones). ...
[ { "msg_contents": "Hi,\n\n64bit: all tests are OK.\n\n32bit: 2 failures:\n ============== running regression test queries ==============\n test jsonb_plperl ... FAILED\n test jsonb_plperlu ... FAILED\n\nExpected/Result logs attached to this email.\nPerl 5.24.0 .\n\nAny idea?\nWhat about tests on Linux on ...
[ { "msg_contents": "Currently, we can only reuse Sort nodes between WindowAgg nodes iff the\npartitioning and ordering clauses are identical. If a window Sort node\nsortorder is a prefix of another window, we could however reuse the Sort node\nto hopefully produce a cheaper plan. In src/backend/optimizer/plan/...
[ { "msg_contents": "Currently you can't change the ON DELETE action or ON UPDATE action of an\nexisting constraint. You have to drop the constraint and create it again\nwith the action you want. This is not a light-weight activity, as it has\nto validate the new constraint.\n\nIs there a fundamental reason th...
[ { "msg_contents": "Hello hackers,\n\nIn case of OLTP trafic it is hard to catch fast queries in logs (for example,\nyou want to know parameters for only few queries).\n\nYou have to put log_min_duration_statement to 0, do a reload, wait a few\nseconds/minutes, back log_min_duration_statement to a previous value...
[ { "msg_contents": "Hi mentors and hackers,\n\n Found the json API page here\nhttps://www.postgresql.org/docs/9.3/static/functions-json.html\nFor some APIs, it returns set of results, for example, json_each(json) and\njson_object_keys().\nBasically, I want to call these json API inside a plugin, and the return...
[ { "msg_contents": "When reading the JIT developer documentation, a few small wordsmithing issues\nstood out (although this may be due to me not being a native english speaker).\nThe attached patch fixes these to what I think the sentences inteded to say.\n\ncheers ./daniel", "msg_date": "Thu, 31 May 2018 14...
[ { "msg_contents": "Hi\r\n\r\npostgres=# SELECT count(*) from data;\r\n┌─────────┐\r\n│ count │\r\n╞═════════╡\r\n│ 1000000 │\r\n└─────────┘\r\n(1 row)\r\n\r\n\\dt+ can display actual size of partitioned table data - now zero is\r\ndisplayed\r\n\r\npostgres=# \\dt+ data\r\n List of relations...
[ { "msg_contents": "Hi\r\n\r\nCREATE TABLE data(a text, vlozeno date) PARTITION BY RANGE(vlozeno);\r\nCREATE TABLE data_2016 PARTITION OF data FOR VALUES FROM\r\n('2016-01-01') TO ('2016-12-31');\r\nCREATE TABLE data_2017 PARTITION OF data FOR VALUES FROM\r\n('2017-01-01') TO ('2017-12-31');\r\nCREATE TABLE data...
[ { "msg_contents": "I recently read our documentation about reliability on Windows:\n\n> On Windows, if wal_sync_method is open_datasync (the default), write caching can\n> be disabled by unchecking\n> My Computer\\Open\\disk drive\\Properties\\Hardware\\Properties\\Policies\\Enable write caching\n> on the disk....
[ { "msg_contents": "Dear Postgres developers,\n\nI sent this query to the performance list a couple of days ago, but nobody has come up with any suggestions. I was wondering if you'd like to consider it?\n\nIf this is interesting but nobody has time to implement it, then I would potentially be willing to impleme...
[ { "msg_contents": "The core team is pleased to announce the appointment of seven\nnew Postgres committers:\n\nEtsuro Fujita\nPeter Geoghegan\nAmit Kapila\nAlexander Korotkov\nThomas Munro\nMichael Paquier\nTomas Vondra\n\nCongratulations to all!\n\n\t\t\tregards, tom lane\n\n", "msg_date": "Fri, 01 Jun 2018...
[ { "msg_contents": "Hi mentors and hackers,\n\n I have a new type defined like this\nCREATE TYPE thrift_binary (\n INPUT = thrift_binary_in,\n OUTPUT = thrift_binary_out,\n LIKE = bytea\n);\nin thrift_binary_in, it accepts cstring and returns thrift_binary. And in\nthis function I returned a bytea bec...
[ { "msg_contents": "Hi,\n\nPatrick Francelle and I encountered this situation where there was a check\nconstraint on a table using a function to enforce a constraint across two\ndifferent tables. When using pg_dump to dump structure and data we found\nout we couldn't restore it because tables weren't dumped in t...
[ { "msg_contents": "Some assorted comments:\n\n1.\n- When a column is added with <literal>ADD COLUMN</literal>, all existing\n- rows in the table are initialized with the column's default value\n- (NULL if no <literal>DEFAULT</literal> clause is specified).\n- If there is no <literal>DEFAULT</literal...
[ { "msg_contents": "Resending to -hackers\nhttps://www.postgresql.org/message-id/20180527022401.GA20949%40telsasoft.com\n\nIs that considered an actionable problem?\n\nEncountered consistently while trying to reproduce the vacuum full\npg_statistic/toast_2619 bug; while running a loop around VAC FULL and more in...
[ { "msg_contents": "Hi\n\nI am sending my ToDo for PostgreSQL 12 - a list of features what I would to\ndevelop or I would to participate on:\n\n1. schema variables - CREATE VARIABLE command\n2. using pgbench expressions for psql - review, cooperation\n3. JSON related patches - review\n4. optimization expression ...
[ { "msg_contents": "Hi,\n\nHash Aggs and SetOps are currently not spilled to disk. If the planner's \nestimate on the number of entries is badly off, you might run out of \nmemory at execution time, if all the entries don't fit in memory.\n\nFor HashAggs, this was discussed in depth a couple of years ago at [1]....
[ { "msg_contents": "Hi,\n\nMy colleague encountered the problem that WAL replay took a long time\nin the standby with large shared_buffers when he dropped the database\nusing many tablespaces. As far as I read the code, this happens because\nDROP DATABASE generates as many XLOG_DBASE_DROP WAL records as\nthe num...
[ { "msg_contents": "Per decision from the developer meeting, there will be a commitfest\n2018-07 (unless there are concerns from the RMT).\n\nCould we set up the commitfest app appropriately?\n\nThere were some discussions about renaming the existing 2018-09 entry\nversus inserting a new one at -07 and requiring...
[ { "msg_contents": "The user docs say about column defaults: \"The value is any variable-free\nexpression (subqueries and cross-references to other columns in the current\ntable are not allowed)\"\n\nAnd also say about pg_get_expr \"If the expression might contain Vars,\nspecify the OID of the relation they refe...
[ { "msg_contents": "Hi,\nI noticed what seems like a bug in collation.\n\nThis query errors out:\nSELECT (SELECT 'c' COLLATE \"de_DE\") > (SELECT 'ç' COLLATE \"es_ES\"); --\nerror\n\nWhile this query does not:\nSELECT 'c' COLLATE \"de_DE\" > (SELECT 'ç' COLLATE \"es_ES\"); -- no error\n\nIt seems like this is ...
[ { "msg_contents": "Hi,\n\nWhen a SUBSCRIPTION is altered, then the currently running\ntable-synchronization workers that are no longer needed for the\naltered subscription, are terminated. This is done by the function\nAtEOXact_ApplyLauncher() inside CommitTransaction(). So during each\nALTER-SUBSCRIPTION comma...
[ { "msg_contents": "Hi,\n\nOn my win-7, I am facing $SUBJECT. I am consistently getting below error:\nCopying build output files...Could not copy postgres.exe\n at install.pl line 26.\n\nOn digging, I found that it started failing with commit 3a7cc727 (Don't\nfall off the end of perl functions). It seems that ...
[ { "msg_contents": "Hi!\n\nCurrently _bt_search() always locks leaf buffer in shared mode (aka BT_READ),\nwhile caller can relock it later. However, I don't see what prevents\n_bt_search()\nfrom locking leaf immediately in exclusive mode (aka BT_WRITE) when required.\nWhen traversing downlink from non-leaf page...
[ { "msg_contents": "Here is a follow up patch to last weeks commit allowing all perl files \nto be checked clean for compile time errors and warnings.\n\n\nThe patch contains a simple script to run the checks. The code that \nfinds perl files is put in a function in a single file that is sourced \nby the three l...
[ { "msg_contents": "Right now, when a TAP test reports a failure, it looks something like this:\n\n # Failed test 'creating a replication slot'\n # at\n/....../postgresql/src/bin/pg_basebackup/../../../src/test/perl/TestLib.pm\nline 371.\n\nThat file location is where we call out to the test function provide...
[ { "msg_contents": "At my talk at pgcon last Friday [1] I presented some ideas for how \npeople could run a full buildfarm run against their code, including a 4 \nline recipe using some Docker recipes I had created. Thomas Munro \nsuggested it would be even nicer if you could just point something like \nAppveypr...
[ { "msg_contents": "Folks,\n\nHere's my attempt to $subject. I've tested with vim, but I'm much less\ncertain I got the EMACS code right.\n\nIs there any interest in such a feature?\n\nBest,\nDavid.\n---\n .dir-locals.el | 3 ++-\n src/tools/editors/vim.samples | 1 +\n 2 files changed, 3 insertions...
[ { "msg_contents": "Hi,\n\nWhile prototyping codegen improvements for JITed expression evaluation,\nI once more hit the issue that the FunctionCallInfoData structs are\nreally large (936 bytes), despite arguments beyond the fourth barely\nevery being used. I think we should fix that.\n\nWhat I think we should d...
[ { "msg_contents": "Hi,\n\nIn my understanding FunctionCallInfoData is basically per-call data,\nwhereas FmgrInfo is information about the function. It makes some sense\nthat ->context is in FunctionCallInfoData, after all it's used for\nper-row data like the trigger context. But we don't really change the\nco...
[ { "msg_contents": "Hello Hackers!\n\nMy name is Kefan Yang, and I am working on my Google Summer of Code 2018 project. For the first evaluation, I should be able to hand in:\n1. the benchmark implementations of introsort, timsort, dual-pivot quicksort and radixsort.\n2. Phase 1(random array) and 2(worst case) ...
[ { "msg_contents": "Hi,\n\nAs of now partition_join.sql is not having test cases covering cases\nwhere partition table have default partition, attaching a small test\ncase patch to cover those.\n\nHere is a link of previous discussion :\nhttps://www.postgresql.org/message-id/CAKcux6%3DLO-\nXK9G0yLe634%2B0SP2UOn5...
[ { "msg_contents": "Hello!\n\nI'm working on adding to psql commands to print information about access methods. I ran into the following problem:\nThe command \"\\dA\" (as well as several commands that I write) accept the access method name template. The resulting template is processed by the processSQLNamePatte...
[ { "msg_contents": "It would be nice, if we could push down join quals into subqueries. For \nexample:\n\ncreate table small_table (i int);\ncreate table big_table (i int, j int);\n\ninsert into small_table values (1), (2); -- two rows\ninsert into big_table select g/10, g from generate_series(1, 100000) g; \n--...
[ { "msg_contents": "Hi,\n\nWhile looking at a profile I randomly noticed that we spend a surprising\namount of time in snprintf() and its subsidiary functions. That turns\nout to be\n if (strcmp(portal->commandTag, \"SELECT\") == 0)\n snprintf(completionTag, COMPLETION_T...
[ { "msg_contents": "Hi.\n\nA comment in ExecUpdate refers to an argument of ExecConstraints that no\nlonger exists. Attached fixes that, but I'm about over a year too late\n[1] in sending this patch.\n\nThanks,\nAmit\n\n[1]\nhttps://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=c0a8ae7be392", "...
[ { "msg_contents": "The README didn’t get the memo when set_base_rel_pathlist was renamed in\n6543d81d659f417. Use the right name, set_base_rel_pathlists, as per the\nattached.\n\ncheers ./daniel", "msg_date": "Thu, 7 Jun 2018 12:28:24 +0200", "msg_from": "Daniel Gustafsson <daniel@yesql.se>", "msg_...
[ { "msg_contents": "I have developed a patch that allows declaring cursors over prepared\nstatements:\n\n DECLARE cursor_name CURSOR FOR prepared_statement_name\n [ USING param, param, ... ]\n\nThis is an SQL standard feature. ECPG already supports it (with\ndifferent intern...
[ { "msg_contents": "The proposed Postgres Code of Conduct [1] calls for an investigation\nand enforcement committee, which is to be appointed by and ultimately\nanswerable to the core team, though no core members may sit on it.\n\nThe core team is pleased to announce that Stacey Haysler has agreed\nto serve as t...
[ { "msg_contents": "Hi,\n\nIn the pluggable storage unconference session in Ottawa,\ncolumn oriented storage was a key point of discussion. We would like\nto share an overview of Greenplum's column store. We hope that this\nwill aid a discussion to carve out a pluggable storage interface.\nThis is just an over...
[ { "msg_contents": "We didn't update those for beta1, as we usually do. Should we do it for\nbeta2?\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support, Remote DBA, Training & Services\n\n", "msg_date": "Thu, 7 Jun 2018 22:05:56 -0400", "msg_from": "Pe...
[ { "msg_contents": "Hi folks,\n\nI ran into an issue where, on Postgres instances that have a very large\nnumber of databases per cluster (~15K), the autovacuum process seems to\nhave a very high impact on CPU usage. Specifically, it is the autovacuum\nlauncher process, not the workers. The launcher process eats...
[ { "msg_contents": "Hello,\n\nSometimes I have to maintain two similar database and I have to update one\nfrom the other and notice having the option to add ON CONFLICT DO NOTHING\nclause to INSERT command in the dump data will allows pg_restore to be done\nwith free of ignore error.\n\nThe attache patch add --o...
[ { "msg_contents": "Hi,\n\n\nI obtained an XX000 error testing my DSS application with PostgreSQL 11 beta 1.\n\nHere is a simplified version of my test, no data in the tables :\n\n\n-- 11\nselect version();\n version\n\n--------------------------------------...
[ { "msg_contents": "We have occasional need to run very long-running pl/tcl scripts. If the request is cancelled (say, by the user hitting ^c in psql) the server-side script still runs to completion.\r\n\r\nThere is a C-level variable QueryCancelPending that can be used to monitor for this case, but it’s not vis...
[ { "msg_contents": "I've noticed a steady trickle of reports of postgresql servers being compromised via being left available to the internet with insecure or default configuration, or brute-forced credentials. The symptoms are randomly named binaries being uploaded to the data directory and executed with the pe...
[ { "msg_contents": "On hot standby I faced with the similar problem.\n\n\nThe following simple query:\n\nSELECT array_to_json(array_agg(t)) from (\n     select *\n         from     main.message m\n             join main.message_instance mi on m.message_id = mi.message_id\n             join main.channel_type ct o...
[ { "msg_contents": "I created this wiki page:\n\nhttps://wiki.postgresql.org/wiki/PostgreSQL_vs_SQL_Standard\n\nI'd been thinking of collecting this information for a while, but was\nspurred into further action when someone referred me to Markus Winand's\nPGCon talk slides.\n\nI think I got all the issues I curr...
[ { "msg_contents": "Fix and document lock handling for in-memory replication slot data\n\nWhile debugging issues on HEAD for the new slot forwarding feature of\nPostgres 11, some monitoring of the code surrounding in-memory slot data\nhas proved that the lock handling may cause inconsistent data to be read\nby r...
[ { "msg_contents": "\nI've been looking over the older items in the CF, specifically those in \nthe \"bug fix\" category.\n\nSix of them are marked \"ready for committer\" and all of those have a \ncommitter named as either author or reviewer. It would be good to get \nthose committed as soon as possible. So Hei...
[ { "msg_contents": "I find that the JIT stuff has broken cpluspluscheck for me, along\nwith a related script that I use to verify that each header builds\ncleanly standalone (ie with no prerequisites except postgres.h).\nThere are two problems:\n\n(1) Doesn't work on a platform without the llvm header files:\n\n...
[ { "msg_contents": "On Tue, Jun 5, 2018 at 7:13 PM, Masahiko Sawada <sawada.mshk@gmail.com> wrote:\n> On Sat, May 26, 2018 at 12:25 AM, Robert Haas <robertmhaas@gmail.com> wrote:\n>> On Fri, May 18, 2018 at 11:21 AM, Masahiko Sawada <sawada.mshk@gmail.com> wrote:\n>>> Regarding to API design, should we use 2PC f...
[ { "msg_contents": "Hi all,\n\nAs you know PLPython and PLR are untrusted language, which means only DBA\ncould create these UDFs(very inconvenient). Moreover it's also hard to\nsupply user specific Python/R env for different data scientists.\n\nWe are working on an open source project to make PLPython and PLR ...
[ { "msg_contents": "Hi,\n\nThe Release Management Team is pleased to announce that\nthe release date for PostgreSQL 11 Beta 2 is set to be 2018-06-28,\nwhich is roughly a month after Beta 1 released.\n\nWe appreciate everyone’s diligent effort fixing open issues[1] and we\nhope to get even more closed before the...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 15237\nLogged by: zhou xiaowei\nEmail address: 110876189@qq.com\nPostgreSQL version: 11beta1\nOperating system: centos\nDescription: \n\nOn PostgreSQL 11 Beta, I exec sql like \"update\nfvt_obj_ope...
[ { "msg_contents": "Hi All,\n\nI am not able to find any docs suggesting that PostgreSQL logical\nreplication supports\ncross platform servers (windows --> Linux or vice-versa).\n\nWhen I tried with simple basic commands and it worked and also some of the\nother members are also suggesting to use logical replica...
[ { "msg_contents": "Hi All\n\nIs it possible to use CREATE FUNCTION to link a shared library that\ndoesn't yet exist? I don't think it is, but I might be missing\nsomething.\n\nIf not, would it be something that people would be open to a patch\nfor? I'm thinking of e.g.\n\nCREATE [ OR REPLACE ] FUNCTION\n nam...
[ { "msg_contents": "Hi pg-hackers,\n\nI'm trying to fix some of limitations in table inheritance. My first use \ncase concerns \"referencing\" foreign keys in parent table.\n\nThe attached patch propagates foreign keys to inherited tables. I'm \nautomatically cloning foreign keys from parent table into children ...
[ { "msg_contents": "Hi,\n\nI add a function called ECPGfreeSQLDA() becasue there is no API for releasing the SQLDA stored the result set.\n\nAn example of usage is as follows.\nSpecify a pointer to sqlda_t to be released as an argument. \n\nExample:\n exec sql begin declare section;\n char *stmt1 = ...
[ { "msg_contents": "Hi,\n\nI am getting server crash with below query.\n\nCREATE TABLE pagg_tab (a int, b int, c text) PARTITION BY LIST(c);\nCREATE TABLE pagg_tab_p1 PARTITION OF pagg_tab FOR VALUES IN ('0000',\n'0001', '0002', '0003');\nCREATE TABLE pagg_tab_p2 PARTITION OF pagg_tab FOR VALUES IN ('0004',\n'00...
[ { "msg_contents": "Hi,\n\nThree functions: brin_summarize_new_values, brin_summarize_range and\nbrin_desummarize_range can be called during recovery as follows.\n\n=# select brin_summarize_new_values('a_idx');\nERROR: cannot acquire lock mode ShareUpdateExclusiveLock on database\nobjects while recovery is in p...
[ { "msg_contents": "Hi,\n\nIt seems temp tables with partitioned tables is not working correctly.\n9140cf8269b0c has not considered that in build_simple_rel() an\nAppendRelInfo could be missing due to it having been skipped in\nexpand_partitioned_rtentry()\n\nAssert(cnt_parts == nparts); fails in build_simple_re...
[ { "msg_contents": "There was very interesting presentation at pgconf about pg_prefaulter:\n\nhttp://www.pgcon.org/2018/schedule/events/1204.en.html\n\nBut it is implemented in GO and using pg_waldump.\nI tried to do the same but using built-on Postgres WAL traverse functions.\nI have implemented it as extension...
[ { "msg_contents": "Hello,\r\n\r\nPrevious thread: https://postgr.es/m/4BC0F3CD-F4B5-4F23-AADB-80607F9E4B4E%40amazon.com\r\n\r\nThis is a new thread for tracking the work to add SKIP LOCKED to\r\nVACUUM and ANALYZE. I've attached a rebased set of patches.\r\n\r\nNathan", "msg_date": "Wed, 13 Jun 2018 20:29:...
[ { "msg_contents": "I just noticed a problem with log_statement = 'ddl' and log_line_prefix\ncontaining '%x'. If the statement is the first in the transaction, it\nwill be logged before it is executed, and more importantly, before a\ntransaction ID is assigned. That means that %x will be 0.\n\nIf the administr...
[ { "msg_contents": "Hi,\n\nSeveral features in various discussed access methods would benefit from\nbeing able to perform actions when writing out a buffer. As an example,\nbecause it doesn't require understanding any of the new proposed storage\nformats, it'd be good for performance if we could eagerly set hint...
[ { "msg_contents": "Hi mentors and hackers,\n\n The first evaluation is coming. Here is my progress so far. During the\nfirst stage of work, I have implemented the thrift binary protocol as the\nformat of postgresql plugin. Currently, the main interface is byte. Users\nwho use this plugin need to provide thrif...
[ { "msg_contents": "Hello everyone.\n\nI am a newcomer to PostgreSQL, and I don't know if it is proper to post my\nquestion here, but I really need some help.\n\nCurrently I am reading and testing code about Client Authentication, but I\nfind that there are two progresses forked if I login using psql, while only...
[ { "msg_contents": "Hi,\n\nI have postgres edb 9.6 version, i have below query to solve it out.\n\ni have configured streaming replication having master and slave node\non same server just to test it.\n\nAll worked fine but when i made slave service stop, and create some\ntest databases in master, after then i ...
[ { "msg_contents": "Hi\n\nntile() throws ERROR when hashagg is false, test case given below.\n\npostgres=# create table foo (a int, b int, c text);\nCREATE TABLE\npostgres=# insert into foo select i%20, i%30, to_char(i%12, 'FM0000') from\ngenerate_series(0, 36) i;\nINSERT 0 37\npostgres=# explain select ntile(a)...
[ { "msg_contents": "Hi,\n\nI am getting a server crash for below test case.\n\npostgres=# CREATE TABLE test( c1 int, c2 int, c3 text) partition by\nrange(c1);\nCREATE TABLE\npostgres=# create table test_p1 partition of test for values from\n(minvalue) to (0);\nCREATE TABLE\npostgres=# create table test_p2 partit...
[ { "msg_contents": "On 13-06-2018 22:59, Alvaro Herrera wrote:\n> For context: in the backend, elog() is only used for internal messages\n> (i.e. \"can't-happen\" conditions), and ereport() is used for user-facing\n> messages. There are many things ereport() has that elog() doesn't, \n> such\n> as additional me...
[ { "msg_contents": "I've been thinking about using heap TID as a tie-breaker when\ncomparing B-Tree index tuples for a while now [1]. I'd like to make\nall tuples at the leaf level unique, as assumed by L&Y. This can\nenable \"retail index tuple deletion\", which I think we'll probably end\nup implementing in so...
[ { "msg_contents": "Hi,\n\nThe following behavior does not seem self-consistent to me:\n\npostgres=# select json_agg(row_to_json(x)) from (select *, null from\ngenerate_series(1, 3)) x;\n json_agg\n-------------------------------------------------------------...
[ { "msg_contents": "I've identified the underlying cause of the misbehavior reported in\nhttps://www.postgresql.org/message-id/7cb957dd12774a52ac8a680b73910c5b@imaginesoftware.com\nand it's a bit embarrassing: we're doing dependency logging for casts\nall wrong. A cast expression produces a FuncExpr parse node,...
[ { "msg_contents": "Memory is allocated twice for \"file\" and \"files\" variables. Possible fix:\n\ndiff --git a/src/backend/storage/file/buffile.c b/src/backend/storage/file/buffile.c\nindex d8a18dd3dc..00f61748b3 100644\n--- a/src/backend/storage/file/buffile.c\n+++ b/src/backend/storage/file/buffile.c\n@@ -2...
[ { "msg_contents": "Hi,\n\nI am getting \"ERROR: did not find all requested child rels in\nappend_rel_list\" when enable_partition_pruning is on for below test case.\n\nCREATE TABLE test(c1 int, c2 int) PARTITION BY RANGE(c1);\nCREATE TABLE test_p1 PARTITION OF test FOR VALUES FROM (minvalue) TO (0);\nCREATE TA...
[ { "msg_contents": "While hacking around the planner, the \"callback\" mechanism in \nquery_planner started to feel awkward. It would seem more natural to \nsplit query_planner() into two parts: one function to do all the \npre-processing of the jointree, building equivalence classes etc. And a \nsecond function...
[ { "msg_contents": "I propose removing the \"Included attributes in B-tree indexes\"\ntop-level section of chapter 63 from the user facing documentation.\nChapter 63 concerns B-Tree operator classes themselves, in the\nabstract, so the fact that an operator class isn't needed for extra\ncovering index columns is...
[ { "msg_contents": "I noticed that ParseFuncOrColumn isn't terribly thorough about rejecting\nnon-procedure results when proc_call is true. Since the caller is just\nassuming that it gets back what it expects, that leads to core dumps\nor worse:\n\nregression=# call int4(42);\nserver closed the connection unexp...
[ { "msg_contents": "Hi,\n\nAfter pg_upgrade, the data in Postgres is corrupted.\n\n1. Postgres 9.4, stop db with \"immediate\" mode\n2. Run pg_upgrade, to upgrade to Postgres 10.4\n3. Start Postgres 10 and run vacuum full, got a bunch of \"concurrent insert\nin progress\". Looks like the data is corrupted. (Load...
[ { "msg_contents": "Hi,\nI have written a code for quick indextuple deletion from an relation by \nheap tuple TID. The code relate to \"Retail IndexTuple deletion\" \nenhancement of btree index on postgresql wiki [1].\nBriefly, it includes three steps:\n1. Key generation for index tuple searching.\n2. Index rela...
[ { "msg_contents": "Back in the v11 cycle, there was just not quite enough time to get the\nMergeAppend run-time partition pruning patch in.\n\nI've attached v24 of this patch. The only changes done from v23 [1]\nare to re-base the patch atop of current master. There's was a bit of\nchurn in the partition pruni...
[ { "msg_contents": "Hi,\n\nBelow test case crashed, when set enable_partitionwise_aggregate to true.\n\nCREATE TABLE part (c1 INTEGER,c2 INTEGER,c3 CHAR(10)) PARTITION BY\nRANGE(c1);\nCREATE TABLE part_p1 PARTITION OF part FOR VALUES FROM (MINVALUE) TO (500);\nCREATE TABLE part_p2 PARTITION OF part FOR VALUES FR...
[ { "msg_contents": "Hi all,\n\nI would like to start a discussion on Index Skip Scan referred to as \nLoose Index Scan in the wiki [1].\n\nMy use-case is the simplest form of Index Skip Scan (B-Tree only), \nnamely going from\n\nCREATE TABLE t1 (a integer PRIMARY KEY, b integer);\nCREATE INDEX idx_t1_b ON t1 (b)...
[ { "msg_contents": "\nThis is a MySQL feature, where an index is not considered by the \nplanner. Implementing it should be fairly straightforward, adding a new \nboolean to pg_index, and options to CREATE INDEX and ALTER INDEX. I \nguess VISIBLE would become a new unreserved keyword.\n\nThe most obvious use cas...
[ { "msg_contents": "Hi all,\n\nWhile look at the handling of temporary relations with partition trees,\nI have noticed that there are no tests for inheritance trees with temp\ntables. This has been mentioned here:\nhttps://www.postgresql.org/message-id/20180618060200.GG3721@paquier.xyz\n\nAttached is a patch to...
[ { "msg_contents": "Hello hackers,\n\nAndres Freund diagnosed a case of $SUBJECT in a customer's 9.6 system.\nI've written a minimal reproducer and a prototype patch to address the\nroot cause.\n\nThe problem is that StandbyReleaseLocks() does a linear search of all\nknown AccessExclusiveLocks when a transaction...
[ { "msg_contents": "Hi.\n\nThe description of DEFAULT in the documentation currently says:\n\n\"The value is any variable-free expression (subqueries and\ncross-references to other columns in the current table are not allowed).\"\n\nBut the value cannot be an aggregate expression, a window function, or a\nset-re...
[ { "msg_contents": "In looking over pg_verify_checksums I found a few small things that I think\nwould improve on it:\n\n* pg_verify_checksums was placed in the Client Utils section in the docs.\nSince it requries physical access to the cluster datafiles it seems to belong\nin the Server Utils section.\n\n* The ...
[ { "msg_contents": "Hi all,\n\nI just read an article about a recent architecture change in newer Intel processors.\n\nAs mentioned in \n\n[1] https://aloiskraus.wordpress.com/2018/06/16/why-skylakex-cpus-are-sometimes-50-slower-how-intel-has-broken-existing-code/ \n\nIntel changed the latency respective recipro...
[ { "msg_contents": "Hello,\n\nI would like to resubmit the MERGE patch for PG12. The past discussions\nabout the patch can be found here [1] [2].\n\nThe patch is rebased on the current master. But otherwise I haven't done\nany further work on it since it was punted from PG11. Couple of hackers had\nexpressed des...
[ { "msg_contents": "AFAICS, the fast-default patch neglected to consider what happens if\na database containing columns with active attmissingval entries is\npg_upgraded. I do not see any code in either pg_dump or pg_upgrade that\nattempts to deal with that situation, which means the effect will be\nthat the \"...
[ { "msg_contents": "FYI, you can now see all the commits since the most recent beta in\npglife (http://pglife.momjian.us/). It is the plus sign link after \"11\nbeta\". The link currently is:\n\n\thttps://git.postgresql.org/gitweb/?p=postgresql.git;a=shortlog;h=refs/heads/master;hp=586e4e6df5b85ddd28c9e881d237...