threads listlengths 1 2.99k |
|---|
[
{
"msg_contents": "Hi,\n\nI normally build the code with warnings enabled (specifically,\n-Wshadow) which exposes many \"shadowed\" declarations.\n\nIt would be better to reduce warnings wherever it's easy to do so,\nbecause if we always see/ignore lots of warnings then sooner or later\nsomething important may ... |
[
{
"msg_contents": "Hi, \n\nThe documentation on extending using C functions, \nleaves a blank on how to call other internal Postgres functions.\nThis can leave first-timers hanging.\n\nI think it’d be helpful to spend some paragraphs on discussing the DirectFunctionCall API.\n\nHere’s an attempt (also a PR[0]).... |
[
{
"msg_contents": "Hi,\n\nAttached is a self-sufficient patch extracted from a larger patchset\n[1]. The entire patchset probably will not proceed further in the\nnearest future. Since there was interest in this particular patch it\ndeserves being discussed in a separate thread.\n\nCurrently we support 32-bit i... |
[
{
"msg_contents": "While working on the \"POC, WIP: OR-clause support for indexes\" project \n[0], it was suggested to use the construct_array function to form a \none-dimensional array.\n\nI noticed that there is a comment that values with NULL are not \nprocessed there, but in fact this function calls the c... |
[
{
"msg_contents": "I happened to notice that Postgres will let you do\n\nregression=# create table foo (id timestamp primary key);\nCREATE TABLE\nregression=# create table bar (ts timestamptz references foo);\nCREATE TABLE\n\nThis strikes me as a pretty bad idea, because whether a particular\ntimestamp is equal... |
[
{
"msg_contents": "On Thu, Sep 12, 2024 at 8:12 PM Amit Langote <amitlangote09@gmail.com> wrote:\n>\n> Hi Andreas,\n>\n> On Thu, Sep 12, 2024 at 7:08 PM Andreas Ulbrich\n> <andreas.ulbrich@matheversum.de> wrote:\n> >\n> > Salvete!\n> >\n> >\n> > Sorry for my out of the rules replay, but I'm not at home, and als... |
[
{
"msg_contents": "Hello. This is my first patch to the project. The patch adds support for system columns in JOIN USING clause. The problemcan be demonstrated with this code: ```sqlCREATE TABLE t (id int);CREATE TABLE tt (id int); -- Works:SELECT * FROM t JOIN tt ON t.xmin = tt.xmin;-- Doesn't work:SELECT * ... |
[
{
"msg_contents": "Hello,\n\nI would like to add the information of the PID that caused the failure\nwhen acquiring a lock with \"FOR UPDATE NOWAIT\".\n\nWhen \"FOR UPDATE\" is executed and interrupted by lock_timeout,\nxid and PID are output in the logs, but in the case of \"FOR UPDATE \nNOWAIT\",\nno informat... |
[
{
"msg_contents": "Can you lead me to a beginner friendly task so I can start hacking?\n\n-- \n\nSiavosh Kasravi\n* \"Save a Tree\" - Please print this email only if necessary.*\n\nCan you lead me to a beginner friendly task so I can start hacking?-- Siavosh Kasravi \"Save a Tree\" - Please print this email onl... |
[
{
"msg_contents": "Hi,\n\nWith Postgres 17 RC1 on Windows, `float_to_shortest_decimal_buf` and\n`float_to_shortest_decimal_bufn` are not longer exported. This causes\n`unresolved external symbol` linking errors for extensions that rely on\nthese functions (like pgvector). Can these functions be exported like\np... |
[
{
"msg_contents": "Hi,\n\n(adding TOm in Cc as committer/co-author of the original patch)\n\nWhile adapting in pg_stat_kcache the fix for buggy nesting level calculation, I\nnoticed that one comment referencing the old approach was missed. Trivial\npatch attached.",
"msg_date": "Sat, 14 Sep 2024 12:24:16 +... |
[
{
"msg_contents": "Hello hackers,\n\nWhile trying to reproduce inexplicable drongo failures (e. g., [1])\nseemingly related to BackgroundPsql, I stumbled upon close, but not\nthe same issue. After many (6-8 thousands) iterations of the\n015_stream.pl TAP test, psql failed to start with a STATUS_DLL_INIT_FAILED\... |
[
{
"msg_contents": "Building --with-system-tzdata and the latest tzdata 2024b fails the \nregression tests for me (see attached .diffs). This seems to be because \nof [1], which changed the way \"PST8PDT\" is handled. This is the timezone \nthat the regression tests are run with.\n\n From 2024b on, \"PST8PDT\" i... |
[
{
"msg_contents": "I noticed while working on bug #18617 [1] that we are fairly slipshod\nabout which SQLSTATE to report when libxml2 returns an error. There\nare places using ERRCODE_INTERNAL_ERROR for easily-triggered errors;\nthere are different places that use different ERRCODEs for exactly\nthe same condi... |
[
{
"msg_contents": "Hi,\n\nWhen working with jsonb/jsonpath, I’ve always wanted more fluent string operations for data cleaning.\nIdeally, chaining text processing methods together.\n\nHere’s a draft patch that adds a string replace method.\n\nIt works like this\nselect jsonb_path_query('\"hello world\"', '$.rep... |
[
{
"msg_contents": "Hi,\n\nI've been doing a lot of tests under valgrind lately, and it made me\nacutely aware of how long check-world takes. I realize valgrind is\ninherently expensive and slow, and maybe the reasonable reply is to just\nrun a couple tests that are \"interesting\" for a patch ...\n\nAnyway, I d... |
[
{
"msg_contents": "hi.\none minor issue in src/backend/catalog/information_schema.sql\n/*\n * 6.22\n * COLUMNS view\n */\nCREATE VIEW columns ....\n\n\nCAST(CASE WHEN a.attgenerated = '' THEN pg_get_expr(ad.adbin,\nad.adrelid) END AS character_data) AS column_default,\ncan change to\nCAST(CASE WHEN a.attgenerat... |
[
{
"msg_contents": "Using a trigram index with an non-deterministic collation can\nlead to wrong query results:\n\n CREATE COLLATION faux_cn (PROVIDER = icu, LOCALE = 'und', DETERMINISTIC = FALSE, RULES = '&l = r');\n\n CREATE TABLE boom (id integer PRIMARY KEY, t text COLLATE faux_cn);\n\n INSERT INTO boom V... |
[
{
"msg_contents": "Hi hackers,\n\nI just noticed that the docs for pg_service.conf\n(https://www.postgresql.org/docs/current/libpq-pgservice.html) don't\nmention the actual key word to use in the libpq connection string until\nthe example in the last sentence, but it mentions the env var in the\nfirst paragraph... |
[
{
"msg_contents": "Currently: \n\njsonb_strip_nulls ( jsonb ) → jsonb\nDeletes all object fields that have null values from the given JSON value, recursively. Null values that are not object fields are untouched.\n\n> Null values that are not object fields are untouched. \n\nCan we revisit this and make it work... |
[
{
"msg_contents": "Here are a few miscellaneous cleanup patches for pg_upgrade. I don't think\nthere's anything controversial here.\n\n0001 removes some extra whitespace in the status message for failed data\ntype checks. I noticed that when the check fails, this status message is\nindented beyond all the oth... |
[
{
"msg_contents": "Hi, hackers!\n\nI've noticed that there is no way to specify a custom connection string \nwhen\ncalling the PostgreSQL::Test::Cluster->background_psql() method compared \nto the\nPostgreSQL::Test:Cluster->psql(). It seems useful to have this feature \nwhile\ntesting with BackgroundPsql, for e... |
[
{
"msg_contents": "Don't enter parallel mode when holding interrupts.\n\nDoing so caused the leader to hang in wait_event=ParallelFinish, which\nrequired an immediate shutdown to resolve. Back-patch to v12 (all\nsupported versions).\n\nFrancesco Degrassi\n\nDiscussion: https://postgr.es/m/CAC-SaSzHUKT=vZJ8MPxY... |
[
{
"msg_contents": "Hi hackers,\n\nThere is some places where we check that a struct is full of zeroes:\n\npgstat_report_bgwriter()\npgstat_report_checkpointer()\npgstat_relation_flush_cb()\n\nIndeed that's the way we check if there is pending statistics to flush/report.\n\nThe current code is like (taking pgsta... |
[
{
"msg_contents": "Correct me if I'm wrong,\nbut for an extension that defines composite types,\nthere's currently no easy way to get a TupleDesc, even for its own types.\n\nSomething like\nTupleDesc get_extension_type_tupledesc(const char *extname, const char\n*typname)\n\nHere's a routine I've stolen borrowed... |
[
{
"msg_contents": "\nHi,\n\nCurrently detoast_attr always detoast the data into a palloc-ed memory\nand then if user wants the detoast data in a different memory, user has to\ncopy them, I'm thinking if we could provide a buf as optional argument for\ndetoast_attr to save such wastage. \n\ncurrent format:\n\n/*... |
[
{
"msg_contents": "hi.\n\nwhile looking at tablecmd.c, BuildDescForRelation\n attdim = list_length(entry->typeName->arrayBounds);\n if (attdim > PG_INT16_MAX)\n ereport(ERROR,\n errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED),\n errmsg(\"too many array dime... |
[
{
"msg_contents": "Hi,\nOne database app developer complied that He constantly has a problem \nwith row estimations in joins over groupings and provided the demo example:\n\nCREATE TABLE line (id int PRIMARY KEY, docId int, amount numeric);\nCREATE INDEX line_doc ON line (docid);\nINSERT INTO line (id, docId, a... |
[
{
"msg_contents": "Hello!\nCurrently PostgreSQL built on 64-bit Windows has 2Gb limit for\nGUC variables due to sizeof(long)==4 used by Windows compilers.\nTechnically 64-bit addressing for maintenance_work_mem is possible,\nbut code base historically uses variables and constants of type \"long\",\nwhen process... |
[
{
"msg_contents": "In [1] I whined about how the parallel heap scan machinery should have\nnoticed that the same ParallelTableScanDesc was being used to give out\nblock numbers for two different relations. Looking closer, there\nare Asserts that mean to catch this type of error --- but they are\ncomparing rela... |
[
{
"msg_contents": "\nHi,\n\nstatic inline void\nFullTransactionIdAdvance(FullTransactionId *dest)\n{\n\tdest->value++;\n\n\t/* see FullTransactionIdAdvance() */\n\tif (FullTransactionIdPrecedes(*dest, FirstNormalFullTransactionId))\n\t\treturn;\n\n\twhile (XidFromFullTransactionId(*dest) < FirstNormalTransactio... |
[
{
"msg_contents": "Hello Hackers,\n(CC people involved in the earlier discussion)\n\nWhile considering the implementation of timestamp-based conflict\nresolution (last_update_wins) in logical replication (see [1]), there\nwas a feedback at [2] and the discussion on whether or not to manage\nclock-skew at databa... |
[
{
"msg_contents": "Why PostgreSQL DOCs needs to show or compare the Oracle way of doing things\n?\n\nI understand that on page Porting from Oracle PL/SQL is ok to mention\nOracle, but there are other places where it's not needed. Or, if it's ok to\nmention, why not mention SQL Server or MySQL or any other ?\n\n... |
[
{
"msg_contents": "Hi,\n\nI would like to improve the following two points on the result outputs\nof pgbench related to faild transaction. The patch is attached.\n\n(1) Output per-script statistics even when there are no successful\ntransaction if there is any failed transactions due to serialization\nor deadlo... |
[
{
"msg_contents": "Hi,\n\nI noticed two headers are not in alphabetical order in pg_checkums.c,\npatch attached.\n\n\nMichael",
"msg_date": "Fri, 20 Sep 2024 19:20:15 +0200",
"msg_from": "Michael Banck <mbanck@gmx.net>",
"msg_from_op": true,
"msg_subject": "pg_checksums: Reorder headers in alpha... |
[
{
"msg_contents": "I’m in the process of trying to restore some PG15/16 backups in PG17.\n\nWhile playing with different -t and -n combinations I was browsing through the docs.\n\nIn pg_restore there are two notes about both -t / -n \n\n> When -n / -t is specified, pg_dump makes no attempt to ...\n\nIn pg_dump ... |
[
{
"msg_contents": "Hi hackers,\n\nI just noticed that all indents in upgrade scripts of pg_stat_statemets are\nmade using spaces, except for \"CREATE FUNCTION pg_stat_statements_reset\"\nstatement in pg_stat_statements--1.6--1.7.sql and\npg_stat_statements--1.10--1.11.sql.\n\nI made a patch to fix it in pg_stat... |
[
{
"msg_contents": "Hello,\r\n\r\nWe've set allow_system_table_mods = on so that we could rename \r\npg_database and in its place put a custom view that only lists the\r\ndatabases the current user has CONNECT privileges to. This is because\r\n1) we allow customers direct (read only) access to their databases, b... |
[
{
"msg_contents": "Hi hackers,\n\nI noticed unnecessary variable \"low\" in index_delete_sort() \n(/postgres/src/backend/access/heap/heapam.c), patch attached. What do \nyou think?\n\nRegards,\nKoki Nakamura <btnakamurakoukil@oss.nttdata.com>",
"msg_date": "Tue, 24 Sep 2024 17:32:48 +0900",
"msg_from": ... |
[
{
"msg_contents": "Hi,\n\nCurrently we modify pages while just holding a share lock, for hint bit\nwrites. Writing a buffer out only requires a share lock. Because of that we\ncan't compute checksums and write out pages in-place, as a concurent hint bit\nwrite can easily corrupt the checksum.\n\nThat's not grea... |
[
{
"msg_contents": "Hello hackers,\r\n\r\nI have found an instance of a time overflow with the start time that is written in \"postmaster.pid\". On a 32-bit Linux system, if the system date is past 01/19/2038, when you start Postgres with `pg_ctl start -D {datadir} ...`, the start time will have rolled back to... |
[
{
"msg_contents": "Hi hackers,\nI am new in contributing to postgres. I have a doubt regarding if we want\nto send a patch which has an extension and also has changes in pg source\nalso,what's the way to do it?\nIt seems odd right ? we are doing extension then ,then why changes in pg?\n\nThis is the 1st version... |
[
{
"msg_contents": "Hi hackers,\n\n\nThe following code fails to pass the ecpg compilation, although it is accepted by the gcc compiler.\n\n\n```\n#if ABC /* this is a multi-line\n * comment including single star character */\nint a = 1;\n#endif\n```\n\n\nThe issue arises from the first '*' in the s... |
[
{
"msg_contents": "Hi,\n\nI'm working on the flags VERSION (X076), INCLUDING XMLDECLARATION, and\nEXCLUDING XMLDECLARATION (X078) for XMLSerialize, and I have a question\nfor SQL/XML experts on the list.\n\nIs there any validation mechanism for VERSION <character string\nliteral>? The SQL/XML spec says\n\n\"The... |
[
{
"msg_contents": "Hi,\n\njust came across this:\n\nsrc/backend/optimizer/util/plancat.c -> Is this correct English?\n-> We need not lock the relation since it was already locked ... \n\nI am not a native speaker, but this sounds strange.\n\nRegards\nDaniel?\n\n",
"msg_date": "Wed, 25 Sep 2024 16:52:47 +000... |
[
{
"msg_contents": "Hello hackers,\n\nThis patch is a follow-up and generalization to [0].\n\nIt adds the following jsonpath methods: lower, upper, initcap, l/r/btrim,\nreplace, split_part.\n\nIt makes jsonpath able to support expressions like these:\n\nselect jsonb_path_query('\" hElLo WorlD \"',\n '$.btrim(... |
[
{
"msg_contents": "Hi all\n\nWhile testing out 17 RC1 I found that a construct that previously worked\nhas now stopped working:\n\nCREATE OR REPLACE FUNCTION index_truncate(src TEXT) RETURNS TEXT AS $$\n SELECT LOWER(LEFT(src, 100));\n$$ LANGUAGE SQL;\n\nCREATE OR REPLACE FUNCTION join_for_index(TEXT [])\n RE... |
[
{
"msg_contents": "Hi hackers,\n\nI noticed incorrect comment in /postgres/src/bin/pg_walsummary/nls.mk.\nThe part that should be \"pg_walsummary\" is \"pg_combinebackup\", patch \nattached.\n\nRegards,\nKoki Nakamura <btnakamurakoukil@oss.nttdata.com>",
"msg_date": "Thu, 26 Sep 2024 15:05:45 +0900",
"... |
[
{
"msg_contents": "Hi all. A brief overview of our use case follows.\n\nWe are developing a foreign data wrapper which employs parallel scan\nsupport and predicate pushdown; given the types of queries we run,\nforeign scans can be very long and often return very few rows.\n\nAs the scan can be very long and slo... |
[
{
"msg_contents": "Hello\n\nWhile studying a review note from Jian He on not-null constraints, I\ncame across some behavior introduced by commit 9139aa19423b[1] that I\nthink is mistaken. Consider the following example:\n\nCREATE TABLE parted (a int CONSTRAINT the_check CHECK (a > 0)) PARTITION BY LIST (a);\nC... |
[
{
"msg_contents": "Hi hackers,\n\nI would like to suggest a patch to truncate some long queries. I believe\nsometimes there is no need to log a query containing some gigabytes of\nblob, for example. In patch a new parameter, named max_log_size, is\nintroduced. It defines the maximum size of logged query, in byt... |
[
{
"msg_contents": "Here's a patch that adjusts several routines in nbtcompare.c and related\nfiles to use the branchless integer comparison functions added in commit\n6b80394. It's probably unlikely this produces a measurable benefit (at\nleast I've been unable to find any in my admittedly-limited testing), bu... |
[
{
"msg_contents": "The attached patch series refactors the collation and ctype behavior\ninto method tables, and provides a way to hook the creation of a\npg_locale_t so that an extension can create any kind of method table it\nwants.\n\nIn practice, the main use is to replace, for example, ICU with a\ndifferen... |
[
{
"msg_contents": "Hi hackers,\n\nper David's suggestion, this patch implements general\npurpose array sort.\n\nWe can do the following with this patch:\n\nSELECT array_sort('{1.1,3.3,5.5,2.2,4.4,6.6}'::float8[], 'asc');\nSELECT array_sort('{abc DEF 123abc,ábc sßs ßss DÉF,DŽxxDŽ džxxDž\nDžxxdž,ȺȺȺ,ⱥⱥⱥ,ⱥȺ}'::text[]);\... |
[
{
"msg_contents": "Hi all! Congrats on releasing v17!\n\nI'm adding support for Index Only Scans to a custom IAM impl and I've got a little dilemma. \n\nMy IAM implementation is essentially a composite index that might have up to 32 columns and while it can return any column in the index definition it's quite... |
[
{
"msg_contents": "tl;dr let's assume SSDs are popular and HDDs are the exception and flip our\ndefault\n\nAs I write this email, it's the year 2024. I think it is time we lower our\n\"default\" setting of random_page_cost (as set in postgresql.conf.sample and\nthe docs). Even a decade ago, the current default ... |
[
{
"msg_contents": "The following bug has been logged on the website:\n\nBug reference: 18641\nLogged by: Alexander Lakhin\nEmail address: exclusion@gmail.com\nPostgreSQL version: 17.0\nOperating system: Ubuntu 22.04\nDescription: \n\nLogical decoding of a transaction like:\r\nBEGIN;\... |
[
{
"msg_contents": "A week or so ago I upgraded the msys2 animal fairywren to the latest \nmsys2, and ever since then the build has been failing for Release 15. \nIt's complaining like this:\n\nccache gcc -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissin... |
[
{
"msg_contents": "Hi,\n\nCurrently, index scans that order by an operator (for instance, `location\n<-> POINT(0, 0)`) and have a filter for the same expression (`location <->\nPOINT(0, 0) < 2`) can end up scanning much more of the index than is\nnecessary.\n\nHere's a complete example:\n\nCREATE TABLE stores (... |
[
{
"msg_contents": "Hi Hackers,\n\nI am not sure if this is a bug or I am missing something:\n\nThere is a partitioned table with partitions being a mix of foreign and regular tables.\nI have a function:\n\nreport(param text) RETURNS TABLE(…) STABLE LANGUAGE sql AS\n$$\nSELECT col1, expr1(col2), expr2(col2), sum... |
[
{
"msg_contents": "Hi,\n\nif a cluster contains invalid databases that we cannot connect to \nanymore, pg_upgrade would currently fail when trying to connect to the \nfirst encountered invalid database with\n\n\nPerforming Consistency Checks\n-----------------------------\nChecking cluster versions ... |
[
{
"msg_contents": "*Hi, hackers*\n\n*When calculating the path, *forknum* is hardcoded as *MAIN_FORKNUM*:*\n/* Compute the path. */\np = relpathperm(ftag->rnode, MAIN_FORKNUM);\n\n\n*But since the *ftag* structure already contains *forknum*:*\ntypedef struct FileTag\n{\nint16 handler; /* SyncRequestHandler valu... |
[
{
"msg_contents": "Hi hackers,\nI found probably something to fix in pg_walsummary.\n\npg_walsummary specifies “f:iqw:” as the third argument of getopt_long().\n\n> /* process command-line options */\n> while ((c = getopt_long(argc, argv, \"f:iqw:\",\n> \t\t\t\tlong_options, &optindex)) != -1)\n\nHowever, only ... |
[
{
"msg_contents": "I think there's an unnecessary underscore in config.sgml.\nAttached patch fixes it.\n\nBest reagards,\n--\nTatsuo Ishii\nSRA OSS K.K.\nEnglish: http://www.sraoss.co.jp/index_en/\nJapanese:http://www.sraoss.co.jp",
"msg_date": "Mon, 30 Sep 2024 15:34:04 +0900 (JST)",
"msg_from": "Tatsu... |
[
{
"msg_contents": "Greetings\n\nI understand the complexity of implementing a pseudo data type when\npassing it over parameters, or using it when creating an object.\nvide: git grep pseudo | egrep -v -e \"po|out|sgml|sql\" | more\n\nMy initial problem was saving history (for backup to be used during\ntroublesho... |
[
{
"msg_contents": "Hi hackers,\nI found a flaw in the ACL_MAINTAIN comment.\n\nCommands such as VACUUM are listed as commands that are allowed to be \nexecuted by the MAINTAIN privilege.\nHowever, LOCK TABLE is missing from the comment.\n\n> \t/*\n> \t * Check if ACL_MAINTAIN is being checked and, if so, and no... |
[
{
"msg_contents": "Hi,\n\nshouldn't this give the same error message?\n\n$ pg_basebackup --checkpoint=fast --format=t --compress --pgdata=/var/tmp/dummy\npg_basebackup: error: must specify output directory or backup target\npg_basebackup: hint: Try \"pg_basebackup --help\" for more information.\n\n$ pg_baseback... |
[
{
"msg_contents": "Hi!\n\nWorking with temp relations is some kind of bottleneck in Postgres, in my\nview.\nThere are no problems if you want to handle it from time to time, not\narguing\nthat. But if you have to make a massive temp tables creation/deletion,\nyou'll\nsoon step into a performance degradation.\n\... |
[
{
"msg_contents": "I am just contacting you to talk about a current issue with our database.\nWe have run out of a positive sequence in one of our tables and are now\noperating with negative sequences. To address this, we plan to migrate from\nthe int4 ID column to an int8 ID column.\n\nThe plan involves renami... |
[
{
"msg_contents": "I happened to notice that `set_rel_pathlist` params, RelOptInfo *rel\nand RangeTblEntry *rte are\nunnecessary, because upon all usages,\n`rte=root->simple_rte_array[rti]` and\n`rel=root->simple_rel_array[rti]` holds. What's the point of providing\nthe same information 3 times? Is it kept like... |
[
{
"msg_contents": "Hi, there!\n\nI created patch improving the log messages generated by\nlog_lock_waits.\n\nSample output (log_lock_waits=on required):\n\nsession 1:\nCREATE TABLE foo (val integer);\nINSERT INTO foo (val) VALUES (1);\nBEGIN;\nUPDATE foo SET val = 3;\n\nsession 2:\nBEGIN;\nUPDATE TABLE foo SET ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.