threads listlengths 1 2.99k |
|---|
[
{
"msg_contents": "Hi,\n\nWhen renaming a column that is part of a primary key,\nthe primary key index's pg_attribute.attname value\nisn't updated accordingly, the old value remains.\n\nThis causes problems when trying to measure if the\neffects of a migration script caused the same end result\nas if installing... |
[
{
"msg_contents": "Hi,\n\nThe 2pc decoding added in\n\ncommit a271a1b50e9bec07e2ef3a05e38e7285113e4ce6\nAuthor: Amit Kapila <akapila@postgresql.org>\nDate: 2021-01-04 08:34:50 +0530\n\n Allow decoding at prepare time in ReorderBuffer.\n\nhas a deadlock danger when used in a way that takes advantage of\nsep... |
[
{
"msg_contents": "Hi Hackers,\n\nRecently, I took some performance measurements for CREATE TABLE AS. \nhttps://www.postgresql.org/message-id/34549865667a4a3bb330ebfd035f85d3%40G08CNEXMBPEKD05.g08.fujitsu.local\n\nThen I found an issue about the tuples unbalance distribution(99% tuples read by one worker) among... |
[
{
"msg_contents": "Planning is expensive and we use plancache to bypass its effect. I find the\n$subject recently which is caused by we register NAMESPACEOID invalidation\nmessage for pg_temp_%s as well as other normal namespaces. Is it a\nmust?\n\nWe can demo the issue with the below case:\n\nSess1:\ncreate t... |
[
{
"msg_contents": "Hi,\n\nover the last ~year I spent a lot of time trying to figure out how we could\nadd AIO (asynchronous IO) and DIO (direct IO) support to postgres. While\nthere's still a *lot* of open questions, I think I now have a decent handle on\nmost of the bigger architectural questions. Thus this ... |
[
{
"msg_contents": "Hi all. I have a library that helps with querying Postgres from TypeScript, and a user just filed this issue:\n\n https://github.com/jawj/zapatos/issues/74\n\nThe library uses the xmax method (ubiquitous on Stack Overflow) to detect whether an upsert query resulted in an insert or an update.... |
[
{
"msg_contents": "Hi hackers,\n\nHere is a scenario that segfault during delete (with version >= 12):\n\ncreate table parent (\ncol1 text primary key\n);\n\ncreate table child (\ncol1 text primary key,\nFOREIGN KEY (col1) REFERENCES parent(col1) on delete cascade\n);\n\nCREATE or replace FUNCTION trigger_funct... |
[
{
"msg_contents": "Dear Hackers,\n\nIn the previous discussion [1], we noticed that ECPG cannot accept IPv6\nconnection string, it means the following statement does not work well:\n\nEXEC SQL CONNECT TO 'tcp:postgresql://::1/postgres';\n\nThis is caused because colons are gotten entangled in the ECPGconnect(),... |
[
{
"msg_contents": "Hello,\n\nI noticed that contrib/cube data type does not support binary\ninput/output handler\nwhen I tried to dump a table with cube columns, using a tool [*1] that\nuses binary data\nover libpq.\n\n$ pg2arrow -d postgres -t my_table\n../utils/pgsql_client.c:351 SQL execution failed: ERROR:... |
[
{
"msg_contents": "Hi,\n\nI've written this function to insert several rows at once, and noticed a certain postgresql overhead as you can see from the log file. A lot more data than the\nuser data is actually sent over the net. This has a certain noticeable impact on the user transmission speed.\n\nI noticed th... |
[
{
"msg_contents": "Hi,\n\nThe documentation describes how a return code > 125 on the restore_command\nwould prevent the server from starting [1] :\n\n\"\nIt is important that the command return nonzero exit status on failure. The\ncommand *will* be called requesting files that are not present in the\narchive; i... |
[
{
"msg_contents": "Hi hackers,\n\nRecently we found a table that was slowly, but consistently increasing in size. The table has a low fill-factor set and was updated very frequently. As expected, almost all updates are HOT updates, but for some of the non-HOT updates it always wanted to use a new page, rather t... |
[
{
"msg_contents": "We forgot to update the logical replication configuration settings\npage in commit ce0fdbfe97. After commit ce0fdbfe97, table\nsynchronization workers also started using replication origins to\ntrack the progress and the same should be reflected in docs.\n\nAttached patch for the same.",
... |
[
{
"msg_contents": "Hi.\n\nI found a bug in pgbench's -d option and created a patch.\n\nThe bug is the following:\npgbench's option -d can display debug log about connection, which is \nlike \"pghost: foo pgport: 5432 nclients: 1 nxacts: 10 dbName: bar\".\nThis configuration is supplied by other options or envir... |
[
{
"msg_contents": "Hello hackers,\n\nBack in 2016, Robert Haas proposed to replace I/O locks with condition\nvariables[1]. Condition variables went in and have found lots of\nuses, but this patch to replace a bunch of LWLocks and some busy\nlooping did not. Since then, it has been tested quite a lot as part\n... |
[
{
"msg_contents": "Hi all,\n\nSince c5b2860, it is possible to specify a tablespace for a REINDEX,\nbut the equivalent option has not been added to reindexdb. Attached\nis a patch to take care of that.\n\nThis includes documentation and tests.\n\nWhile on it, I have added tests for toast tables and indexes wit... |
[
{
"msg_contents": "Hi,\n\n\n\nI am Yixin Shi, a junior student majoring in Computer Science at University\nof Michigan. I notice that the project ideas for GSoC 2021 have been posted\non your webpage and I am quite interested in two of them. I really wish to\ntake part in the project *Make plsample a more compl... |
[
{
"msg_contents": "Hi.\n\nI created a patch to remove ecnt which is a member variable of CState.\nThis variable is incremented in some places, but it's not used for any \npurpose.\nAlso, the current pgbench's client abandons processing after hitting \nerror, so this variable is no need, I think.\n\nRegards\n--\... |
[
{
"msg_contents": "We have highly evolved systems such as SQL, HTTP, HTML, file formats or\nhigh level programming languages such as Java or PHP that allow us to\nprogram many things with little code. Even so a lot of effort is \ninvested in the integration of these systems. To try to reduce this\nproblem libra... |
[
{
"msg_contents": "When looking at disallowing SSL compression I found the parameter \"authtype\"\nwhich was deprecated in commit d5bbe2aca55bc8 on January 26 1998. While I do\nthink there is a case to be made for the backwards compatibility having run its\ncourse on this one, shouldn't we at least remove the ... |
[
{
"msg_contents": "Hello,\n\nCommit 82ebbeb0 added a workaround for (already in 2017) ancient Linux\nkernels with no EPOLL_CLOEXEC. I don't see any such systems in the\nbuild farm today (and if there is one hiding in there somewhere, it's\nwell past time to upgrade). I'd like to rip that code out, because\nI'... |
[
{
"msg_contents": "Hi!\n\nThere is a lot of different compression threads nearby. And that's great!\nEvery few bytes going to IO still deserve to be compressed.\n\nCurrently, we have a pglz compression for WAL full page images. As shown in [0] this leads to high CPU usage in pglz when wal_compression is on. Swa... |
[
{
"msg_contents": "Hi,\n\nWhile investigating on some strange \"out of shared memory\" error reported on\nthe french BBS [1], I noticed that 09adc9a8c09 (adding Robert in Cc) changed\nShmemAlloc alignment to CACHELINEALIGN but didn't update any related code that\ndepended on it.\n\nMost of the core code isn't i... |
[
{
"msg_contents": "Hi,\n\nFinding all matches in a string is convenient using regexp_matches() with the 'g' flag.\n\nBut if instead wanting to know the start and end positions of the occurrences,\none would have to first call regexp_matches(...,'g') to get all matches,\nand then iterate through the results and ... |
[
{
"msg_contents": "When md5 password authentication fails, the server log file has a helpful\ndetail to say why, usually one of:\n\nDETAIL: Role \"none\" does not exist.\nDETAIL: User \"jjanes\" has no password assigned.\nDETAIL: User \"jjanes\" has an expired password.\nDETAIL: Password does not match for ... |
[
{
"msg_contents": "Hi,\n\nWhen looking at [1], I realized we may have a side effect when removing\nredundant columns in the GROUP BY clause. Suppose we have a query with\nORDER BY 'b', and meanwhile column 'b' is also a group key. If we decide\nthat 'b' is redundant due to being functionally dependent on other ... |
[
{
"msg_contents": "Hi,\n\nI'd like to propose a patch to psql --help output:\n\nCurrently it is:\n\nUsage:\n psql [OPTION]... [DBNAME [USERNAME]]\n\n...\n\nConnection options:\n -h, --host=HOSTNAME database server host or socket directory (default: \"local socket\")\n -p, --port=PORT database s... |
[
{
"msg_contents": "tablecmds.c is 17k lines long, this makes it ~30 lines shorter.",
"msg_date": "Sun, 28 Feb 2021 15:18:54 -0600",
"msg_from": "Justin Pryzby <pryzby@telsasoft.com>",
"msg_from_op": true,
"msg_subject": "[PATCH] refactor ATExec{En,Dis}ableRowSecurity"
},
{
"msg_contents"... |
[
{
"msg_contents": "I thought this was a good idea, but didn't hear back when I raised it before.\nI was motivated to finally look into it by Dilip's toast compression patch,\nwhich also (can do) a table rewrite when changing a column's toast compression.\n\nI called this \"set TABLE access method\" rather than ... |
[
{
"msg_contents": "I noticed that some of the slowest cases in Joel's regex test corpus\nhad issues with back-reference matching, and along the way to fixing\nthat discovered what seems to me to be a bug in the engine's handling\nof back-references. To wit, what should happen if a back-reference\nis to a subex... |
[
{
"msg_contents": "Hi,\n\nI found a behaviour mismatch in initdb's output between Windows and Unix in\nPostgreSQL. When we run initdb, it displays a command at the end of the\noutput which is used to run the server. It displays properly in Unix where\nwe can directly use the command to run the server. But in th... |
[
{
"msg_contents": "Full use of a custom data type with postgres_fdw currently requires the\ntype be maintained in both the local and remote databases. `CREATE\nFOREIGN TABLE` does not check declared types against the remote table,\nbut declaring e.g. a remote enum to be local text works only partway, as\nseen h... |
[
{
"msg_contents": "Hi,\n\nThere is (to my knowledge) no direct way to get the `CREATE DATABASE`\nand assorted `GRANT foo ON DATABASE` etc. commands out of a pg_dump\nwithout having to edit the TOC or filter the SQL output with e.g. grep.\n\nIt is not part of pg_dumpall -g, and if one uses pg_dump / pg_dumpall -... |
[
{
"msg_contents": "Hello, some improvements in the prepared statements would facilitate\ntheir use from applications:\n\n- Use of table and column names in prepared statements.\n\n Example: select # from # where # = ?;\n\n- Use of arrays in prepared statements.\n\n Example: select # from article where id ... |
[
{
"msg_contents": "Hi!\n\nI have primary server on port 55942 and two standbys on 55943 and 55944. \nThen use connection string like \n\"postgresql://127.0.0.1:55942,127.0.0.1:55943,127.0.0.1:55944/postgres\" \nto connect to the servers via psql.\n\nEverything works perfectly no matter how many attempts to conn... |
[
{
"msg_contents": "Hackers,\n\nThe 2019-03 commitfest is now in progress. It's a big one as usual.\n\nNeeds review: 213.\nWaiting on Author: 21.\nReady for Committer: 28.\nCommitted: 29.\nWithdrawn: 3.\nTotal: 294.\n\nIf you are a patch author please check http://commitfest.cputube.org to \nbe sure your patch s... |
[
{
"msg_contents": "It looks like we are unnecessarily instructing our usiers to vacuum their\ndatabases in single-user mode when just vacuuming would be enough.\n\nWe should fix the error message to be less misleading.\n\n== The story\n\nI think most of us have at some time seen the following message, if not in... |
[
{
"msg_contents": "Hi,\n\nI suggest adding a new function, regexp_positions(),\nwhich works exactly like regexp_matches(),\nexcept it returns int4range[] start/end positions for *where* the matches occurs.\n\nI first thought I could live without this function,\nand just get the positions using strpos(),\nbut as... |
[
{
"msg_contents": "Hi,\n\nAs part of trying to make the aio branch tests on cirrus CI pass with\nsome tap tests I noticed that \"src/tools/msvc/vcregress.pl recoverycheck\"\nhangs. A long phase of remote debugging later I figured out that that's\nnot a fault of the aio branch - it also doesn't pass on master (f... |
[
{
"msg_contents": "Hello,\n\nI saw this failure after a recent commit (though the next build\nsucceeded, and I don't yet have any particular reason to believe that\nthe commits it blamed are at fault, we'll see...):\n\nhttps://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=gombessa&dt=2021-03-01%2004%3A58%3A17... |
[
{
"msg_contents": "Hi.\n\nI found some redundant code in psql/help.c, so I propose a patch to fix \nit.\nIn the current help.c, the variable \"user\" is set to the value of \n$PGUSER (or get_user_name).\nHowever, $PGUSER is referenced again in the code that follows.\nWe can replace this part with \"user\", I th... |
[
{
"msg_contents": "hi\r\n\r\n\r\nDuring installation from source code, there are many crashes for psql while executing core regression tests, all the crashes are similar, the backtrace info as follows:\r\n\r\n\r\nCore was generated by 'psql'.\r\nProgram terminated with signal 11, Segmentation fault.\r\n# 0 0x00... |
[
{
"msg_contents": "Hi all,\n\nI've started this new thread separated from the thread[1] to discuss\nremoving vacuum_cleanup_index_scale_factor GUC parameter proposed by\nPeter Geoghegan.\n\nbtvacuumcleanup() has been playing two roles: recycling deleted pages\nand collecting index statistics. This discussion fo... |
[
{
"msg_contents": "Hi,\n\nAs discussed in the separate thread \"[PATCH] regexp_positions ( string text, pattern text, flags text ) → setof int4range[]\" [1]\nit's currently not possible to create an empty range with bounds information.\n\nThis patch tries to improve the situation by keeping the bounds informati... |
[
{
"msg_contents": "In talking to Teodor this week, I have written the attached C comment\npatch which improves our description of GiST's NSN and GistBuildLSN\nvalues.\n\n-- \n Bruce Momjian <bruce@momjian.us> https://momjian.us\n EDB https://enterprisedb.com\n\n T... |
[
{
"msg_contents": "PFA a simple patch that implements support for the PROXY protocol.\n\nThis is a protocol common and very light weight in proxies and load\nbalancers (haproxy is one common example, but also for example the AWS\ncloud load balancers). Basically this protocol prefixes the normal\nconnection wi... |
[
{
"msg_contents": "Hello hackers,\n\nWe came across an issue where the checkpointer writes to the older\ntimeline while a promotion is ongoing after reaching the recovery point\nin a PITR, when there are prepared transactions before the recovery\npoint. We came across this issue first in REL_12_STABLE and saw t... |
[
{
"msg_contents": "Hi,\n\nI noticed there is buildfarm failure in crake, it fails with the\nfollowing error:\nMar 02 21:22:56 ./src/test/recovery/t/001_stream_rep.pl: Variable\ndeclared in conditional statement at line 88, column 2. Declare\nvariables outside of the condition.\n([Variables::ProhibitConditional... |
[
{
"msg_contents": "Hello hackers,\n\nI have a question regarding distributing the filter\nclause(baserestrictinfo) of one table into another table(Keys belong to the\nsame EquivalenceClass).\n\nIn the following query, why PG is not copying the filter (t1.pk=1 OR t1.pk=2)\ninto t2's baserestrictinfo? I believe P... |
[
{
"msg_contents": "Hi all,\n\nEach time I do development on Windows, I get annoyed by the fact that\nit is not easy to run individual test scripts in the same way as we do\non any other platforms, using PROVE_TESTS, or even PROVE_FLAGS. And\nthere have been recent complaints about not being able to do that.\n\... |
[
{
"msg_contents": "Hi,\n\nPlaying with a large value of partitions I caught the limit with 65000 \ntable entries in a query plan:\n\nif (IS_SPECIAL_VARNO(list_length(glob->finalrtable)))\n\tereport(ERROR,\n\t\t(errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),\n\t\terrmsg(\"too many range table entries\")));\n\nPostgres... |
[
{
"msg_contents": "Oracle:\nhttps://docs.oracle.com/en/database/oracle/oracle-database/18/adfns/regexp.html#GUID-F14733F3-B943-4BAD-8489-F9704986386B\nIBM:\nhttps://www.ibm.com/support/producthub/db2/docs/content/SSEPGG_11.5.0/com.ibm.db2.luw.sql.ref.doc/doc/r0061494.html?pos=2\nZ/OS:\nhttps://www.ibm.com/suppo... |
[
{
"msg_contents": "Hi hackers,\n\nCurrently, postgres increments command id in ri trigger every time when inserting into a referencing table(fk relation).\nRI_FKey_check-> ri_PerformCheck->SPI_execute_snapshot-> _SPI_execute_plan-> CommandCounterIncrement\n\nIt can be a block for supporting \"parallel insert in... |
[
{
"msg_contents": "Hi,\n\nWhile reviewing a failed upgrade from Postgres v9.5 (to v9.6) I saw that the\ninstance had ~200 million (in-use) Large Objects. I was able to reproduce\nthis on a test instance which too fails with a similar error.\n\n\npg_restore: executing BLOB 4980622\npg_restore: WARNING: database ... |
[
{
"msg_contents": "New thread, was \"Re: new heapcheck contrib module\"\n\n\n> On Mar 2, 2021, at 10:24 AM, Robert Haas <robertmhaas@gmail.com> wrote:\n> \n> On Tue, Mar 2, 2021 at 12:10 PM Mark Dilger\n> <mark.dilger@enterprisedb.com> wrote:\n>> On further reflection, I decided to implement these changes and n... |
[
{
"msg_contents": "While reviewing the patch to speed up Gist indexes with tsvectors [1] by\nsmarter use of popcount, I was reminded that for hardware popcount, we do\nan indirect function call to execute a single CPU instruction, one word at\na time. I went ahead and did some microbenchmarks to see how much th... |
[
{
"msg_contents": "Hello all,\r\n\r\nAndrew pointed out elsewhere [1] that it's pretty difficult to add new\r\ncertificates to the test/ssl suite without blowing away the current\r\nstate and starting over. I needed new cases for the NSS backend work,\r\nand ran into the same pain, so here is my attempt to impr... |
[
{
"msg_contents": "Hi,\n\nWhile reviewing \"autoanalyze on partitioned table\" patch, I realized\nthat pg_stat_xxx_tables.n_mod_since_analyze is not reset at TRUNCATE.\nOn the other hand, n_ins_since_vacuum is reset. I think it should be\nreset because otherwise we end up unnecessarily triggering autoanalyze\ne... |
[
{
"msg_contents": "Hi, hackers\r\n\r\nDuring installation from source code, I created a build directory separate from the source tree, and execute the following command in the build directory:\r\n/home/postgres/postgresql-13.2/configure -- enable-coverage\r\nmake\r\nmake check\r\nmake coverage-html\r\n\r\n\r\nH... |
[
{
"msg_contents": "Hi PG Team,\n\nWhat would be the best way to provide feedback on the PostgreSQL\ndocumentation? Is it a specific email group or email ID? Please if you\ncould guide me.\n\nWarm regards,\nAjay Patel\n\nHi PG Team,What would be the best way to provide feedback on the PostgreSQL documentation? I... |
[
{
"msg_contents": "I posted this earlier at \nhttps://www.postgresql.org/message-id/9ec25819-0a8a-d51a-17dc-4150bb3cca3b@iki.fi, \nand that led to removing FE/BE protocol version 2 support. That's been \ncommitted now, so here's COPY FROM patch again, rebased. To recap:\n\nPreviously COPY FROM could not look ah... |
[
{
"msg_contents": "Hi, hackers\r\n\r\n\r\n\r\ncd source_dir\r\n./configure --enable-tap-tests --with-wal-blocksize=16\r\nmake world\r\nmake install-world\r\ncd source_dir/src/test/recovery\r\nmake check PROVE_TESTS='t/011_crash_recovery.pl' PROVE_FLAGS='--verbose'\r\n\r\n\r\nthe output of the last command is:\r... |
[
{
"msg_contents": "install a newer version of lcov 1.13, it works fine with WARNING just same as yours.\r\n\r\n\r\nmuch appreciated\r\n\r\n\r\nthanks\r\nwalker\r\n\r\n\r\n------------------ Original ------------------\r\nFrom: ... |
[
{
"msg_contents": "Hi,\n\nWhen one tests postgres in a some of the popular CI systems (all that\nuse docker for windows), some of the tests fail in weird ways. Like\n\nhttps://www.postgresql.org/message-id/20210303052011.ybplxw6q4tafwogk%40alap3.anarazel.de\n\n> t/003_recovery_targets.pl ............ 7/9\n> # ... |
[
{
"msg_contents": "Hi,\n\nRight now it's harder than necessary to capture the log output from tap\ntests because the the regression tests files don't end with a common\nfile ending with other types of logs. They're\n\t# Open the test log file, whose name depends on the test name.\n\t$test_logfile = basename($0... |
[
{
"msg_contents": "Hi,\n\nI'm starting a new thread for this patch that originated as a\nside-discussion in [1], to give it its own CF entry in the next cycle.\nThis is a WIP with an open question to research: what could actually\nbreak if we did this?\n\n[1] https://www.postgresql.org/message-id/flat/CA%2BhUKG... |
[
{
"msg_contents": "Greetings,\n\nI have spent a couple of days working on separated lib in PostgreSql, and I\nam facing some issues with the return of data using SPI (Server Programming\nInterface).\nI have this simple get_tuples function used in the main function foobar. My\nexample is very simple too (Using a... |
[
{
"msg_contents": "Hi.\n\nI created a patch to improve \\sleep meta command in pgbench.\n\nThere are two problems with the current pgbench implementation of \n\\sleep.\nFirst, when the input is like \"\\sleep foo s\" , this string will be \ntreated as 0 through atoi function, and no error will be raised.\nSecon... |
[
{
"msg_contents": "Hello.\n\nI noticed that 011_crash_recovery.pl intermittently (that being said,\none out of three or so on my environment) fails in the second test.\n\n> t/011_crash_recovery.pl .. 2/3 \n> # Failed test 'new xid after restart is greater'\n> # at t/011_crash_recovery.pl line 56.\n> # '... |
[
{
"msg_contents": "Hi, all\n\n Recently, I retrieved CVE-2021-20229 on the NVD website which describes\nthe affected PG version are \"before 13.2, before 12.6, before 11.11, before\n10.16, before 9.6.21 and before 9.5.25\", but we I look the official website\nof PG and look the git commit log, I found only 1... |
[
{
"msg_contents": "Dear hacker:\r\n I am a Nanjing University student, Yang. I have forked a newly version of PostgreSQL source code to develop for my own use. Her is my question: I am trying to add a new system catalog to the system backend, how can I reach it? Is there any code or interface demon... |
[
{
"msg_contents": "Hi,\n\nI was looking at the 'Catalog version access' patch, by Vik Fearing. I saw a succesful build by the cfbot but I could not build one here. Only then did I notice that the last apply of the patches by cfbot was on 3769e11 which is the 3rd march, some 10 commits ago.\n\nThere have been ... |
[
{
"msg_contents": "Hi,\n\nIt's easy to answer the question...\n\n - What permissions are there on this specific object?\n\n...but to answer the question...\n\n - What permissions are there for a specific role in the database?\n\nyou need to manually query all relevant pg_catalog or information_schema.*_priv... |
[
{
"msg_contents": "Hi,\n\nWhile I was looking at the Citus code base for a project at work, I\nnoticed a really ugly thing. It was a UDF called\nalter_columnar_table_set(). It's clearly there because our current DDL\nis a few bricks shy of a load, as others have phrased such things,\nwhen it comes to accommodat... |
[
{
"msg_contents": "Hi,\n\nAttached is a suggestion of adding a convenience view,\nallowing quickly looking up all objects owned by a given user.\n\nExample:\n\nSELECT * FROM ownerships WHERE rolname = 'joel' LIMIT 5;\n regclass | obj_desc | rolname\n------------------+----------... |
[
{
"msg_contents": "Hi hackers.\n\nI propose a small optimization can be added to the tablesync replication code.\n\nThis proposal (and simple patch) was first discussed here [1].\n\nBasic idea is the tablesync could/should detect if there is anything\nto do *before* it enters the apply main loop. Calling\nproce... |
[
{
"msg_contents": "Hi all,\n\nAttached is a proof-of-concept patch that allows Postgres to perform\npg_upgrade if the instance has Millions of objects.\n\nIt would be great if someone could take a look and see if this patch is in\nthe right direction. There are some pending tasks (such as documentation /\npg_re... |
[
{
"msg_contents": "The code in pg_stat_get_subscription() appears to believe that it\ncan return a set of rows, but its pg_proc entry does not have\nproretset set. It may be that this somehow accidentally fails\nto malfunction when the function is used via the system views,\nbut if you try to call it directly ... |
[
{
"msg_contents": "Currently pgbench uses plain COPY to populate pgbench_accounts\ntable. With adding FREEZE option to COPY, the time to perform \"pgbench\n-i\" will be significantly reduced.\n\nCurent master:\npgbench -i -s 100\n:\n:\ndone in 70.78 s (drop tables 0.21 s, create tables 0.02 s, client-side gener... |
[
{
"msg_contents": "Hi Hackers,\n\nAs part of commit 0aa8a0\n<https://github.com/postgres/postgres/commit/0aa8a01d04c8fe200b7a106878eebc3d0af9105c>\n,\nnew plugin methods (callbacks) were defined for enabling two_phase commits.\n5 callbacks were required:\n* begin_prepare\n* prepare\n* commit_prepared\n* rollbac... |
[
{
"msg_contents": "Thanks Daniel for the input / next-steps.\n\nI see that 'master' too has this same magic constant [1] and so I expect it\nto have similar restrictions, although I haven't tested this yet.\n\nI do agree that the need then is to re-submit a patch that works with\n'master'. (I am travelling the ... |
[
{
"msg_contents": "Thanks Peter.\n\nThe original email [1] had some more context that somehow didn't get\nassociated with this recent email. Apologies for any confusion.\n\nIn short, pg_resetxlog (and pg_resetwal) employs a magic constant [2] (for\nboth v9.6 as well as master) which seems to have been selected ... |
[
{
"msg_contents": "Hi\n\nWhen I wrote an reply to questing\n\nhttps://stackoverflow.com/questions/66523737/postgresql-10-pl-pgsql-test-if-column-exits-in-a-record-variable\n\nI found an interesting idea to have some basic functions and operators for\nrecord type (similar to json, jsonb or hstore).\n\nNow we can... |
[
{
"msg_contents": "Hi All,\r\nOn the master branch, it is possible to install multiple versions of pg_stat_statements with CREATE EXTENSION, but all the tests in sql/ on look at the latest version available, without testing past compatibility. \r\n\r\nSince we support to install lowest version 1.4 currently, ad... |
[
{
"msg_contents": "Hi,\n\ncurrently, only the gid is passed on to the filter_prepare callback. \nWhile we probably should not pass a full ReorderBufferTXN (as we do for \nmost other output plugin callbacks), a bit more information would be \nnice, I think.\n\nAttached is a patch that adds the xid (still lacking... |
[
{
"msg_contents": "Hi,\n\nOur customer experienced a significant slowdown on queries involving\nIndex Only Scan. As it turned out, the problem was constant pin-unpin of\nthe visibility map page. IOS caches only one vm page, which corresponds\nto 8192 * 8 / 2 * 8192 bytes = 256 MB of data; if the table is larger... |
[
{
"msg_contents": "Hi hackers,\n\nWhen reading the code, I found that in function CommandIsReadOnly[1], \"select for update/share\" is defined as \"not read only\".\n[1]-----------------\n if (pstmt->rowMarks != NIL)\n return false; /* SELECT FOR [KEY] UPDATE/SHARE */\n--------------... |
[
{
"msg_contents": "Hi,\n\nIn passing I noticed that lwlock.c contains 3 comments about bogus\nwakeups due to sharing proc->sem with the heavyweight lock manager and\nProcWaitForSignal. Commit 6753333f55e (9.5) switched those things\nfrom proc->sem to proc->procLatch. ProcArrayGroupClearXid() and\nTransactionG... |
[
{
"msg_contents": "Hi,\n\nThe heap AMs' pages only grow their pd_linp array, and never shrink\nwhen trailing entries are marked unused. This means that up to 14% of\nfree space (=291 unused line pointers) on a page could be unusable for\ndata storage, which I think is a shame. With a patch in the works that\nal... |
[
{
"msg_contents": "The security team received a report from Theodor-Arsenij\nLarionov-Trichkin of PostgresPro that it's possible to crash the\nbackend with an assertion or null-pointer dereference by trying to\ncall a window function via the \"fast path function call\" protocol\nmessage. fastpath.c doesn't set... |
[
{
"msg_contents": "Enable parallel SELECT for \"INSERT INTO ... SELECT ...\".\n\nParallel SELECT can't be utilized for INSERT in the following cases:\n- INSERT statement uses the ON CONFLICT DO UPDATE clause\n- Target table has a parallel-unsafe: trigger, index expression or\n predicate, column default express... |
[
{
"msg_contents": "Hi,\n\nWhile providing thoughts on [1], I observed that the error messages\nthat are emitted while adding foreign, temporary and unlogged tables\ncan be improved a bit from the existing [2] to [3]. For instance, the\nexisting message when foreign table is tried to add into the\npublication \"... |
[
{
"msg_contents": "Move tablespace path re-creation from the makefiles to pg_regress\n\nMoving this logic into pg_regress fixes a potential failure with\nparallel tests when pg_upgrade and the main regression test suite both\ntrigger the makefile rule that cleaned up testtablespace/ under\nsrc/test/regress. Ev... |
[
{
"msg_contents": "Hi Julien,\r\nThanks a lot for the quick review. Please see my answer below in blue. Attached is the new patch.\r\n\r\n\r\n\r\n------------------ Original ------------------\r\nFrom: ... |
[
{
"msg_contents": "Dear hacker:\r\n I am a student from Nanjing University. I have some troubles about DDL statement convertion. I have several MySQL DDL statements from MySQL dump command. Now I wanna convert the statements' grammar so that they can be supported by PostgreSQL. However I have ... |
[
{
"msg_contents": "Hi,\n\nI was reviewing logical decoding of two-phase transactions feature,\nwhile reviewing the feature I was checking if there is any impact on\npublisher/subscriber upgrade.\n\nI checked the existing pg_upgrade behaviour with logical replication.\nI made a logical replication data instance ... |
[
{
"msg_contents": "I initially posted this on the pgsql-general mailing list [5] but was\nadvised to also post this to the -hackers list as it deals with internals.\n\nWe've encountered a production performance problem with pg13 related to\nhow it fsyncs the whole data directory in certain scenarios, related to... |
[
{
"msg_contents": "Hi,\n\nWhile discussing freezing tuples during CTAS[1], we found that\nheap_insert() with HEAP_INSERT_FROZEN brings performance degradation.\nFor instance, with Paul's patch that sets HEAP_INSERT_FROZEN to CTAS,\nit took 12 sec whereas the code without the patch took 10 sec with the\nfollowin... |
[
{
"msg_contents": "Hi All,\nI'm working on C plugin for Postgres (ver. 10). One of the thing which I \nneed is to automatically add some SQL functions from the plugin during \nits initialization ( inside _PG_init method ). It means that during \nloading libmyplugin.so _PG_init calls SPI_execute( \"CREATE FUNCTI... |
[
{
"msg_contents": "Hi,\n\nProcSendSignal(pid) searches the ProcArray for the given pid and then\nsets that backend's procLatch. It has only two users: UnpinBuffer()\nand ReleasePredicateLocks(). In both cases, we could just as easily\nhave recorded the pgprocno instead, avoiding the locking and the\nsearching... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.