threads
listlengths
1
2.99k
[ { "msg_contents": "Hi,\n\nI have a query that previously worked fine using pg8 on Fedora. Since\nthen we've moved to a FreeBSD 6 server running pg8.1.1 and the query\ndoesn't seem to ever finish.\n\nI have VACUUM ANALYZEd the database. Here is the query:\n\nSELECT column_name, table_schema, table_name, c.data_t...
[ { "msg_contents": "On Dec 29 2005, Michael Fuhr wrote:\n\n> On Thu, Dec 29, 2005 at 12:12:52PM -0800, Sebastian wrote:\n> > I've waited 10 minutes before cancelling. On pg8 it runs in less than \n> > a second\n> \n> How many columns in the table? In 8.1.1 I'm seeing a nearly\n> exponential increase in time wit...
[ { "msg_contents": "\nI encountered an error today (can't repeat) on SunOS 5.8:\n\n --test that we read consecutive LFs properly\n CREATE TEMP TABLE testnl (a int, b text, c int);\n+ ERROR: could not open relation 1663/16384/37713: Interrupted system call\n\nThe reason I guess is the open() call is interrupte...
[ { "msg_contents": "Haven't seen this discussed in a while, but I do recall it being\nmentioned sometime before...\n\n\nThe problem:\ntestdb=# create table mytable (id serial, txt text);\ntestdb=# grant insert on mytable to user2;\nGRANT\ntestdb=# \\connect testdb user2\nYou are now connected to database \"testd...
[ { "msg_contents": "It's been several hours since Tom's \"Repair EXPLAIN failure\" commit\nbut anonymous CVS doesn't have it yet. That seems slower than usual;\nare there any problems?\n\n-- \nMichael Fuhr\n", "msg_date": "Fri, 30 Dec 2005 14:02:23 -0700", "msg_from": "Michael Fuhr <mike@fuhr.org>", ...
[ { "msg_contents": "Does anyone know why we test for pgstat_collect_querystring in routines\nthat obviously dump only block and row-level statistics and database\ncommit/rollback total? Is it a copy/paste error?\n\nPatch attached for review. The inclusion of pgstat_collect_querystring\nin these tests seems lik...
[ { "msg_contents": "Getting started early this year, I've finally found a way around the issues with readline on win32. And it just took a little bit of google research and some testing.\n\n\nRecap of the problem: When running psql in a readline enabled mode on win32, any character requiring the AltGr key to gen...
[ { "msg_contents": "I was reminded of $subject by\nhttp://archives.postgresql.org/pgsql-admin/2006-01/msg00002.php\n\nWhile I haven't tried it, I suspect that allowing a DNS host name\nwould take little work (basically removing the AI_NUMERICHOST flag\npassed to getaddrinfo in hba.c). There was once a good reas...
[ { "msg_contents": "\nDo we have a \"known issues\" section somewhere? If not, I would suggest we\nsplit the TODO list into two big sections, one is the PostgreSQL\nimprovement part, the other is the known issues part.\n\nAFAICS there are some long lasting problems there simply because hackers\nare not aware of ...
[ { "msg_contents": "\nUpgraded the News Server, and need to make sure gateways are working ...\n\n----\nMarc G. Fournier Hub.Org Networking Services (http://www.hub.org)\nEmail: scrappy@hub.org Yahoo!: yscrappy ICQ: 7615664\n", "msg_date": "Sun, 1 Jan 2006 22:04:17 -0400 (AST...
[ { "msg_contents": "Is this correct in autovacuum.c?\n\n\t pqsignal(SIGALRM, handle_sig_alarm);\n\nShould it be SIG_IGN? I don't see autovacuum using a timer or a reason\nit is calling the backend's timer routine.\n\n-- \n Bruce Momjian | http://candle.pha.pa.us\n pgman@candle.pha.p...
[ { "msg_contents": "> Robert Treat <xzilla@users.sourceforge.net> writes:\n> > On Sunday 01 January 2006 18:51, Andrew Dunstan wrote:\n> >> This has been debated ad nauseam in the past. The consensus, bar a \n> >> few people with more advanced paranoia than I suffer from, \n> is that we \n> >> can ;-)\n> \n> > I...
[ { "msg_contents": "\n\n\n-----Original Message-----\nFrom: pgsql-hackers-owner@postgresql.org on behalf of Andrew Dunstan\nSent: Sun 1/1/2006 11:51 PM\nTo: Magnus Hagander\nCc: pgsql-hackers@postgresql.org\nSubject: Re: [HACKERS] psql & readline & win32\n \n> >\n> >4) Can we ship linked with readline in the ins...
[ { "msg_contents": "\n\n\n-----Original Message-----\nFrom: pgsql-hackers-owner@postgresql.org on behalf of Tom Lane\nSent: Mon 1/2/2006 3:30 AM\nTo: Robert Treat\nCc: pgsql-hackers@postgresql.org; Andrew Dunstan; Magnus Hagander\nSubject: Re: [HACKERS] psql & readline & win32 \n \n> (Of course, you could also t...
[ { "msg_contents": "\n\n\n-----Original Message-----\nFrom: pgsql-hackers-owner@postgresql.org on behalf of Magnus Hagander\nSent: Mon 1/2/2006 8:08 AM\nTo: Tom Lane; Robert Treat\nCc: pgsql-hackers@postgresql.org; Andrew Dunstan\nSubject: Re: [HACKERS] psql & readline & win32 \n \n> Though we do ship GPL stuff ...
[ { "msg_contents": "> > I don't think it is good practice to ship packaged software that is \n> > statically linked to a gpl library and then claim that \n> your package \n> > is bsd licensed. If I were trying to use the windows \n> installer in a \n> > commercial application, I sure wouldn't want that liabi...
[ { "msg_contents": "> > Anyone for trying to port BSD libedit to work on Windows?\n> >\n> \n> Maybe just let it be on Windows is acceptable. I am currently \n> happy with my psql without readline support on Windows, but \n> on Unix that's hard. If Windows users want more advanced \n> client, there are a bunch of...
[ { "msg_contents": "> >2) Should we ship a file of standard bindings. We're not \n> going to get it complete, but we could get some of the most \n> common ones in europe at least (in sweden, this would for \n> example include \"\\@£${[]}~|\"). Which would help people a lot.\n> > \n> >\n> \n> Yes we should, at l...
[ { "msg_contents": "Is there any way to find out $subject? I see that several of the\nbuildfarm machines are choking on a patch I committed yesterday:\n\nguc-file.l: In function `ProcessConfigFile':\nguc-file.l:162: error: `YY_FLUSH_BUFFER' undeclared (first use in this function)\nguc-file.l:162: error: (Each u...
[ { "msg_contents": "> > Well, we should *at least* provide it from the source \n> build. Since it \n> > does work (with a small kludge, but it does work).\n> > Me, I'm not fully happy with psql on win32. I want my tab \n> completion!\n> > (which the gui tools don't do either, from what I can tell. \n> At least \...
[ { "msg_contents": "The issue is folks that DON'T set reverse DNS, I.E. have generic rDNS\nset on their IP's.\n\nI've seen (in my ISP days, and on my mailserver) LOTS of folks that\ncan't/won't update\nTheir rDNS, even though it's a STATICLY assigned address. \n\nAnd, as an example, my house IP changes when the ...
[ { "msg_contents": "I just noticed that the stats buffer process is consuming 100% cpu as \nsoon as a backend is started, and continues after that backend is ended:\n\n PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND\n15150 postgres 25 0 27004 948 508 S 99.9 0.0 0:30.97 postmaster\n\...
[ { "msg_contents": "\nI am writing to you all just to inform you of a bug(probably), that I\ncame across while trying to install PostgreSQL 8.1.0-2 and 8.1.1-1 on\nWinXP with SP2, using the PostgreSQL installer.\n\nI had done a windows clean install and then installed straight away\nPostgreSQL 8.0.4. It was the...
[ { "msg_contents": "Bruno Wolff III wrote:\n> On Tue, Jan 03, 2006 at 12:08:46 -0600,\n> Larry Rosenman <lrosenman@pervasive.com> wrote:\n>> The issue is folks that DON'T set reverse DNS, I.E. have generic\n>> rDNS set on their IP's. \n>> \n>> I've seen (in my ISP days, and on my mailserver) LOTS of folks that...
[ { "msg_contents": "Folks,\n\nJust got tripped up by this:\n\nGRANT SELECT ON table1 TO someuser;\nGRANT SELECT ON table1_id_seq TO someuser;\n.... both work\n\nHowever,\nGRANT SELECT ON TABLE table1 TO someuser; \n... works, while ....\nGRANT SELECT ON SEQUENCE table1_id_seq TO someuser;\n... raises an error.\n...
[ { "msg_contents": "Folks,\n\nI just stumbled across a little problem that looks like this:\n\nCREATE TABLE foo (\n id SERIAL PRIMARY KEY,\n f_text TEXT NOT NULL\n);\n\nCREATE UNIQUE INDEX uniq_foo_f_text ON foo(LOWER(TRIM(f_text)));\n\nCOPY foo(f_text) FROM stdin;\na\nb\nc\n\\.\n\nOh, shucks. I'd like to...
[ { "msg_contents": "Greetings,\n\n The following patch implements individual privileges for TRUNCATE,\n VACUUM and ANALYZE. Includes documentation and regression test\n updates. Resolves TODO item 'Add a separate TRUNCATE permission'.\n Created off of current (2005/01/03) CVS TIP.\n\n At least the 'no one...
[ { "msg_contents": "-----Original Message-----\nFrom: Zach Bagnall [mailto:zach.bagnall@bulletinwireless.com] \nSent: Wednesday, January 04, 2006 4:42 AM\nTo: pgsql-hackers@postgresql.org\nSubject: Re: [HACKERS] Incremental Backup Script\n\n\n>Gregor: can you explain how to identify the current file? I had \n>im...
[ { "msg_contents": "Here's the plan for assimilating the command-line options of the postmaster \nand postgres options. I reported earlier on a couple of conflict areas; here \nis the full plan:\n\n* Remove: postmaster -a -b -m -M\n\nThese options have done nothing forever.\n\n* postmaster options added to post...
[ { "msg_contents": "Improving N-Distinct estimation\n===============================\nv1.1\n\nOBJECTIVES\n\nAnswer these points...\n\n- Are there any performance issues that can be directly attributed to\nmis-estimation of N-Distinct (\"D\") by the ANALYZE command? \n\n- If so, can we do better than we currently...
[ { "msg_contents": "> > Me, I'm not fully happy with psql on win32. I want my tab \n> completion!\n> > (which the gui tools don't do either, from what I can tell. \n> At least \n> > pgadmin doesn't. Yet.)\n> \n> Mine has tab completion adapted from psql :). There are also \n> commands for specific completion typ...
[ { "msg_contents": "We have been having a problem with a long running vacuum on a table \nblocking deletes. We have a log table on which the only activity is an \non going series of deletions. The problem is experienced on a slony \nreplicated node, but I don't think that slony is at fault here.\n\nMy questio...
[ { "msg_contents": "I'm looking at back-patching these fixes into the release branches:\nhttp://archives.postgresql.org/pgsql-committers/2005-12/msg00479.php\nhttp://archives.postgresql.org/pgsql-committers/2006-01/msg00017.php\n\nThis is mostly pretty straightforward, except that the patch depends on\nhaving un...
[ { "msg_contents": "Just FYI, the core committee has agreed we need re-releases to fix the\nlocale environment issue and other recent bug fixes. Current thought is\nto wrap tarballs tomorrow (Thursday) evening, North American eastern\ntime, with public announcement scheduled for Sunday evening or Monday.\nThe l...
[ { "msg_contents": "There is a mention of QNX in tuplesort.c. Can that code segment be\nremoved now that QNX is removed?\n\n-- \n Bruce Momjian | http://candle.pha.pa.us\n pgman@candle.pha.pa.us | (610) 359-1001\n + If your life is a hard drive, | 13 Roberts Road\...
[ { "msg_contents": "\n\nIf we find at the bottom of test_config_settings() that we have not been\nable to run successfully at all (i.e. status != 0 at about line 1183 of\ninitdb.c) is there any point in continuing? Don't we know that we are\nbound to fail at the template1 creation stage? Maybe we should just exi...
[ { "msg_contents": "hi\ni was really more than happy when i saw table partitioning in release info\nfor 8.1.\nthen i tried to use it, and hit some serious problem (described on\npgsql-general).\nbasically the question is - is anybody at the moment working on improving\npartitioning capabilities? like improving q...
[ { "msg_contents": "\nI did some profiling related to printtup() by a simple libpq \"SELECT *\ntest\" program (revised from the libpq programing sample in document\nwithout retriving the results). There are 260k or so records in table\ntest(i int).\n\n/* original version - prepare tuple and send */\nSELECT * TIM...
[ { "msg_contents": "\nHinted by this thread:\n\n\thttp://archives.postgresql.org/pgsql-performance/2006-01/msg00016.php\n\nI wonder if we should really implement file-system-cache-warmup strategy\nwhich we have discussed before. There are two natural good places to do\nthis:\n\n\t(1) sequentail scan\n\t(2) bitma...
[ { "msg_contents": "Hi all!\n\nWe seem to be getting this error (in german) once in a while on a rather\ncomplex database:\n\nFEHLER: konnte auf den Status von Transaktion 0 nicht zugreifen\nDETAIL: kann Datei >>/var/databases/postgres/data/pg_subtrans/57DA<<\nnicht erstellen: Die Datei existiert bereits\n\nwh...
[ { "msg_contents": "I have developed a patch that writes a warning in the server log when a user \nchanges a restart-only parameter in the configuration file and does a reload. \nThe problem is that you will see this warning once for each running server \nprocess (unless you sent the HUP signal only to a specif...
[ { "msg_contents": "The TODO list contains some items concerning the CIDR/INET datatype.\n\n* %Prevent INET cast to CIDR if the unmasked bits are not zero, or\n zero the bits\n\nI added a function for this cast (which zeroes the bits) but then the\nopr_sanity regression test failed because there is a cast from ...
[ { "msg_contents": "Here is a quick-and-dirty function for forcing sinval reset (ie, catalog\ncache flush). I've already found one bug in CVS tip with it :-(, and\nI have a feeling there may be a lot more.\n\nBasic usage is: compile the program into a .so file, then in a spare\ndatabase do something like\n\ncre...
[ { "msg_contents": "All,\n I was thinking of handling the TODO for ISO8601 Interval output.\n\n Is http://archives.postgresql.org/pgsql-patches/2003-09/msg00121.php\nstill\n the consensus? I.E. rip out the current pseudo-iso code, and replace it\nwith \n genuine ISO8601 code?\n\n I tried(!) to e-mail Ron...
[ { "msg_contents": "Hi!\n\n-HEAD does not compile on my SMP i386 OpenBSD-current box (using a plain\n./configure):\n\ngmake[4]: Leaving directory\n`/home/mastermind/source/pgsql/src/backend/utils/mb'\n/usr/local/bin/gmake -C misc SUBSYS.o\ngmake[4]: Entering directory\n`/home/mastermind/source/pgsql/src/backend/...
[ { "msg_contents": "\nI just traced starting up a postmaster, and got over 38000 lines like this:\n\n stat64(\"/etc/localtime\", {st_mode=S_IFREG|0644, st_size=1267, ...}) = 0\n\nI assume it comes from the timezone library, but it seems highly \ninefficient. Anyone know why we might get this?\n\ncheers\n\nandr...
[ { "msg_contents": "The following is a suggestion for optimizing the libpq COPY FROM call for\nbetter performance. I submitted a similar suggestion awhile ago, but it\nwasn't safe enough. This one is better. It shows a pretty significant\nimprovement while maintaining deadlock prevention.\n\nThe change is locali...
[ { "msg_contents": "> I just traced starting up a postmaster, and got over 38000 \n> lines like this:\n> \n> stat64(\"/etc/localtime\", {st_mode=S_IFREG|0644, \n> st_size=1267, ...}) = 0\n> \n> I assume it comes from the timezone library, but it seems \n> highly inefficient. Anyone know why we might get this?...
[ { "msg_contents": "\nThe perl headers on Win32 try to hijack stdio and lots of other stuff \n(like getenv). This is annoying, as it generates lots of warnings, and \nprobably dangerous as well. To inhibit that we would need to set a flag \nbefore the header inclusion, thus:\n\n#ifdef WIN32\n#define WIN32IO_IS_S...
[ { "msg_contents": "Hackers,\n\nI can confirm that HEAD does not initdb because of a SIGBUS as reported below by Martin Pitt @ debian (see his email \nbelow). My build farm member (corgi) did pass all checks 6 days ago (I was having some issues with the build farm \ncode before that). If anyone would like to S...
[ { "msg_contents": "\nFirst, I cleaned up many of the warnings on my Windows box by running \nthis to fix up comments in perl's config.h:\n\n sed -i -e 's,\\(^/\\*.*\\)/\\*,\\1/ *,' config.h\n unix2dos config.h\n\nThat puts a space between the / and * of what would otherwise be an \nembedded comment start...
[ { "msg_contents": "I've been running the regression tests with the sinval-reset stress\ntesting program I posted yesterday:\nhttp://archives.postgresql.org/pgsql-hackers/2006-01/msg00244.php\nI've seen several crashes caused by using a tuple descriptor obtained\nfrom lookup_rowtype_tupdesc() after the descripto...
[ { "msg_contents": "Tom,\n\nMy email to you was blocked.\n\nJim\n\n---------- Forwarded Message -----------\nFrom: Mail Delivery Subsystem <MAILER-DAEMON@amanda.contactbda.com>\nTo: <jim@contactbda.com>\nSent: Sun, 8 Jan 2006 20:16:27 -0500\nSubject: Returned mail: see transcript for details\n\n----- The followi...
[ { "msg_contents": "Hi..\n\nI want to work on the following TODO item:\n\n\tAllow INET + INT4 to increment the host part of the address, or\n\tthrow an error on overflow.\n\nI plan to add a '+' operator to the system catalog. Is there a way to\nreserve/request an OID for this purpose? I was thinking about usin...
[ { "msg_contents": "���ԭ����ͺ���������������ͧ\n��ѡ�ҹ��á���ؤ����Ѻ��èѴ�к��ҹ��á��\nModern Office Management System\n\n�ѹ�ҷԵ���� 22 ���Ҥ� 2549\n���� 09.00-16.00 �.�ç�������Ż�Թ���� �.��չ��Թ��� \n�Դ�Ѻ�դ͹�����\n\n�ҹ��á�������Чҹ����ͧ��Ժѵ�����ǡѺ��ú����çҹ����� ��������´�����Ѻ�Դ�ͺ�ͧ�ҹ�ѧ����ǹ͡�ҡ��������ͧ�к��͡��� ��èѴ����ӹѡ�...
[ { "msg_contents": "Attached is a patch that makes the following changes:\n\n(1) refactor execQual.c to expose a function for checking an instance of\na domain value against a list of domain constraints\n\n(2) adjust pl/pgsql to fetch the constraints associated with the\nfunction's return value. Because this is ...
[ { "msg_contents": "> As per docs, if the databases are rarely updated it could take a long\r\n> time for the WAL segment to \"roll over\". \r\nYes, therefore I want to copy the current WAL (as I said earlier).\r\nWhen restoring, I also want to make sure that I restore exactely to the point when I copied the cur...
[ { "msg_contents": "The function current_setting returns 'unset' if a parameter is not set. \nShould it not return null? This is not documented, so I guess this just \narose out of the implementation, or is this intentional?\n\n-- \nPeter Eisentraut\nhttp://developer.postgresql.org/~petere/\n", "msg_date":...
[ { "msg_contents": "Hi,\nI just noticed today that Postgresql accepts a value of 24:00:00, this \nis for sure not correct as there is no such thing as 24:00:00\n\nPG Admin III will display this value just fine which is also incorrect, \nPG Lightning Admin catches it as a invalid time, but shouldn't there be \ns...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org \n> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Tony Caduto\n> Sent: 10 January 2006 15:38\n> To: pgsql-hackers@postgresql.org\n> Subject: [HACKERS] Question about Postgresql time fields(possible bug)\n...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org \n> [mailto:pgsql-hackers-owner@postgresql.org] On Behalf Of Harald Fuchs\n> Sent: 10 January 2006 16:53\n> To: pgsql-hackers@postgresql.org\n> Subject: Re: [HACKERS] Question about Postgresql time \n> fields(possib...
[ { "msg_contents": "\n\n\nOn 10/1/06 18:00, \"Tony Caduto\" <tony_caduto@amsoftwaredesign.com> wrote:\n\n> Dave Page wrote:\n> \n>> \n>> On looking further it appears to me that 24:00:00 is not a leap second\n>> (which definitely can be 23:50:60), but just another way of expressing\n>> midnight.\n>> \n>> From: h...
[ { "msg_contents": "Hi,\n\nI've been working with SQL Server for a long time and many times I had to\nchange how an index page is filled with fillfactor clause. I've noticed that\nPostgreSQL doesn't have anything like that, am I right?\n\nI'd like to implement something that could change the index page filling. ...
[ { "msg_contents": "Hi,\n\nJust for curiosity: suppose there is an excellent index frequently picked by\nthe optimizer. Suppose now that this index became extremelly fragmented with\nthousands of updates. Without a REINDEX, will Optimizer still pick it? Or the\noptimizer is smart enough to detect index fragmenta...
[ { "msg_contents": "I just ran \"cvs update\" in my 8.1 source tree and it took nearly\n25 minutes to complete; it usually takes about 30-60 seconds. Is\nanybody else seeing problems?\n\n-- \nMichael Fuhr\n", "msg_date": "Tue, 10 Jan 2006 19:44:23 -0700", "msg_from": "Michael Fuhr <mike@fuhr.org>", ...
[ { "msg_contents": "While thinking about how to do memory management for the TupleDesc\nrefcounting changes, it occurred to me that this coding pattern is\ndangerous:\n\nlocal_var = MemoryContextAlloc(TopMemoryContext, ...);\nfunc_call();\n/* ... */\n/* update global state */\nif (global != NULL)\n pfree(glob...
[ { "msg_contents": "Hi Hackers,\n\nI encountered overflow of bgwriter's file-fsync request queue. It occurred\nduring checkpoints. Each backend would call fsync disorderly in such cases,\nso that the checkpoint takes a long time and the performance has decreased.\nIt seems to happen frequently on the machines wi...
[ { "msg_contents": "Hi listers,\nI am experienced Oracle DBA und now I was given a task to evaluate\nPostgresql.\nMay first goal is to compare the architecture of Oracle and Postgres.\nAfter reading the fine manuals and several mailing lists, I have found\nthat the following parameters are analogous in \nPG vs O...
[ { "msg_contents": "\nThe original of this email appears to have disappeared into the ether. \n\ncheers\n\nandrew\n\n-------- Forwarded Message --------\nFrom: Andrew Dunstan <andrew@dunslane.net>\nTo: Tom Lane <tgl@sss.pgh.pa.us>\nCc: Greg Stark <gsstark@mit.edu>, Michael Paesold <mpaesold@gmx.at>,\nPostgreSQL ...
[ { "msg_contents": "Hi Harris,\nfrom oracle DBA point of view Enterprise DB is VERY cool. My boss will be\nvery happy to hear that there a way to get (paid) support for a PG DB.\n\nBut at the end I want to undestand how PG (and its clone Enterprise DB )\nis working ;) . Hopefully I don't need to read the whole ...
[ { "msg_contents": "Reposting, since it seems to not have made it :(\n\n\n\n\nLarry Rosenman wrote:\n> Ever since the stats collector changes, I've seen intermittent\n> failures \n> on 'firefly' in the buildfarm. This is my machine.\n> \n> There is one posted now, and the history has them as well.\n> \n> Could ...
[ { "msg_contents": "I'm in the process of upgrading one of my servers from 7.3 to 8.1, and\nhave run across a query that is slower on the new 8.1 box. FWIW The data\nis all freshly loaded and freshly analyzed, and this is 8.1.1 to be\nprecise. The part that I am really curious about right now is this\nsnippit of...
[ { "msg_contents": "\nI understand checkpoint code doing something like this:\n\n\tGet RedoRecPtr;\n\tFlush all dirty buffers no matter what's its LSN;\n\tWrite down checkpoint xlog record;\n\nSo I wonder is it possible flush only dirty buffers with LSN < RedoRecPtr\nto improve checkpoint caused delay? Because e...
[ { "msg_contents": "Folks,\n\nFor the same reason they feel that *n*x installs shouldn't be messing\naround in /usr/local, some people also feel that contrib modules\nshouldn't install in the public schema by default. Before I go\na-patching, I'd like to see what people think about how to handle\nthis. A few o...
[ { "msg_contents": "I have two identical functions below, the only difference is I \ndeclared my variable name to be 'info' instead of 'stuff'. I could \nnot find anywhere in the docs that 'info' has any special meaning. \nDid I miss it?\n\ncreate type my_info as (\n\ta text,\n\tb text\n);\n\n\n-- this works\...
[ { "msg_contents": "Has anyone else taken a look at this? I thought I'd play around with the\nsystem catalog and see if I couldn't put an ACL column into pg_attribute:\n\nIt ended up generating the following BKI line:\n\n\tinsert ( 1249 attacl 1034 -1 -1 18 1 -1 -1 f x i f f f t 0 _null_ )\n\nAnd the ROW certai...
[ { "msg_contents": "Help me, please,\ni have a module, which converts the WHERE clause to a canonical form, i.e. converting a logical clause to a conjuntional or dicjuntional clauses. For example:\n\n(ves > 100 or bbbb = 10) AND (bbbb = aaa + 1 OR (aaaa AND caa))\n\nwill be converted to dicjuntional form:\n\nves...
[ { "msg_contents": "Hi!\n\nI'm looking at a way to \"fix\" the issues with admin privileges on Win32\n- specifically by finding a way to give up all admin stuff before the\nserver starts, when possible (and otherwise fail just as today).\n\nI think I can do this. However, it is not possible to do this in a way\n...
[ { "msg_contents": "Hi,\n\nToday I was playing with our test environment and noticed that if I delete a\nPostgreSQL datafile (with cluster down) and bring up the database, It will\nsimple... come up???? :-/\n\nI wonder if it shouldn't complain about the missing datafile before opening\nthe cluster... I don't kno...
[ { "msg_contents": "> > I'm looking at a way to \"fix\" the issues with admin privileges on \n> > Win32\n> > - specifically by finding a way to give up all admin stuff \n> before the \n> > server starts, when possible (and otherwise fail just as today).\n> >\n> \n> So this will let an admin startup Postgres ... ...
[ { "msg_contents": "Folks,\n\n \n\nI would like to understand how the 'simple' backend commands work. \n\nAfter reading the \"How PostgreSQL Processes a Query\", I was wondering \n\nWhich command would be the easiest to begin with? (For a newbie of course.)\n\n \n\nRegards,\n\nGevik.\n\n \n\n \n\n\n\n\n\n\n\n\n\...
[ { "msg_contents": "Hi,\n\n From time to time people ask me if there is a way to \"customize\"\nmessages for constraints so they could be more informative to the\nuser...\n\nImagine something like:\n\ncreate table foo (fld int4 check (fld > 0));\nmessage for constraint foo_fld_check on foo is 'fld field must con...
[ { "msg_contents": "Naturally, just a minute after sending the patch, I realised how it can\nbe done better ;)\n\nIf the job object code is moved to the postmaster, it'll work when not\nrunning as a service as well. And there's no way to break out of the job\nobject - it's just the other part.\n\nYes, I'll set ...
[ { "msg_contents": "> > If the job object code is moved to the postmaster, it'll \n> work when not \n> > running as a service as well.\n> \n> I'd just as soon keep all that Windows-specific cruft in pg_ctl.\n> So I think the way you've got it set up is fine.\n\nWell, it'd all be localised to the backend/port/win...
[ { "msg_contents": "I've noticed a variety of coding styles in the PostgreSQL source code. In \nparticular, I see a mix of naming conventions. Some variables use camelCase \n(or CamelCase), others use under_score_style.\n\nI'm just wondering if there's a preferred naming convention. Is there an \nofficial con...
[ { "msg_contents": "> > However, libpostgres.a isn't in $(DESTDIR)/$(bindir), it's in\n> > $(DESTDIR)/$(libdir) and when I make that change in the installed \n> > makefile my module builds happily.\n> \n> > My question is: if I make this change will anything else break? \n> \n> Offhand that seems like it may jus...
[ { "msg_contents": "There's one nontrivial decision still to make about how to implement\nproper per-spec row-comparison operations, namely: how a row\ncomparison ought to be represented in the index access method API.\nThe current representation of index conditions in the AM API is an\narray of ScanKey structs,...
[ { "msg_contents": "A couple of days ago I found myself wanting to aggregate 3 Billion\ntuples down to 100 Million tuples based on an integer key with six\ninteger values -- six sum()'s.\n\nPostgreSQL ran out of memory with its Hash Aggregator and doing an old\nstyle Sort & Sum took a fair amount of time to comp...
[ { "msg_contents": "I've created a browsable source tree \"documentation\", it's done with the\ndoxygen tool.\n\nhttp://www.mcknight.de/pgsql-doxygen/cvshead/html/\n\nThere was a discussion about this some time ago, Jonathan Gardner proposed\nit here:\n\nhttp://archives.postgresql.org/pgsql-hackers/2004-03/msg00...
[ { "msg_contents": "Just thought that the following patch might improve checking for\ngetaddrinfo function (in configure.in)\nI was forced to write 'coz getaddrinfo went unnoticed in Tru64 Unix.\n\n(displaying attached patch)\n\n$ diff -r configure.in configure.in.1\n920c920,944\n< AC_REPLACE_FUNCS([getaddrinf...
[ { "msg_contents": "http://www.postgresql.org/docs/8.1/static/indexes-types.html\n\nsays:\nThe optimizer can also use a B-tree index for queries involving the\npattern matching operators LIKE, ILIKE, ~, and ~*, if the pattern is a\nconstant and is anchored to the beginning of the string - for example,\ncol LIKE ...
[ { "msg_contents": "> >> NT4 is officially dead, IMHO no need for PostgreSQL to officially \n> >> support it, let's leave place for companies offering commercial \n> >> postgresql versions to work on it if they have enough \n> customer requests.\n> >> BTW Win 2000 is more or less 6 years old now ...\n> I believe...
[ { "msg_contents": "I'm considering getting rid of the BTItem/BTItemData and\nHashItem/HashItemData struct definitions and just referencing\nIndexTuple(Data) directly in the btree and hash AMs. It appears that\nat one time in the forgotten past, there was some access-method-specific\ndata in index entries in ad...
[ { "msg_contents": "not sure if this is the right place to post...\n\nI am using postgres 8.1. In indxpath.c, it says \" Note: if Postgres tried\nto optimize queries by forming equivalence\nclasses over equi-joined attributes (i.e., if it recognized that\naqualification such as \"where\na.b=c.d and a.b=5\" coul...
[ { "msg_contents": "PG Build Farm wrote:\n> The PGBuildfarm member firefly had the following event on branch HEAD:\n> \n> Failed at Stage: Check\n> \n> The snapshot timestamp for the build that triggered this notification\n> is: 2006-01-17 03:27:00 \n> \n> The specs of this machine are:\n> OS: UnixWare / 7.1.4\...
[ { "msg_contents": "That was very much situation specific.\nBut the bottomline is the default test does not include <netdb.h> in the\ntest code.\nSo, pg uses getaddrinfo.c.And the getaddrinfo.c does not work for me. \nIpv6 client authenciation fails.\n\nI have modified the patch.\n\n$ diff -r configure.in config...
[ { "msg_contents": "I have a table, \"path\", which is:\n\n pathid | integer | not null default\nnextval('path_pathid_seq'::regclass)\n path | text | not null\nIndexes:\n \"path_pkey\" PRIMARY KEY, btree (pathid)\n \"path_name_idx\" btree (path)\n\nThe table contains approx 1.2 million rows, of which ...
[ { "msg_contents": "Hi,\n\nhere is a testcase:\n\nCREATE OR REPLACE FUNCTION testseq()\n RETURNS void AS\n$BODY$\nBEGIN\n CREATE TEMP SEQUENCE test;\n PERFORM testseq1();\n DROP SEQUENCE test;\n RETURN;\nEND; $BODY$\n LANGUAGE 'plpgsql' VOLATILE;\nALTER FUNCTION testseq() OWNER TO postgres;\n\n\nCREATE OR REPL...
[ { "msg_contents": "> > http://www.postgresql.org/docs/8.1/static/indexes-types.html\n> > says:\n> > The optimizer can also use a B-tree index for queries involving the \n> > pattern matching operators LIKE, ILIKE, ~, and ~*, if the \n> pattern is a \n> > constant and is anchored to the beginning of the string -...
[ { "msg_contents": "I modified postgresql 8.1 for its optimization part. Basically I reset\nthe whole memory context\nafter query optimization (but store the query plan in top level memory\ncontext so it is not lost).\n\nLater at certain time, I match queries to the pre-computed query plans\n(to avoid re-compili...