threads
listlengths
1
2.99k
[ { "msg_contents": "Today I realized a number of points where PostgreSQL (v10.3) is rather\nlackluster and sparse in its error messages.\n\nThe first point is illustrated by this code:\n\ndrop schema if exists X cascade;create schema X;\ncreate domain X.an_illegal_regex as text check ( value ~ '(' );\ncreate tab...
[ { "msg_contents": "Hi, Hackers\n\nThe attached small patch is a modification to the test program of the function recently added to ECPG.\n[Add Oracle like handling of char arrays.]\n https://git.postgresql.org/pg/commitdiff/3b7ab4380440d7b14ee390fabf39f6d87d7491e2\n\nWhen the char_array program is executed, ...
[ { "msg_contents": "What is the type of proposal should I submit here ? What kind or on what basis should I build my proposal so that I may get easily selected or chances for my selection is high ?\n\nSent from Mail for Windows 10\n\n\nWhat is the type of proposal should I submit here ? What kind or on what basi...
[ { "msg_contents": "Hi,\n\nI have found a case which could get segmentation fault when using GROUPING SETS.\nIt occurs when columns in GROUPING SETS are all unsortable but hashable.\n\nAttached grouping_sets_segv.zip include module to reproduce this problem.\n\nI think it made from below change.\n\nhttps://www.p...
[ { "msg_contents": "Hi everyone,\n\nI am Kefan Yang, a third-year Computing Science student from Simon Fraser\nUniversity, Canada. I am very interested in the *sorting algorithm\nbenchmarking and implementation* issue you mentioned on the idealist of\nGoogle Summer of Code 2018.\n\nI am currently working on my p...
[ { "msg_contents": "I am trying to develop a small proof-of-concept patch for a proposal I\nhave, but recently I found that initdb started segfaulting after I did a\ngit pull. I used git bisect and it identified the following commit as the\nfirst one with the problem:\n\n1733460f0205fc6d6bbe4c14911049a918c6e073 ...
[ { "msg_contents": "Hi all,\n\nI have submitted my proposal and sent an email asking for feedback in the\nlast 24 hours, but I didn't get any.\n\nCould you please give me some feedback on how to improve it?\n\nThanks a lot in advance!\n\nHi all,I have submitted my proposal and sent an email asking for feedback i...
[ { "msg_contents": "The SQL standard overloads WITH in a query to supply not only CTEs\nbut also lexically-scoped option settings:\n\n WITH XMLBINARY BASE64, foo(bar) AS (VALUES('\\xDEADBEEF'::bytea))\n SELECT XMLELEMENT(name foo, XMLATTRIBUTES(bar)) FROM foo;\n\nPG already implements XMLBINARY and XMLOPTION usi...
[ { "msg_contents": "Hi Magnus,\n\nWas $subject intentional?\n\nGreetings,\n\nAndres Freund\n\n", "msg_date": "Sun, 18 Mar 2018 12:24:07 -0700", "msg_from": "Andres Freund <andres@anarazel.de>", "msg_from_op": true, "msg_subject": "include/pgtar.h is missing include guards?" }, { "msg_cont...
[ { "msg_contents": "Hi,\n\nI've just realized, that looks like there is one edge-case in the current jsonb\nimplementation, that can be quite confusing, and I couldn't find any related\ndiscussion about it. From what I see there is no limit for how many nested\nlevels can be in a jsonb field, and e.g. when a jso...
[ { "msg_contents": "Hi,\n\nI got a bit confused running installcheck-world and seeing ecpg\nfailures like:\n [NO_PID]: ECPGconnect: opening database <DEFAULT> on <DEFAULT> port <DEFAULT> for user regress_ecpg_user2\n [NO_PID]: sqlca: code: 0, state: 00000\n-[NO_PID]: ECPGconnect: could not open database: FATAL:...
[ { "msg_contents": "This is a proposal for a Postgres feature enhancement. I've attached a\npreliminary patch. However, the patch is extremely preliminary: there is no\ndocumentation or testing change, and I think I actually want to make the\nchange itself in a different way from what this 2-line patch does.\n\n...
[ { "msg_contents": "While looking at the performance problem Jeff Janes reported recently[1],\nI noticed several other pre-existing deficiencies in the way that\nrefresh_by_match_merge() generates its query for constructing the diff\ntable:\n\n1. It doesn't require the selected unique index(es) to be indimmediat...
[ { "msg_contents": "Spotted a typo in be_tls_write(), fix attached.\n\ncheers ./daniel", "msg_date": "Mon, 19 Mar 2018 10:28:51 +0100", "msg_from": "Daniel Gustafsson <daniel@yesql.se>", "msg_from_op": true, "msg_subject": "Typo in be_tls_write" }, { "msg_contents": "On Mon, Mar 19, 2018 ...
[ { "msg_contents": "When fixing review comments for error message style on another patch, I noticed\nthat there were a few error details/hints/contexts that weren’t following the\nstyle guide in the documentation. This might be intentional from when they\nwere added, or we intentionally avoid changing after the...
[ { "msg_contents": "So I just went through a rather annoying process trying to run\ncheck-world on a Fedora 26 box where I hadn't done it before:\n\n$ ./configure --enable-tap-tests\n... fails, whining about IPC::Run\n$ sudo yum install perl-IPC-Run\n$ ./configure --enable-tap-tests\n... fails, whining about pro...
[ { "msg_contents": "Getting some concerning errors in one of our databases that is on 9.5.11,\non autovacuum from template0 database pg_authid and pg_auth_members. I\nonly saw some notes on the list about this error related to materialized\nviews. FWIW, we did use pg_upgrade to upgrade this database from 9.4 t...
[ { "msg_contents": "I'm new to PostgreSQL but not to Unix or databases, and am reading the\n(wonderful) docs and learning. I tried to determine which mailing list to\nsend this to, and this one seems to fit best.\n\nJust for fun, I am trying to build postgres from source on FreeBSD 11. Yes,\nI know I don't need ...
[ { "msg_contents": "Hello,\n\nI'm seeing the following behavior with a trigger file which is very\nconfusing to me, I'd like to get some advice of what is the expected\nbehavior of the trigger file with the standby.\n(I'm cross-posting this from pgsql-general as I didn't get the response\nthere.)\n\n1. setup the...
[ { "msg_contents": "Hi,\n\nLong transactions often annoy users because if a long transaction\nexists on a database vacuum cannot reclaim efficiently. There are\nseveral reason why they exist on a database but it's a common case\nwhere users or applications forget to commit/rollback transactions.\nThat is, transa...
[ { "msg_contents": "Hi\n\nI have a talk with Alex Stanev about known issue that block indexes - bad\nparam types\n\npostgres=# do $$\ndeclare _id numeric = 777722;\nbegin\n perform * from bigtable where a = _id;\nend;\n$$;\nDO\nTime: 108,775 ms\npostgres=# do $$\ndeclare _id numeric = 777722;\nbegin\n perform ...
[ { "msg_contents": "The following bug has been logged on the website:\n\nBug reference: 15122\nLogged by: Asier Lostalé\nEmail address: asier.lostale@openbravo.com\nPostgreSQL version: 9.3.22\nOperating system: ubuntu\nDescription: \n\nUsing only public schema, data in tables that use...
[ { "msg_contents": "I suppose the current definition in the higher scope is not intentional. This\nis what I suggest:\n\ndiff --git a/src/backend/optimizer/plan/planner.c b/src/backend/optimizer/plan/planner.c\nnew file mode 100644\nindex 9c4a1ba..ae35e1e\n*** a/src/backend/optimizer/plan/planner.c\n--- b/src/ba...
[ { "msg_contents": "Is there any reason for not handling T_TargetEntry node kind in \nexprType() function in nodeFuncs.c?\nIs it considered as non-valid expression tag?\nBut why in this case it is handled in the exprLocation function?\n\n-- \nKonstantin Knizhnik\nPostgres Professional: http://www.postgrespro.com...
[ { "msg_contents": "G'day all,\n\nwhat is the recommended method to dump the steps[] array of EvalSteps for a\ncompiled expression, showing the opcodes themselves as well as\ndetails/arguments for the various opcodes? (I am asking out of curiosity\nand for teaching purposes.) This must have been done plenty of t...
[ { "msg_contents": "Fix CommandCounterIncrement in partition-related DDL\n\nIt makes sense to do the CCIs in the places that do catalog updates,\nrather than before the places that error out because the former ones\nfail to do it. In particular, it looks like StorePartitionBound() and\nIndexSetParentIndex() oug...
[ { "msg_contents": "Hi All,\n\nI am looking forward to working with PostgreSQL organization In GSoC 2018.\n\nI have created Proposal for \"Develop Performance Farm Database and Website\"\nProject. Please,\n\nPlease, can you review it send comments?\n\nThanks, Have a nice day\n\nRegards,\nGarima Natani\nMtech, CS...
[ { "msg_contents": "Hi hackers,\n\nI regularly type \"make docs\" *doh* \"gmake docs\" on one system and\n\"gmake docs\" *doh* \"make docs\" on another. Is there any reason we\nshouldn't add it, for consistency with other targets like check,\ninstallcheck etc? Patch attached.\n\n-- \nThomas Munro\nhttp://www.e...
[ { "msg_contents": "Hi,\n\nwhile working on something else, I noticed that some error messages in\npg_basebackup do not have a \"\\n\" at the end, resulting in output like:\n\n|pg_basebackup: could not get COPY data stream: pg_basebackup: removing\n|data directory \"data2\"\n\nPatch attached.\n\n\nMichael\n\n-- ...
[ { "msg_contents": "Hi,\n\nper suggestion from my colleague Christoph Berg, it seems to make sense\nto allow setting the (permanent) replication slot in recovery.conf even\nif we don't stream WAL, i.e. allow\n\npg_basebackup -D foo -R --slot=foo -C -X none\n\nCurrently you get an error message \"replication slot...
[ { "msg_contents": "In https://postgr.es/m/32497.1519858483@sss.pgh.pa.us\nI griped about a weird make failure I was having with VPATH builds.\nI did not push the patch I suggested at the time, because I didn't\nunderstand why it seemed to resolve the issue, and because neither\nI nor anyone else could reproduce...
[ { "msg_contents": "Hello Kackers,\n\nAs a new user of PostgreSQL, I have started using pg_stat_statements, and\nwas pleased but a little surprised: \n\nFirst of all, the normalized form of the query string makes it impossible to\nbe used in EXPLAIN commands.\nSecond, normalized constants and parameters values w...
[ { "msg_contents": "​If you want to know how PostgreSQL compares to other databases, or are\nlooking for ideas on areas to improve, the jOOQ blog looks like a good\nresource: https://blog.jooq.org/. jOOQ is a java library that provides a\ndatabase-agnostic way to access many different types of databases. I know\...
[ { "msg_contents": "On Thu, Mar 22, 2018 at 11:42 AM, Pavan Deolasee\n<pavan.deolasee@gmail.com> wrote:\n> A slightly improved version attached.\n\nYou still need to remove this change:\n\n> diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h\n> index a4574cd533..dbfb5d2a1a 100644\n> --- a/src/include...
[ { "msg_contents": "Hi,\n\nwhile looking at brin_inclusion.c, I've noticed that the comment about\nINCLUSION_UNMERGEABLE and INCLUSION_CONTAINS_EMPTY uses incorrect values\n(1 instead of 2). Attached is a simple fix.\n\nBut perhaps it would be better to use the constants in the comment.\n\nregards\n\n-- \nTomas ...
[ { "msg_contents": "Hi,\nBuildTupleFromCStrings() has comment \"/* Call the \"in\" function for\neach non-dropped attribute */\". It then calls the in function even\nwhen it's going to set that attribute to NULL.\n1189 if (!TupleDescAttr(tupdesc, i)->attisdropped)\n1190 {\n1191 /* Non...
[ { "msg_contents": "Hi,\nConsider following scenario\n\ncreate function foo(a int) returns integer as $$begin return a; end;\n$$ language plpgsql;\ncreate procedure foo(a float) as $$begin end; $$ language plpgsql;\ncall foo(1);\npsql:proc_func_resolution.sql:8: ERROR: foo(integer) is not a procedure\nLINE 1: c...
[ { "msg_contents": "Hey there,\n\nI am Vimal currently pursuing my undergraduate degree in computer\nscience ,I would love to work with you via\nthe GSoC program this summer.\n\nI wanted to know which all projects I can work on. I have good\nknowledge in c,java,python,SQL and other web development languages.Can\...
[ { "msg_contents": "Hi,\n\nCan somebody confirm or correct what I (think I)'ve gleaned from\nthe code?\n\n- Commit timestamps are always WAL logged, and so in principle\n determinable after the fact (with some amount of effort), regardless\n of the track_commit_timestamp setting. (I guess this must have long\n...
[ { "msg_contents": "Hi,\n\nI've got a problem with PostgreSQL 9.6.5: backend gets killed by OOM\nkiller, and it shuts the DB down.\nOf course, the OOM case is to be investigated (MemoryContextStatsDetail,\netc), however I wonder if DB can be more robust.\nThe sad thing is a single backend crash results in the DB...
[ { "msg_contents": "Hi,\n\nI investigate an out of memory-related case for PostgreSQL 9.6.5, and it\nlooks like MemoryContextStatsDetail + gdb are the only friends there.\n\nMemoryContextStatsDetail does print some info, however it is rarely\npossible to associate the used memory with business cases.\nFor insanc...
[ { "msg_contents": "So I see somebody at 2ndQ has set up a bunch of ppc64le buildfarm\nmembers, which I applaud. But they're all failing on the 9.3 branch,\nbecause we lack support for that architecture in that branch.\n\nDoes anyone have the stomach for trying to add such support? The minimum\nrequirement wou...
[ { "msg_contents": "Hi,\n\nIs it possible to run installcheck (pg_regress) tests from a remote host ?\n\nThanks,\nKapil.\n\nHi,Is it possible to run installcheck (pg_regress) tests from a remote host ?Thanks,Kapil.", "msg_date": "Sat, 24 Mar 2018 01:02:47 -0700", "msg_from": "Kapil Sharma <kapil.bncoe@gm...
[ { "msg_contents": "Hi,\nMy name is Hongyuan Ma. I am a junior in software engineering major in\nShanghai.I used to use the email address \"CS_MaleicAcid@163\" in the past.\nHowever, due to some reasons, I consider using \"mahongyuan1997@gmail.com\"\nas my main email address.\n\nFor some time in the past, I have...
[ { "msg_contents": "I noticed that doing pgindent with the current typedefs list available\nfrom the buildfarm caused a lot of havoc in what had been stable code.\nLooking into the reasons, it seems that:\n\n(1) \"bool\" is no longer listed as a typedef name (probably because\nstdbool.h makes it a macro instead)...
[ { "msg_contents": "Hello hackers,\n\n\n\nI’d like to propose the implementation of new wire protocol using http2 framing. \n\nIt appears to me that http2 solves many of the issues on the TODO list under “Wire Protocol Changes / v4 Protocol,“ without any obvious downsides. \n\nThe implementation I have in mind h...
[ { "msg_contents": "Hi all,\n\nWhile looking at pg_rewind code, I have been surprised to find that the\nfinal fsync done on the target's data folder is done using initdb -S via\na system() call. This is in my opinion overcomplicated because we have\na dedicated API in fe_utils able to do a fsync on a data folde...
[ { "msg_contents": "I have just released version 7 of the PostgreSQL Buildfarm client.\n\nAs well as a few fairly minor bug fixes, it contains the following features:\n\n. skip doing the pg_upgrade test in the TestUpgrade module if TAP\ntests are configured and there is a src/bin/pg_upgrade/t directory\n. add a ...
[ { "msg_contents": "Hi all\n\nDuring the committs / replorigin split, the function to query the\nreplication origin of a transaction from user space was lost.\n\nA function to do so is utterly trivial, e.g.\n\nDatum\npg_get_xact_replication_origin(PG_FUNCTION_ARGS)\n{\n TransactionId xid = PG_GETARG_TRANSACTI...
[ { "msg_contents": "Hi folks\n\nDuring some recent work with a plugin (pglogical) that uses replication\norigins heavily, it's become apparent that replication origins conflate two\northogonal features into one thing. There's \"replication origins (session\nreplay progress tracking)\" and \"replication origins (...
[ { "msg_contents": "Hi, hackers.\n\nI was faced with the following bad performance use case with Postgres: \nthere is a huge append-only table with serial key (ID)\nwhich is permanently appended using multithreaded pgloader.\n\nIdeally (if there is no parallel load), this table should be clustered \nby \"ID\" ke...
[ { "msg_contents": "Hi,\n\nMy colleague Richard Yen came across this situation:\n\npg_restore: [archiver (db)] could not execute query: ERROR: cannot\nassign XIDs during a parallel operation\n Command was: -- For binary upgrade, create an empty extension and\ninsert objects into it\nDROP EXTENSION IF EXISTS ...
[ { "msg_contents": "I noticed when querying pg_stat_activity (in 10.1):\n\n$ SELECT pid, application_name, client_hostname, backend_type FROM\npg_stat_activity;\n\n pid | application_name | client_hostname | backend_type\n-------+--------------------------+-----------------------+--------...
[ { "msg_contents": "I recently had a usecase for dict_int, typoed my script and spent longer than\nI’d like to admit finding said typo. The attached patch scratches my itch by\nensuring that the maxlen parameter to dict_int is integer, instead of silently\nsetting it to zero on malformed input. Instead of this:...
[ { "msg_contents": "Hi!\n\nI’ve found two issues with XML/XPath integration in PostgreSQL. Two patches are attached. I’ve just separated them because the second one is an incompatible change.\n\n* Patch 0001: Accept TEXT and CDATA nodes in XMLTABLE’s column_expression.\n\n> Column_expressions that match TEXT or ...
[ { "msg_contents": "Hi,\n\nI found that pg_class.reltuples of brin indexes can be either the\nnumber of index tuples or the number of heap tuples.\n\n=# create table test as select generate_series(1,100000) as c;\n=# create index test_brin on test using brin (c);\n=# analyze test;\n=# select relname, reltuples, ...
[ { "msg_contents": "Hi,\n\nWhile updating the tuple-routing-for-foreign-partitions patch, I noticed\noddity in the COPY FROM handling of check constraints on partition\ntables. Here is an example:\n\npostgres=# create table pt (a int, b int) partition by list (a);\nCREATE TABLE\npostgres=# create table p1 parti...
[ { "msg_contents": "Attached patch fixes two very minor typos in pgbench recently added \ndocumentations:\n\n - one about the mod() function\n\n - two about the hash() function\n\n-- \nFabien.", "msg_date": "Tue, 27 Mar 2018 15:17:00 +0200 (CEST)", "msg_from": "Fabien COELHO <coelho@cri.ensmp.fr>", ...
[ { "msg_contents": "Hi,\n\nThe Release Management Team (RMT) for the PostgreSQL 11 release\nhas been assembled and has determined that the feature freeze date\nfor the PostgreSQL 11 release will be April 7, 2018. This means that any\nfeature that will be going into the PostgreSQL 11 release must be\ncommitted be...
[ { "msg_contents": "Hello!\n\nI have attached the project proposal to develop the PostgreSQL\nPerformance Farm Website for GSOC 2018 with this email. Please review\nmy proposal.\n\nThanks!\nRegards,\nRavindu Perera", "msg_date": "Tue, 27 Mar 2018 20:28:09 +0530", "msg_from": "Ravindu Perera <ravindurames...
[ { "msg_contents": "Hello,\n\n\nI notice Explain report wrong counters with parallel plans :\n\ncreate unlogged table t1 (c1 int);\ninsert into t1 select generate_series(1,100000000);\nvacuum t1;\n\n(stop PG, drop caches,start)\n\nset track_io_timing to on;\nexplain (analyze,buffers) select count(*) from t1;\n\...
[ { "msg_contents": "Hi all\n\nSome time ago I ran into an issue where a user encountered data corruption\nafter a storage error. PostgreSQL played a part in that corruption by\nallowing checkpoint what should've been a fatal error.\n\nTL;DR: Pg should PANIC on fsync() EIO return. Retrying fsync() is not OK at\nl...
[ { "msg_contents": "\nDear devs,\n\nI've been running buildfarm members moonjelly and seawasp which use gcc & \nclang weekly recompiled trunk versions to build postgres branch HEAD for \nabout 6 months\n\nThese helped uncover bugs in both gcc & clang, which were reported and \nfixed, so there is a benefit on thi...
[ { "msg_contents": "Hello,\n\nA customer sent us a core dump of the crash of the background worker of\nthe powa extension, running on 9.6.8 along side with cstore_fdw.\n\nThe background worker loops on a plpgsql function, which then execute\nanother plpgsql function that issues the query \"TRUNCATE\npowa_stateme...
[ { "msg_contents": "Store 2PC GID in commit/abort WAL recs for logical decoding\n\nStore GID of 2PC in commit/abort WAL records when wal_level = logical.\nThis allows logical decoding to send the SAME gid to subscribers\nacross restarts of logical replication.\n\nTrack relica origin replay progress for 2PC.\n\n(...
[ { "msg_contents": "Add documentation for the JIT feature.\n\nAs promised in earlier commits, this adds documentation about the new\nbuild options, the new GUCs, about the planner logic when JIT is used,\nand the benefits of JIT in general.\n\nAlso adds a more implementation oriented README.\n\nI'm sure we're go...
[ { "msg_contents": "I was looking at\nhttps://www.postgresql.org/message-id/CAG_=8kAYKjhQX3FmAWQBC95Evh3+qszOQxkNMm1Q4W1QO7+c4Q@mail.gmail.com\n\nin which the most salient issue is\n\n> 2018-03-28 19:20:33.264 UTC [10580] cory@match ERROR: out of memory\n> 2018-03-28 19:20:33.264 UTC [10580] cory@match DETAIL: ...
[ { "msg_contents": "Hello hackers,\n\nDuring studying dshash I've found a little typo. There is no\nSharedRecordTableKey struct in the code, I think the commentary refers\nto SharedRecordTableKey struct.\n\nThe patch is attached.\n\n-- \nArthur Zakirov\nPostgres Professional: http://www.postgrespro.com\nRussian ...
[ { "msg_contents": "Hi,\n\nConsider the below test:\n\nCREATE TABLE foo (a INT, b INT, c VARCHAR) PARTITION BY LIST(a);\nCREATE TABLE foo_p1 PARTITION OF foo FOR VALUES IN (1,2);\nCREATE TABLE foo_p2 PARTITION OF foo FOR VALUES IN (3,4);\nINSERT INTO foo select i,i,i from generate_series(1,4)i;\n\nCREATE TABLE f...
[ { "msg_contents": "I'm poking around to see debug a vacuuming problem and wondering if\nI've found something more serious.\n\nAs far as I can tell the snapshots on HOT standby are built using a\nlist of running xids that the primary builds and puts in the WAL and\nthat seems to include all xids from transaction...
[ { "msg_contents": "Hi!\n\nsrc/test/subscription/t/003_constraints.pl starts from the line\n\n# Basic logical replication test\n\nIt seems that this line was copy-pasted from src/test/subscription/t/\n001_rep_changes.pl.\nFix is attached.\n\n------\nAlexander Korotkov\nPostgres Professional: http://www.postgresp...
[ { "msg_contents": "Attached fixes a typo, which according to Git is close to being allowed to\ndrive.\n\ncheers ./daniel", "msg_date": "Thu, 29 Mar 2018 15:43:45 +0200", "msg_from": "Daniel Gustafsson <daniel@yesql.se>", "msg_from_op": true, "msg_subject": "Typo in pg_backup_custom.c" }, { ...
[ { "msg_contents": "Hello!\n\nI have not seen much discussion about what the plans are for being able to\nmanage schema changes when using logical replication. In our own\ninfrastructure, mechanisms that have been provided to manage DDL statements\nat the same transactional point as they happen on the master ha...
[ { "msg_contents": "\nHello Hackers\n\nAs described in \nhttp://www.postgresql-archive.org/pg-stat-statements-HLD-for-futur-developments-td6012381.html\n\nhere is a proposal to add a planid identifier to pg_stat_statements.\nThe new key for the view is userid, dbid, queryid, planid.\n\nplanid is calculated using...
[ { "msg_contents": "Rewrite the code that applies scan/join targets to paths.\n\nIf the toplevel scan/join target list is parallel-safe, postpone\ngenerating Gather (or Gather Merge) paths until after the toplevel has\nbeen adjusted to return it. This (correctly) makes queries with\nexpensive functions in the t...
[ { "msg_contents": "It would be nice if we could have an SQL command or a function which\ncreates a streaming replication standby from existing primary. Some of\npublic cloud already provide such that feature. Pgpool-II also\nprovides it. Of course we can do it today by combining existing\nfunctions/SQL/tools bu...
[ { "msg_contents": "Hi,\n\nWhen multiple relations are deleted at the same transaction,\nthe files of those relations are deleted by one call to smgrdounlinkall(),\nwhich leads to scan whole shared_buffers only one time. OTOH,\nduring recovery, smgrdounlink() (not smgrdounlinkall()) is called\nfor each file to d...
[ { "msg_contents": "Hi all,\n\nI just bumped into the attached.\nThanks,\n--\nMichael", "msg_date": "Fri, 30 Mar 2018 17:01:05 +0900", "msg_from": "Michael Paquier <michael@paquier.xyz>", "msg_from_op": true, "msg_subject": "Typo in xlog.c" }, { "msg_contents": "On Fri, Mar 30, 2018 at 10...
[ { "msg_contents": "Hello,\n\nWhile testing pg_upgrade we seemed to find an issue related to default\nvalue of a column with type bit/varbit.\nBelow are the steps to reproduce. In this case we added two 'create table'\nDDLs in the regression database.\nObviously we saw diff after pg_upgrade testing. The pg binar...
[ { "msg_contents": "Hi hackers,\n\nOne of our customers was managed to improve speed about 10 times by \nusing SSL compression for the system where client and servers are \nlocated in different geographical regions\nand query results are very large because of JSON columns. Them actually \ndo not need encryption,...
[ { "msg_contents": "Hi, I found some missing check for windows int init_slot function in vacuumdb.c\n\nin windows\nSOCKET is unsigned type. so\n\nslot->sock < 0 never can be under 0.\n\nso this patch just check using slot->sock == PGINVALID_SOCKET\n\nThanks.", "msg_date": "Fri, 30 Mar 2018 23:40:36 +0900", ...
[ { "msg_contents": "I noticed that several places in brin_pageops.c do this sort of thing:\n\n if (extended)\n {\n Assert(BlockNumberIsValid(newblk));\n RecordPageWithFreeSpace(idxrel, newblk, freespace);\n FreeSpaceMapVacuum(idxrel);\n }\n\nie they put *one*...
[ { "msg_contents": "I have just discovered if you try to lo_import() an empty file, and oid\nis returned, but nothing is added to pg_largeobject:\n\n\t$ > /rtmp/a\n\t$ psql test\n\n\tSELECT lo_import('/rtmp/a');\n\t lo_import\n\t-----------\n\t 16385\n\t\n\tSELECT * from pg_largeobject;\n\t loid | pageno | d...
[ { "msg_contents": "I am having trouble figuring out the right way to do this, clearly missing\nsomething obvious. I am simply trying to pass the current database\nto BackgroundWorkerInitializeConnection, but MyDatabaseId is showing as 0,\nand I am getting this error in the running of function get_database_name...
[ { "msg_contents": "I needed another distraction so bulk-checked for typos, limited to comments in\n*.[ch].\n\nI'm not passionate about this, but it serves the purpose of reducing the\noverhead of fixing them individually.\n\nAlso I heard something here recently about ugly languages..\ntime find . -name '*.c' -p...
[ { "msg_contents": "Hi\n\nCREATE OR REPLACE PROCEDURE public.proc(a integer, INOUT b integer, c\ninteger)\n LANGUAGE plpgsql\nAS $procedure$\nbegin\n b := a + c;\nend;\n$procedure$\n\nCREATE OR REPLACE PROCEDURE public.testproc()\n LANGUAGE plpgsql\nAS $procedure$\ndeclare r int;\nbegin\n call proc(10, r, 20);...
[ { "msg_contents": "Hi,\n\nIf I copy an out-of-line, on-disk TOAST pointer into a memory context\nwith transaction lifetime, with an eye to detoasting it later in the\nsame transaction, are there circumstances where it wouldn't work?\n\nThanks,\n-Chap\n\n", "msg_date": "Sun, 1 Apr 2018 01:04:37 -0400", "...
[ { "msg_contents": "Hi\n\nsmall bugfix patch\n\nRegards\n\nPavel", "msg_date": "Sun, 1 Apr 2018 10:14:56 +0200", "msg_from": "Pavel Stehule <pavel.stehule@gmail.com>", "msg_from_op": true, "msg_subject": "tab complete for procedures for \\sf and \\ef commands" }, { "msg_contents": "On 4/1...
[ { "msg_contents": "Hi hackers,\n\nVertical (columnar) storage mode is most optimal for analytic and this is why it is widely used in databases oriented on OLAP, such as Vertica, HyPer,KDB,...\nIn Postgres we have cstore extension which is not able to provide all benefits of vertical model because of lack of sup...
[ { "msg_contents": "Hi,\n\nWe've just noticed, that current implementation of `json(b)_to_tsvector` can be\nconfusing sometimes, if the target document contains numeric values.\nIn this case\nwe just drop them, and only string values will contribute to the result:\n\n select to_tsvector('english', '{\"a\": \"...
[ { "msg_contents": "I noticed that if I build with --with-libxml on my Mac platforms,\n\"make installcheck\" stops working for certain contrib modules such\nas postgres_fdw. I finally got around to diagnosing the reason why,\nand it goes like this:\n\n1. --with-libxml causes configure to include\n\t-L/Applicati...
[ { "msg_contents": "Peter, Daniel,\n\nThe recent commit 8a3d9425 which has introduced SSL passphrase support\nhas also added be-secure-common.c, which works similarly to\nfe-secure-common.c but for the backend.\n\nI was just reading this code area, when I noticed that\ncheck_ssl_key_file_permissions is called by...
[ { "msg_contents": "Hello,\n\nI am trying to perform \"make installcheck-world\" after \"make clean\" (or \nafter installing a precompiled binaries), but it fails.\nThe error I get is related to ECPG regression test:\nmake -C test installcheck\nmake[2]: Entering directory \n`/home/postgres/postgres/src/interface...
[ { "msg_contents": "postgres_fdw has values called fdw_startup_cost and fdw_tuple_cost\nthat you can adjust in order to control the perceived cost of starting\na remote query and schlepping a tuple over the network. Parallel\nquery, similarly, has parallel_startup_cost and parallel_tuple_cost.\nToday, I noticed...
[ { "msg_contents": "Hi,\n\nThe, now reverted, MERGE patch used EXPLAIN (ANALYZE, COSTS OFF, TIMING\nOFF) on a few queries. That doesn't seem like a bad idea when it's\ninteresting to display the plan and run a query without (interesting)\nresults. Otherwise one has to duplicate the query.\n\nBut right now it tr...
[ { "msg_contents": "Hi,\n\nI just got a compile error as below on the latest HEAD.\n-----------------------\ngcc -Wall -Wmissing-prototypes -Wpointer-arith\n-Wdeclaration-after-statement -Wendif-labels\n-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing\n-fwrapv -fexcess-precision=standard -g -O2 ...
[ { "msg_contents": "New files for MERGE\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttps://git.postgresql.org/pg/commitdiff/83454e3c2b28141c0db01c7d2027e01040df5249\n\nModified Files\n--------------\ndoc/src/sgml/ref/merge.sgml | 603 +++++++\nsrc/backend/executor/nodeMerge.c ...
[ { "msg_contents": "Validate page level checksums in base backups\n\nWhen base backups are run over the replication protocol (for example\nusing pg_basebackup), verify the checksums of all data blocks if\nchecksums are enabled. If checksum failures are encountered, log them\nas warnings but don't abort the backu...
[ { "msg_contents": "Hi Magnus,Am 03.04.2018 13:59 schrieb Magnus Hagander <magnus@hagander.net>:And of course I forgot that particular part in the first push, so I've pushed it as a separate commit. Many thanks for cleaning up the patch and committing it!Michael-- Michael BanckProjektleiter / Senior BeraterTel.:...
[ { "msg_contents": "TLDR: even with \"faster pruning\" patch, pg11dev open()+lseek() every file\nbacking every table being queried, even for those partitions eventually\n\"excluded\".\n\nOne of our customers (with the largest number of child tables, currently of\nrelkind='r') takes a long time to plan query, and...