threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nI'd like to make it easier to analyze slow queries in ECPG using \nlog_min_duration_statement. Especially when DBA and C application developer \nis different, DBA can feedback slow embedded query to the developer without \ndifficulty and mistakes.\n\nWhen our customers log and look int...
[ { "msg_contents": "I noticed that running ALTER TABLE table_name DETACH PARTITION crashes, if\ntable_name is not a partitioned table. That's because of an Assert in\nATExecDetachPartition(). We really should error out much sooner in this\ncase, IOW during transformAlterTableStmt(), as is done in the case of\...
[ { "msg_contents": "Hi\nBulletted list in Devel branch are all showing up bold as seen in the\nscreenshot of [1] attached. But the same page for 9.6 branch shows\nnormal bulletted lists. If I try to bulid docs from the latest\nresources (at commit ae0e550ce1703621efb3b75f4558df253cef5bca), the\nhtml renders bull...
[ { "msg_contents": "Hi all guys,\nI have a database named edb. In this db , I have lots of schemas. Here I use\ntwo schemas: a and b. The two schemas belong to different role.\nNow , I want to export all objects of schema a . And then using these export\nfile to recover schema b. The user of the schema b can use...
[ { "msg_contents": "Hi hackers,\n\nI wonder why SUM aggregate is calculated for real (float4) type using \nfloating point accumulator?\nIt cause very confusing and unexpected behavior:\n\n-- postgres=# select sum(l_quantity) from lineitem where l_shipdate <= '1998-12-01';\n sum\n-------------\n 1.52688e+0...
[ { "msg_contents": "Hello.\n\nWhile playing with logical publications/subscriptions I’ve noted that walsender crashes\nwhen i’m trying to CREATE SUBSCRIPTION to a current server.\n\nSo having one running postgres instance on a standard port:\n\nstas=# CREATE SUBSCRIPTION mysub CONNECTION 'dbname=stas host=127.0....
[ { "msg_contents": "Currently, an update of a partition key of a partition is not allowed,\nsince it requires to move the row(s) into the applicable partition.\n\nAttached is a WIP patch (update-partition-key.patch) that removes this\nrestriction. When an UPDATE causes the row of a partition to violate\nits part...
[ { "msg_contents": "Hello hackers,\n\nThere were many discussions concerning possible ways of speeding-up \nPostgres. Different approaches were suggested:\n\n- JIT (now we have three different prototype implementations based on LLVM)\n- Chunked (vectorized) executor\n- Replacing pull with push\n- Columnar store...
[ { "msg_contents": "Is there a reason not to allow $SUBJECT? Specifically, it'd be nice to \nbe able to do something like WHEN tag LIKE 'ALTER%'.\n-- \nJim Nasby, Data Architect, Blue Treble Consulting, Austin TX\nExperts in Analytics, Data Architecture and PostgreSQL\nData in Trouble? Get it in Treble! http://B...
[ { "msg_contents": "Upgrading from 9.6 to dev, I now get:\n\n$ rm bisectdata -r ; bisect/bin/pg_ctl initdb -D bisectdata;\nbisect/bin/pg_upgrade -b /usr/local/pgsql9_6/bin/ -B bisect/bin/ -d 96 -D\nbisectdata/\n\n\ncheck for \"/usr/local/pgsql9_6/bin/pg_resetwal\" failed: No such file or\ndirectory\n\nThis looks...
[ { "msg_contents": "Hi all,\n\nBeginning a new thread to raise awareness... As already reported here,\nI had a look at what has been committed in a507b869:\nhttps://www.postgresql.org/message-id/CAB7nPqRzCQb=vdfHvMtP0HMLBHU6z1aGdo4GJsUP-HP8jx+Pkw@mail.gmail.com\n\nHere are a couple of things I have noticed while...
[ { "msg_contents": "Dilip complained on another thread about the apparent difficulty of\ngetting the system to compile after adding a reference to dsa_pointer\nto tidbitmap.c:\n\nhttps://www.postgresql.org/message-id/CAFiTN-u%3DBH_b0QE9FG%2B%2B_Ht6Q%3DF84am%3DJ-rt7fNbQkq3%2BqX3VQ%40mail.gmail.com\n\nI dug into t...
[ { "msg_contents": "Hi All,\n\nCurrently, Hash Index scan works tuple-at-a-time, i.e. for every\nqualifying tuple in a page, it acquires and releases the lock which\neventually increases the lock/unlock traffic. For example, if an index\npage contains 100 qualified tuples, the current hash index scan has to\nacq...
[ { "msg_contents": "Hi all, \n\nI propose the patch that adds a function GetOldestXminExtended that is like GetOldestXmin but can ignore arbitrary vacuum flags. And then, rewrite GetOldestXmin to use it. Note that this is done so as not to change the behavior of GetOldestXmin.\n\nThis change will be useful for f...
[ { "msg_contents": "Sync message causes backend to return a \"Ready for query\" response\neven if there's no query previously sent to the backend. I don't think\nthis is a bug but I'd think it would be better to write this behavior\nin the doc, because it might help someone who want to write an API\nwhich needs ...
[ { "msg_contents": "The revised draft of the proposed Code of Conduct for the PostgreSQL\ncommunity is at https://wiki.postgresql.org/wiki/Code_of_Conduct.\n\nThis updated draft incorporates comments and suggestions from the\ncommunity received at PgCon Ottawa and subsequent discussion.\n\nWe will not be monitor...
[ { "msg_contents": "After seeing Yet Another Missing Psql Tab Completion it occurred to \nme... why not add a checklist item to the commitfest review page? I \nrealize most regular contributors don't use the form, but a fair number \nof people do. I don't see how it could hurt.\n\nAnother possible idea is a git ...
[ { "msg_contents": "make installcheck currently fails against a server running\nwith bytea_output = escape.\n\nMaking it succeed is fairly easy, and I think it is worth doing.\n\nAttached are two options for doing that. One overrides bytea_output\nlocally where-ever needed, and the other overrides it for the en...
[ { "msg_contents": "Hi all,\n\nI propose a new feature for high availability. \n\nThis configuration is effective for following configuration: \n1. Primary and synchronous standby are in the same center; called main center. \n2. Asynchronous standby is in the another center; called backup center. \n (The backu...
[ { "msg_contents": "I ran into a case where a hash join took a really long time to respond\nto a cancel request --- long enough that I gave up and kill -9'd it,\nbecause its memory usage was also growing to the point where the kernel\nwould likely soon choose to do that for me. The culprit seems to be\nthat the...
[ { "msg_contents": "make installcheck fails against a server running with\noperator_precedence_warning\n= on.\n\nThe difference is in update.out, and consists of an error-locating carat\ngetting moved over by one position. I've attached the regression diff.\n\nI don't know why the setting of this GUC causes the...
[ { "msg_contents": "Hello,\n\n(I'm posting to hackers since I got no response on the general list.)\n\nI use Postgres + PostGIS quite heavily, and recently have been taking full\nadvantage of the new parallelism in 9.6. I'm now running queries in a few\nhours that would otherwise take more than a day.\n\nHowever...
[ { "msg_contents": "Throws a build error if we encounter a different number of fields in a\nDATA() line than we expect for the catalog in question.\n\nPreviously, it was possible to silently ignore any mismatches at build\ntime which could result in symbol undefined errors at link time. Now\nwe stop and identif...
[ { "msg_contents": "Fixes some DESCR() grammar mistakes introduced by the xlog -> wal changes.\n\n---\n src/include/catalog/pg_proc.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/src/include/catalog/pg_proc.h b/src/include/catalog/pg_proc.h\nindex 41c12af..bb7053a 100644\n--- a/src/...
[ { "msg_contents": "Hi all,\n\nI was looking through some of the implementation details of the\nheap/tuples, specifically src/include/access/htup_details.h - and I came\nacross the big macro fastgetattr, and had a question about it. I've\nincluded the code here for clarity and convenience:\n\n #define fastge...
[ { "msg_contents": "If RegisterBackgroundWorker() (the non-dynamic kind that is only\nloadable from shared_preload_libraries) fails to register the worker, it\nwrites a log message and proceeds, ignoring the registration request. I\nthink that is a mistake, it should be a hard error. The only way in\npractice ...
[ { "msg_contents": "The current help text for pg_basebackup -R is \"write recovery.conf after\nbackup\".\n\nThis says nothing about what it actually does. I've had a number of people\nask me now why that's not default \"because you need a recovery.conf to\nrestore from backup\". The point being that it doesn't s...
[ { "msg_contents": "Hi hackers,\n\n\"A system that is not case-preserving is necessarily case-insensitive,\nbut it is possible and common for a system to be case-insensitive, yet\ncase-preserving\" [1]\n\nImagine if you could turn on a GUC that would turn PostgreSQL into\nsuch a system,\nwhere the case would be ...
[ { "msg_contents": ">\n> It would help to know the data types of the columns involved in this\n> query; but just eyeballing it, it doesn't look like it involves any\n> array operations, so it's pretty hard to believe that the expanded-object\n> code could have gotten invoked intentionally. (The mere presence of...
[ { "msg_contents": "Hi,\n\nPlease find attached a patch to fix 2 typos.\n\n1) s/mypubclication/mypublication/\n\n2) Removed trailing comma from last column definition in example.\n\nThanks\n\nThom\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription...
[ { "msg_contents": "Hi,\n\nI've noticed that when creating a subscription, it can't be\ninterrupted. One must wait until it times out, which takes just over\n2 minutes. I'm guessing ALTER SUBSCRIPTION would have the same\nproblem.\n\nShouldn't we have an interrupt for this?\n\nThom\n\n\n-- \nSent via pgsql-hac...
[ { "msg_contents": "Hi,\n\nAt the moment, partitioned tables have a restriction that prevents\nthem allowing INSERT ... ON CONFLICT ... statements:\n\npostgres=# INSERT INTO cities SELECT 1, 'Crawley',105000 ON CONFLICT\n(city_id) DO NOTHING;\nERROR: ON CONFLICT clause is not supported with partitioned tables\n...
[ { "msg_contents": "When trying to build the documentation there is a minor warning:\n\n collateindex.pl: duplicated index entry found: MEDIAN\n\nIndeed, the \"median\" index term is specified twice in \"syntax.sgml\". The \nattached patch removes the warning.\n\n-- \nFabien.\n\n\n-- \nSent via pgsql-hackers m...
[ { "msg_contents": "Add new function dsa_allocate0.\n\nThis does the same thing as dsa_allocate, except that the memory\nis guaranteed to be zero-filled on return.\n\nDilip Kumar, adjusted by me.\n\nBranch\n------\nmaster\n\nDetails\n-------\nhttp://git.postgresql.org/pg/commitdiff/9acb85597f1223ac26a5b19a934584...
[ { "msg_contents": "\nWhen consulting the online \"devel\" documentation, for instance for \n\"pgbench\":\n\n \thttps://www.postgresql.org/docs/devel/static/pgbench.html\n\nUnordered lists <ul> are shown in bold, as can be seen in the -M option \nand in the description of random functions. This is because \"ul\"...
[ { "msg_contents": "The planner doesn't currently worry about work_mem restrictions when\nplanning a hash join, figuring that the executor should be able to\nsubdivide the data arbitrarily finely by splitting buckets at runtime.\nHowever there's a thread here:\nhttps://www.postgresql.org/message-id/flat/CACw4T0p...
[ { "msg_contents": "Extracted from a larger patch, this patch provides the basic infrastructure for turning data\nchecksums off in a cluster. This also sets up the necessary pg_control fields to support the\nnecessary multiple states for handling the transitions.\n\nWe do a few things:\n\n- Change \"data_checks...
[ { "msg_contents": "Hi\n\nI want to implement my custom join algorithm into postgres. Where should I\nstart? Where in the code base and how the current algorithms are currently\nimplemented?\n\nHiI want to implement my custom join algorithm into postgres. Where should I start? Where in the code base and how the ...
[ { "msg_contents": "Peter,\n\n* Peter Eisentraut (peter_e@gmx.net) wrote:\n> Logical replication\n> \n> - Add PUBLICATION catalogs and DDL\n> - Add SUBSCRIPTION catalog and DDL\n> - Define logical replication protocol and output plugin\n> - Add logical replication workers\n\nI'm not entirely sure about the reaso...
[ { "msg_contents": "Buildfarm members gaur, pademelon, and gharial have all recently shown\nfailures like this:\n\n*** /home/bfarm/bf-data/HEAD/pgsql.build/src/test/regress/expected/select_parallel.out\tThu Feb 16 20:35:14 2017\n--- /home/bfarm/bf-data/HEAD/pgsql.build/src/test/regress/results/select_parallel.ou...
[ { "msg_contents": "Hi,\n\nSince commit 7c030783a5bd07cadffc2a1018bc33119a4c7505 it seems that $SUBJECT.\n\npg_recvlogical.c:501:37: error: incompatible pointer types passing\n'int64 *' (aka 'long *') to parameter of type 'TimestampTz *' (aka\n'double *') [-Werror,-Wincompatible-pointer-types]\n ...
[ { "msg_contents": "In certain cases, pg_dump's dumpTableSchema() emits a separate ALTER TABLE\ncommand for those schema elements of a table that could not be included\ndirectly in the CREATE TABLE command for the table.\n\nFor example:\n\ncreate table p (a int, b int) partition by range (a);\ncreate table p1 pa...
[ { "msg_contents": "Hi all,\n\nAs of now, we expand the hash index by doubling the number of bucket\nblocks. But unfortunately, those blocks will not be used immediately.\nSo I thought if we can differ bucket block allocation by some factor,\nhash index size can grow much efficiently. I have written a POC patch\...
[ { "msg_contents": "Hi,\n\nWhen working on REINDEX CONCURRENTLY I noticed that the new memory \ncontext created in the ReindexMultipleTables() seems pointless.\n\nThe purpose claimed in the code for introducing the \nReindexMultipleTables context is to make sure the list we build with \nrelation IDs survive the ...
[ { "msg_contents": "Thomas Munro pointed out that commit 7c030783a broke things on\n--disable-integer-datetimes builds, because somebody cleverly used\nTimestampTz to declare timestamp variables, no doubt not having\nread the comment (which doesn't even appear in the same file :-()\nthat\n\n * ... The replicatio...
[ { "msg_contents": "Here is a patch set to refine various access control settings in logical\nreplication. Currently, you need to be replication or superuser for\nmost things, and the goal of these patches is to allow ordinary users\nequipped with explicit privileges to do most things. (Btw., current\ndocument...
[ { "msg_contents": "See below. ISTM that pg_get_object_address should support everything \npg_identify_object_as_address can output, no?\n\nI'm guessing the answer here is to have pg_identify_object_as_address \ncomplain if you ask it for something that's not mapable.\n\n> ~@decina.local/5621# CREATE TYPE comp A...
[ { "msg_contents": "I'm confused by this:\n\n\"pg_event_trigger_ddl_commands returns one row for each base command \nexecuted; some commands that are a single SQL sentence may return more \nthan one row.\"\n\nWhat is a \"SQL sentence\"?\n\n(FWIW, I'm wondering because I was just looking to see why there's no \nd...
[ { "msg_contents": "Hi\n\nI am checking new Fedora 26, where new gcc compiler is used.\n\nfloat.c: In function ‘float4out’:\nfloat.c:382:41: warning: ‘%.*g’ directive output may be truncated writing\nbetween 1 and 310 bytes into a region of size 65 [-Wformat-truncation=]\n snprintf(ascii, MAXFLOATWIDTH + 1, ...
[ { "msg_contents": "Hi all!\n\nI decided to start new thread for this patch for following two reasons.\n * It's renamed from \"Partial sort\" to \"Incremental sort\" per suggestion by\nRobert Haas [1]. New name much better characterizes the essence of\nalgorithm.\n * I think it's not PoC anymore. Patch receive...
[ { "msg_contents": "While experimenting with enabling -Werror in the buildfarm, I got\nannoyed about the fact that we have to apply -Wno-error while\nbuilding some of the flex scanners, because with flex versions\nbefore 2.5.36 you get\n\nscan.c: In function 'yy_try_NUL_trans':\nscan.c:10317: warning: unused var...
[ { "msg_contents": "Hi,\n\nI would like to work on a patch to accommodate restricted environments\n(such as AWS RDS Postgres) which don't allow pg_authid access since their\ndefinition of Superuser is just a regular user with extra permissions.\n\nWould you consider a patch to add a flag to work around this rest...
[ { "msg_contents": "Both the streaming replication and logical replication areas of the code\nare, approximately, utterly broken when !HAVE_INT64_TIMESTAMPS. (The fact\nthat \"make check-world\" passes anyway is an indictment of the quality of\nthe regression tests.)\n\nI started poking around in this area afte...
[ { "msg_contents": "Hi hackers:\r\n When using pg_stat_statements to collect running SQL of PG, we find it is hard for our program to get exact operation type of the SQL, such as SELECT, DELETE, UPDATE, INSERT, and so on.\r\n So we modify the the source code of pg_stat_statements and add another outpu...
[ { "msg_contents": "Hi hackers:\r\n When using pg_stat_statements to collect running SQL of PG, we find it is hard for our program to get exact operation type of the SQL, such as SELECT, DELETE, UPDATE, INSERT, and so on.\r\n So we modify the the source code of pg_stat_statements and add another outpu...
[ { "msg_contents": "Hi hackers:\r\n When using pg_stat_statements to collect running SQL of PG, we find it is hard for our program to get exact operation type of the SQL, such as SELECT, DELETE, UPDATE, INSERT, and so on.\r\n So we modify the the source code of pg_stat_statements and add another outpu...
[ { "msg_contents": "Hi PG hackers:\r\n When using pg_stat_statements to collect running SQL of PG, we find it is hard for our program to get exact operation type of the SQL, such as SELECT, DELETE, UPDATE, INSERT, and so on.\r\n So we modify the the source code of pg_stat_statements and add another ou...
[ { "msg_contents": "Hi PG hackers: When using pg_stat_statements to collect running SQL of PG, we find it is hard for our program to get exact operation type of the SQL, such as SELECT, DELETE, UPDATE, INSERT, and so on. So we modify the the source code of pg_stat_statements and add another output par...
[ { "msg_contents": "On Thu, Feb 16, 2017 at 7:15 AM, Amit Langote\n<Langote_Amit_f8@lab.ntt.co.jp> wrote:\n> Also attaching 0002 (unchanged) for tab-completion support for the new\n> partitioning syntax.\n\nAt one point you have this:\n\n+ /* Limited completion support for partition bound specification */\n+ ...
[ { "msg_contents": "Over in the \"Keeping pg_recvlogical's \"feTimestamp\" separate from \nTimestampTz\"...\n\nOn 2/17/17 12:15 PM, Tom Lane wrote:\n > I am not sure that it was really a good design to pretend that the\n > replication protocol is independent of --disable-integer-datetimes\n > when the underlying...
[ { "msg_contents": "Hi,\n\nAttached is a patch that fixes a comment typo in varlena.c\n\n\nThanks,\nNeha\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": "Mon, 20 Feb 2017 09:34:...
[ { "msg_contents": "Re-posting the patch I posted in a nearby thread [0].\n\nOn 2017/02/16 2:08, Robert Haas wrote:\n> On Wed, Feb 15, 2017 at 11:34 AM, Alvaro Herrera\n> <alvherre@2ndquadrant.com> wrote:\n>> I think new-style partitioning is supposed to consider each partition as\n>> an implementation detail of...
[ { "msg_contents": "I noticed while researching bug #14555 that fd.c contains two separate\ncases like\n\n\tvfdP->seekPos = lseek(vfdP->fd, (off_t) 0, SEEK_CUR);\n\tAssert(vfdP->seekPos != (off_t) -1);\n\nThis seems, um, unwise. It might somehow fail to fail in production\nbuilds, because elsewhere it's assumed...
[ { "msg_contents": "Hello everyone,\n\nI am writing a custom logical replication decoder, and I took test decoder\nfrom Postgres sources as an example.\n\nCould anyone tell me how to read \"unchanged toast datum\" in case it is\nVARTT_IS_EXTERNAL_ONDISK.\n\nIn the test decoder it is ignored:\n\nhttps://github.co...
[ { "msg_contents": "Hi\n\nFollowing various conversations on list and in person, including the\ndeveloper meeting in Brussels earlier this month, here is a patch that\nimplements pg_ls_logdir() and pg_ls_waldir() functions.\n\nThe ultimate aim of this (and followup work I'll be doing) is to\nprovide functionalit...
[ { "msg_contents": "Further to the patch I just submitted\n(https://www.postgresql.org/message-id/CA%2BOCxow-X%3DD2fWdKy%2BHP%2BvQ1LtrgbsYQ%3DCshzZBqyFT5jOYrFw%40mail.gmail.com)\nI'd like to propose the addition of a default role, pg_monitor.\n\nThe intent is to make it easy for users to setup a role for fully\n...
[ { "msg_contents": "The point/polygon regression tests have started to fail on 32-bit\npowerpc on Debian Jessie. So far I could reproduce the problem with\nPostgreSQL 9.4.10+11 and 9.6.1, on several different machines. Debian\nunstable is unaffected.\n\nThe failure looks like this:\n\nhttps://buildd.debian.org/s...
[ { "msg_contents": "Hi\n\nWhen I did tests of own XML import functions I found a strange error.\n\nI successfully imported XML to PostgreSQL. This document is readable\nwithout any visual defects. But when I tested this document against any\nlibxml2 function I found a error -\n\nERROR: could not parse XML docum...
[ { "msg_contents": "Hello.\n\nI've just tried to build PostgreSQL with Clang 3.9.1 (default version\ncurrently available in Arch Linux) and noticed that it outputs lots of\nwarning messages. Most of them are result of a bug in Clang itself:\n\n```\npostinit.c:846:3: note: include the header <string.h> or explici...
[ { "msg_contents": "Hi,\n\nWhen building with a new-ish gcc (6.3.0 right now, but I've seen this\nfor a while) with optimization I get a number of warnings:\n\nIn file included from /home/andres/src/postgresql/src/include/postgres.h:48:0,\n from /home/andres/src/postgresql/src/backend/parser/pars...
[ { "msg_contents": "I've come across a number of times where the statistics on materialized\nviews become stale producing bad plans. It turns out that autovacuum only\ntouches a materialized view when it is first created and ignores it on a\nrefresh. When you have a materialized view like yesterdays_sales the da...
[ { "msg_contents": "Hi,\n\nwhile investigating some checksum-related issues, I needed to perform \nsome forensics on a copy of a btree page (taken from another instance \nusing 'dd').\n\nBut I've ran into two pageinspect limitations, hopefully addressed by \nthis patch:\n\n1) bt_page_items(bytea) not defined\n\n...
[ { "msg_contents": "Hi\n\nToday I played with xml_recv function and with xml processing functions.\n\nxml_recv function ensures correct encoding from document encoding to server\nencoding. But the decl section holds original encoding info - that should\nbe obsolete after encoding. Sometimes we solve this issue b...
[ { "msg_contents": "Hi.\nWhile verifying the logical replication of PostgreSQL 10-devel, I found the\nfollowing problem.\n\n* When you run the SUBSCRIPTION command against a table in the same\nPostgreSQL server, hang up.\n* Canceling the hung SUBSCRIPTION command with CTRL + C causes a server\nprocess occurs Seg...
[ { "msg_contents": "Simon pointed out in a nearby thread [0] that the detail part of\npartition-not-found error should show just the partition keys. I posted a\npatch on that thread [1], but to avoid confusion being caused by multitude\nof patches over there I'm re-posting it here.\n\n* What the patch does:\n\n...
[ { "msg_contents": "Hello,\n\nThis is just a correction from \"index\" to \"table\". I was a bit confused when I first read this part.\n\n\nRegards\nTakayuki Tsunakawa\n\n\n\n\n-- \nSent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.o...
[ { "msg_contents": "Hi,\n\ncurrently, the backup_label and (I think) the tablespace_map files are\n(by design) conveniently located at the beginning of the main tablespace\ntarball when making a basebackup. However, (by accident or also by\ndesign?) the main tablespace is the last tarball[1] to be streamed via\n...
[ { "msg_contents": "Greetings,\n\nWhen pg_upgrade calls pg_dump, it passes in \"--schema-only\", which is\ngenerally correct, except that this causes everything having to do with\nlarge objects to be excluded. That's still usually correct, because\npg_upgrade will simply copy the pg_largeobject and\npg_largeobj...
[ { "msg_contents": "I think $SUBJECT is a bug. While it would be unusual for an extension to \nhave a matview, it's still allowed, and as it stands right now that view \nwon't be refreshed at the end of a restore, unlike other matviews.\n\nI started looking into a patch for this, but I'm not sure of the best \nw...
[ { "msg_contents": "AFAICT in older versions only object types that absolutely had to wait \nfor DO_POST_DATA_BOUNDARY would do so. More recently though, objects are \nbeing added after that (presumably because it's easier than renumbering \neverything in dbObjectTypePriority).\n\nIs this change a good or bad id...
[ { "msg_contents": "The attached tiny patch lets the to_json(b) routines convert objects\nwith array pseudotypes to json{b}. The main impetus for this came from\nmy trying to convert the annyarray columns in pg_stats to json and\nfinding that they ended up as text instead of json arrays. This way\nto_json on the...
[ { "msg_contents": "Ashutosh Bapat pointed out [0] that regression tests are missing for the\nforeign partition DDL commands. Attached patch takes care of that.\n\nThanks,\nAmit\n\n[0]\nhttps://www.postgresql.org/message-id/CAFjFpRcrdzBRj0cZ%2BJAQmfSa2Tv8wSEcWAeYtDpV-YZnNna2sA%40mail.gmail.com\n\n\n\n-- \nSent ...
[ { "msg_contents": "Last year I have proposed an enhancement regarding behavior of the\nstatement timeout in extended queries.\n\nhttps://www.postgresql.org/message-id/20160528.220442.1489791680347556026.t-ishii%40sraoss.co.jp\n\nIMO the current behavior is counter intuitive and I would like to\nchange it toward...
[ { "msg_contents": "Hello everybody,\n\nIn the current version, queries in SQL or PL functions can not\nleverage parallelism. To relax this restriction I prepared a patch,\nthe approach used in the patch is explained next,\n\nApproach:\n\n1. Allow parallelism for queries in PL functions by passing\nCURSOR_OPT_PA...
[ { "msg_contents": "Hello everyone,\n\nWhile conducting the experiments for parallelism, Rafia came across a\nhang in Q18 when plan uses partial and finalize hash aggregate. This\ncould be seen on both scale factors - 20 and 300, on setting work_mem\nhigh enough so that the query uses hash aggregate. It seems th...
[ { "msg_contents": "Hi Hackers,\n\nCurrently, it's only possible to grant/revoke execute on functions to roles.\n\nI think it would be useful in many situations, both for documentation purposes,\nbut also for increased security, to in a precise way control what\nother function(s)\nare allowed to execute a specif...
[ { "msg_contents": "Attached patch fixes an oversight that tablesample cannot be used with\npartitioned tables:\n\ncreate table p (a int) partition by list (a);\nselect * from p tablesample bernoulli (50);\nERROR: TABLESAMPLE clause can only be applied to tables and materialized\nviews\n\nThanks,\nAmit\n\n\n\n-...
[ { "msg_contents": "Hello All,\n\nI would like to propose the attached patch which removes all direct\nreferences to ip_posid and ip_blkid members of ItemPointerData struct and\ninstead use ItemPointerGetOffsetNumber and ItemPointerGetBlockNumber macros\nrespectively to access these members.\n\nMy motivation to ...
[ { "msg_contents": "There is support for COMMENT ON RULE <name> without specifying a table\nname, for upgrading from pre-7.3 instances. I think it might be time\nfor that workaround to go.\n\nPatch attached.\n\n-- \nPeter Eisentraut http://www.2ndQuadrant.com/\nPostgreSQL Development, 24x7 Support,...
[ { "msg_contents": "From time to time, especially during migration projects from Oracle to\nPostgreSQL, i'm faced with people questioning why the alias in the FROM\nclause for subqueries in PostgreSQL is mandatory. The default answer\nhere is, the SQL standard requires it.\n\nThis also is exactly the comment in ...
[ { "msg_contents": "I looked into the report in bug #14563 about pg_trgm giving wrong\nanswers for regexp searches. There is a whole lot of complex mechanism\nin trgm_regexp.c for extracting trigram patterns out of regexps, and\nso I was afraid that it might be a very subtle bug, but actually the\nproblem seems...
[ { "msg_contents": "The topic has been previously discussed[0] on the -performance mailing list,\nabout four years ago.\n\nIn that thread, Tom suggested[0] the planner could be made to \"expand\n\"intcol <@\n'x,y'::int4range\" into \"intcol between x and y\", using something similar\nto the\nindex LIKE optimizat...
[ { "msg_contents": "pg_get_object_address() currently returns a field called subobjid, while \npg_depend calls that objsubid. I'm guessing that wasn't on purpose \n(especially because internally the function uses objsubid), and it'd be \nnice to fix it.\n\nAttached does that, as well as updating the input naming...
[ { "msg_contents": "Hi Hackers,\n\nI have noticed the following behaviour in range partitioning which i felt\nis not quite correct (i missed reporting this) -\n\nI have tested by creating a date ranged partition.\n\nI created the following table.\n\ndb03=# CREATE TABLE orders (\n o_orderkey INTEGER,\n ...
[ { "msg_contents": "Hi all,\n\nWhen storing WAL segments on a dedicated partition with\npg_receivexlog, for some deployments, the removal of past WAL segments\ndepends on the frequency of base backups happening on the server. In\nshort, once a new base backup is taken, it may not be necessary to\nkeep around tho...
[ { "msg_contents": "Hi\n\nI propose a schema private functions as analogy to Oracle package functions.\n\nMy target of this proposal is better isolation generally available top\nlevel callable functions from other auxiliary functions. A execution of\nfunctions can be little bit more robust due less dependency on...
[ { "msg_contents": "Have a nice day\nI`m using \\pset format html for generating tables for some documentation,\ntraining, reports, blogs... Mainly sample of data for SQL queries, or\nexplaining structure etc.\nBut in some software like sphinx, wiki on redmine, or markdown on github\nissues I`m not able to inser...
[ { "msg_contents": "Hi\n\nCurrently is not possible to control sort columns for \\d* commands. Usually\nschema and table name is used. Really often task is collect the most big\nobjects in database. \"\\dt+, \\di+\" shows necessary information, but not in\npractical order.\n\nInstead introduction some additional...
[ { "msg_contents": "Hello, while I investigated a bug of async-exec patch. I found a\n(maybe) typo in mcxt.c.\n\n| * It's not entirely clear whether 'tis better to do this before or after\n| * delinking the context; but an error in a callback will likely result in\n\nI'm not so confident, but the \"'tis\" seem...
[ { "msg_contents": "Andrew Dunstan wrote:\n> \n> While reviewing the IF NOT EXISTS patch for CREATE USER MAPPING I\n> noticed that in several places we treat the user name as the name of the\n> user mapping. Strictly ISTM that user mappings are really anonymous\n> objects, so instead of something like user \"map...