threads
listlengths
1
2.99k
[ { "msg_contents": "> Well, there is a theoretical chance of deadlock --- not against other\n> transactions doing the same thing, since RowShareLock and\n> RowExclusiveLock don't conflict, but you could construct deadlock\n> scenarios involving other transactions that grab ShareLock or\n> ShareRowExclusiveLock. ...
[ { "msg_contents": "> > I totaly missed your point here. How closing source of \n> > ERserver is related to closing code of PostgreSQL DB server?\n> > Let me clear things:\n> >\n> > 1. ERserver isn't based on WAL. It will work with any version >= 6.5\n> >\n> > 2. WAL was partially sponsored by my employer, Secto...
[ { "msg_contents": "Minor usability/debuggability suggestion...\n\nRI violation error messages in 7.0.0 do not appear to identify the\noffending value.\n\nExample:\n\nERROR: fk_employee_currency referential integrity violation - key\nreferenced from employee not found in currency\n\nEasier to debug would be:\n\...
[ { "msg_contents": "Greetings! I've noticed in the documentation that the sql standard\nrequires foreign keys to reference primary key/(or maybe just unique)\ncolumns, but that postgresql does not enforce this. Is this a feature\nthat is intended to persist, or a temporary deviation from the sql\nstandard? Th...
[ { "msg_contents": "> Short Description\n> foreign key check makes a big LOCK\n> \n> Long Description\n> in: src/backend/utils/adt/ri_triggers.c\n> \n> RI_FKey_check(), RI_FKey_noaction_upd(), RI_FKey_noaction_del(), etc..\n> checking the referential with SELECT FOR UPDATE.\n> \n> After BEGIN TRANSACTION: the IN...
[ { "msg_contents": "> > Sounds great! We can follow this way: when first after last \n> > checkpoint update to a page being logged, XLOG code can log\n> > not AM specific update record but entire page (creating backup\n> > \"physical log\"). During after crash recovery such pages will\n> > be redone first, ensur...
[ { "msg_contents": "I am running 7.0 and for columns that have type 'timestamp' \nthe values end up with the format of year-month-day HH:MM:SS-[0-n]\n\ne.g.\n 2000-12-05 15:58:12-06\n\n the trailing -n (e.g. -06) is killing the JDBC driver.\n\n Is there a work around. No matter what I Insert, a traili...
[ { "msg_contents": "\nSorry about that email. I was trying to forward your comments to a friend\nand due to a lack of sleep I just typed \"R\" in pine. Doh!\n\nCheers,\n\nRandy Jonasz\nSoftware Engineer\nClick2net Inc.\nWeb: http://www.click2net.com\nPhone: (905) 271-3550\n\n\"You cannot possibly pay a philoso...
[ { "msg_contents": "Hi,\n\nI see now the following message and couldn't start\npostmaster.\n\nFATAL 2: btree_insert_redo: uninitialized page\n\nIs it a bug ?\nAnyway,how do I reset my WAL environment ?\n\nRegards.\n\nHiroshi Inoue\n", "msg_date": "Wed, 06 Dec 2000 10:16:47 +0900", "msg_from": "Hiroshi I...
[ { "msg_contents": "> I see now the following message and couldn't start\n> postmaster.\n> \n> FATAL 2: btree_insert_redo: uninitialized page\n> \n> Is it a bug ?\n\nSeems so. btree_insert_redo shouldn't see uninitialized pages\n(only newroot and split ops add pages to index and they should\nbe redone before in...
[ { "msg_contents": "well im trying to get apache + php4 + pgsql 7.0.3 running on sco\ngivin up on the udk on sco openserver 5.0.5 now using sdk on sco open\nserver 5.0.4\ni can compile all the stuff static, but php4 wants to used shared\nlibpq.so i get undefined symbold on php4 module load unresolved symbol\nPQf...
[ { "msg_contents": "> > > FATAL 2: btree_insert_redo: uninitialized page\n> > >\n> > > Is it a bug ?\n> > \n> > Seems so. btree_insert_redo shouldn't see uninitialized pages\n> > (only newroot and split ops add pages to index and they should\n> > be redone before insert op).\n> > Can you post/ftp me tgz of data...
[ { "msg_contents": "Hello,\n\nwhat this can be?\n\nFATAL: s_lock(40015071) at spin.c:127, stuck spinlock. Aborting.\n\n From other sources I can find out that there was real memory starvation. All \nswap was eated out (that's not PostgreSQL problem).\n\n-- \nSincerely Yours,\nDenis Perchine\n\n------------------...
[ { "msg_contents": "\nFor an extension I am writing, I want to be able to write a function\nthat does this:\n\nselect * from table where field = textsearch(field, 'la bla bla', 10)\norder by score(10);\n\nI can currently do this:\n\ncreate temp table search_results (key int, rank int);\n\nselect plpgsql_textsear...
[ { "msg_contents": "\n> > > Sounds great! We can follow this way: when first after last \n> > > checkpoint update to a page being logged, XLOG code can log\n> > > not AM specific update record but entire page (creating backup\n> > > \"physical log\"). During after crash recovery such pages will\n> > > be redone ...
[ { "msg_contents": "I trying to implement a custom\ndatatype and after I have read\nthe docs I understand that I should\nuse large objects is the data type\nis to bigger than 8K.\n\nI have one question about using\nBLOBs in my intended work:\n-is there a way to automate the\nthe creation of new object when\na ne...
[ { "msg_contents": "Hi,\n\nI create a new type that work well, but when\ni use the cast function on my new type like this i have an error:\n(other fucntion like substring don't work too )\n\nselect bare_code::text from ean_article;\nERROR: Cannot cast type 'ean13' to 'text'\n\nWhat can i do in my new type in or...
[ { "msg_contents": "In current CVS \nutils/elog.h requires miscadmin.h which is doesn't installed.\n\n\tRegards,\n\t\tOleg\n_____________________________________________________________\nOleg Bartunov, sci.researcher, hostmaster of AstroNet,\nSternberg Astronomical Institute, Moscow University (Russia)\nInternet...
[ { "msg_contents": "\nHello,\n\n I was just experimenting, trying to see if I could find a function that\nwould format a numeric value like 'money' with Postgres 7.0.2. Here's\nwhat happened:\n\n######\ncascade=> select cash_out(2);\npqReadData() -- backend closed the channel unexpectedly.\n This probably...
[ { "msg_contents": "Well, no one seemed very unhappy at the idea of changing the file format\nfor binary COPY, so here is a proposal.\n\nThe objectives of this change are:\n\n1. Get rid of the tuple count at the front of the file. This requires\nan extra pass over the relation, which is a lot more trouble than ...
[ { "msg_contents": "> Vadim, Philip changed that part of pg_dump on my advice. The idea was\n> to try to do the right thing for sequences when loading schema only or\n> data only. Analogously to loading data into a pre-existing table, we\n> felt that a data dump ought to be able to restore the current state of...
[ { "msg_contents": "\nI know it's been a while since we last discussed a possible rewrite of\nthe C++ API but I now have some time to devote to it.\n\nThe following are my ideas for implementing the C++ API:\n\nI need suggestions, additions, comments etc!\n\nAll classes will be defined in postgres namespace.\n\n...
[ { "msg_contents": "> > CRCs are designed to catch N-bit errors (ie N bits in a row \n> with their\n> > values flipped). N is (IIRC) the number of bits in the CRC \n> minus one.\n> > So, a 32-bit CRC can catch all 31-bit errors. That's the \n> only guarantee\n> > a CRC gives. Everything else has a 1 in 2^32-1...
[ { "msg_contents": "Could someone explain this to me?\n\n(This is my second attempt at asking this)\n\ncreate function bunch_o_tuples (varchar) returns opaque\n as '/local/projects/phoenix/pg/pgtpl.so', 'tuple'\n language 'c';\n\n\nI should be able to do either:\n\ncreate table fubar as select bunc...
[ { "msg_contents": "> > > > Sounds great! We can follow this way: when first after last \n> > > > checkpoint update to a page being logged, XLOG code can log\n> > > > not AM specific update record but entire page (creating backup\n> > > > \"physical log\"). During after crash recovery such pages will\n> > > > be...
[ { "msg_contents": "Chih-Chang,\n\n> Do you remember the mb problem about Big5?\n\nSure.\n\n> Now I have tested all Big5 chars (with ETen extension -- some chars in\n> CNS 11643-1992 Plane 3) by the program in the attachment on\n> PostgreSQL 7.0.3 with patches from you show me.\n> The execution result is also in...
[ { "msg_contents": "\nhi, what kind of organization file does postgresql use?\n\n-- \n/earth is 98% full ... please delete anyone you can. \n", "msg_date": "07 Dec 2000 01:46:55 -0600", "msg_from": "\"Ivan =?iso-8859-1?q?Hern=E1ndez?=\" <ivanx@abulafia.fciencias.unam.mx>", "msg_from_op": true, "m...
[ { "msg_contents": "Hi,\n\nMy pgsql an postgres ( version V 7.0.2 ) stop with an error when i write \nthe following query under pgsql :\n\n create function test(text) returns text AS '' LANGUAGE 'sql';\n\nERROR under pgsql :\n\npqReadData() -- backend closed the channel unexpectedly.\n This probably means...
[ { "msg_contents": "Could anyone please add the following to our todo list:\n\n- make sure ECPG and postmaster use the same grammar\n- make sure ECPG accepts ip numbers as host name\n\nAlso there are some more bugs in ecpg that I didn't find time to fix yet.\n\nMichael\n-- \nMichael Meskes\nMichael@Fam-Meskes.De...
[ { "msg_contents": "Now that the postmaster takes a noticeable amount of time to shut down,\nI'm wondering if pg_ctl's default about whether or not to wait ought\nto be reversed. That is, \"-w\" would become the norm, and some new\nswitch (\"-n\" maybe) would be needed if you didn't want it to wait.\n\nComments...
[ { "msg_contents": "\nOkay, since I haven't gotten word back on where to find the docs for v7.1,\nit still contains those for v7.0, but I just put up beta1 tarballs in the\n/pub/dev directory ... can someone take a look at these before we announce\nthem to make sure they look okay?\n\n\nMarc G. Fournier ...
[ { "msg_contents": "> > This may be implemented very fast (if someone points me where\n> > I can find CRC func).\n> \n> Lifted from the PNG spec (RFC 2083):\n\nThanks! What about Copyrights/licence?\n\nVadim\n", "msg_date": "Thu, 7 Dec 2000 11:52:13 -0800 ", "msg_from": "\"Mikheev, Vadim\" <vmikheev@SECT...
[ { "msg_contents": "> > This may be implemented very fast (if someone points me where\n> > I can find CRC func). And I could implement \"physical log\"\n> > till next monday.\n> \n> I have been experimenting with CRCs for the past 6 month in \n> our database for internal logging purposes. Downloaded a lot of\n> ...
[ { "msg_contents": "> Now that the postmaster takes a noticeable amount of time to \n> shut down, I'm wondering if pg_ctl's default about whether or not\n> to wait ought to be reversed. That is, \"-w\" would become the norm,\n> and some new switch (\"-n\" maybe) would be needed if you didn't want\n> it to wait....
[ { "msg_contents": "> recently I have downloaded a pre-beta postgresql, I found \n> insert and update speed is slower then 7.0.3,\n> even I turn of sync flag, it is still slow than 7.0, why? \n> how can I make it faster?\n\nTry to compare 7.0.3 & 7.1beta in multi-user environment.\n\nVadim\n", "msg_date...
[ { "msg_contents": "> > That's why an end marker must follow all valid records. \n...\n> \n> That requires an extra out-of-sequence write. \n\nYes, and also increase probability to corrupt already committed\nto log data.\n\n> (I'd also like to see CRCs on all the table blocks as well; is there\n> a place to put...
[ { "msg_contents": "> > > Probably this is caused by my trial (local) change\n> > > and generated an illegal log output.\n> > > However it seems to mean that WAL isn't always\n> > > redo-able.\n> > \n> > Illegal log output is like disk crash - only BAR can help.\n> \n> But redo-recovery after restore would also ...
[ { "msg_contents": "Tom,\n\nHope this helps\n\n From the Oracle manual:\nPurpose\nReturns char1, left-padded to length n with the sequence of characters\nin char2; char2 defaults to a single blank. If char1 is longer than n,\nthis function returns the portion of char1 that fits in n.\n\nThe argument n is the tot...
[ { "msg_contents": "I have an abstract solution for a problem in postgresql's\nhandling of what should be constant data.\n\nWe had problem with a query taking way too long, basically\nwe had this:\n\nselect\n date_part('hour',t_date) as hour,\n transval as val\nfrom st\nwhere\n id = 500 \n AND hit_date >= '2...
[ { "msg_contents": "We recently had a very satisfactory contract completed by\nVadim.\n\nBasically Vadim has been able to reduce the amount of time\ntaken by a vacuum from 10-15 minutes down to under 10 seconds.\n\nWe've been running with these patches under heavy load for\nabout a week now without any problems ...
[ { "msg_contents": "I have a working version of a text search engine. I want to make it work\nfor Postgres (I will be releasing it GPL). It can literally find the\noccurrence of a string of words within 5 million records in a few\nmilliseconds. It is very fast, it works similarly to many web search\nengines.\n\n...
[ { "msg_contents": "\nHi all\nSmall intrusion in the Threads discussion\n\n1) don' t forget other OS .. the linux is not the only one (for now :-)\n)\n For example check the performance under Solaris\n http://www2.linuxjournal.com/lj-issues/issue70/3184.html\n\n2) unfortunatly some platforms that had...
[ { "msg_contents": "I have just returned from a seven-day trip to Japan. I spoke for seven\nhours to three separate groups, totalling 200 people. I spoke to a\nLinux Conference, a PostgreSQL user's group, and to SRA, a PostgreSQL\nsupport company. You can get more information on my home page under\n\"Writings\...
[ { "msg_contents": "Here is a late report on the OSDN database summit.\n\nIt was great to meet so many PostgreSQL users, and to meet the major\ndevelopers of MySQL, Interbase, and Sleepycat. We clearly have many of\nthe same hopes and concerns for open-source databases.\n\nPostgreSQL had half of all attendees. ...
[ { "msg_contents": "> > Try to compare 7.0.3 & 7.1beta in multi-user environment.\n> \n> As I understand it you claim it to be faster in multi-user \n> environment ?\n> \n> Could you give some brief technical background why is it so \n> and why must it make single-user slower ?\n\nBecause of commit in 7.1 does f...
[ { "msg_contents": "> > > Try to compare 7.0.3 & 7.1beta in multi-user environment.\n> > \n> > As I understand it you claim it to be faster in multi-user \n> > environment ?\n> > \n> > Could you give some brief technical background why is it so \n> > and why must it make single-user slower ?\n> \n> Because of co...
[ { "msg_contents": "> > Because of commit in 7.1 does fsync, with ot without -F\n> > (we can discuss and change this), but in multi-user env\n> > a number of commits can be made with single fsync.\n> \n> I was planning to ask why you disabled the -F switch. Seems \n> to me that people who trusted their OS+hardwa...
[ { "msg_contents": "> > I just didn't care about -F functionality, sorry.\n> > I agreed that we should resurrect it.\n> \n> OK. Do you want to work on that, or shall I?\n\nIn near future I'll be busy doing CRC + \"physical log\"\nthings...\n\nVadim\n", "msg_date": "Fri, 8 Dec 2000 12:33:34 -0800 ", "msg...
[ { "msg_contents": "It was just pointed out on pggeneral that hash indexes on macaddr\ncolumns don't work. Looking into it, I find that someone (me :-()\nmade a booboo: pg_amproc claims that hashvarlena is the appropriate\nhash function for macaddr --- but macaddr isn't a varlena type,\nit's a fixed-length pass...
[ { "msg_contents": "> We could fix this either by adding a new hash function to support\n> macaddr, or by removing the pg_amXXX entries that claim macaddr is\n> hashable. Either change will not take effect without an initdb,\n> however, and I'm loath to force one now that we've started beta.\n\nIf we're going t...
[ { "msg_contents": "> > We could fix this either by adding a new hash function to support\n> > macaddr, or by removing the pg_amXXX entries that claim macaddr is\n> > hashable. Either change will not take effect without an initdb,\n> > however, and I'm loath to force one now that we've started beta.\n> \n> If w...
[ { "msg_contents": "\nHello,\n\nWhy is this happening ?\n\nctonet=# show datestyle;\nNOTICE: DateStyle is ISO with European conventions\nSHOW VARIABLE\n\nctonet=# select creation_date from users limit 1;\n creation_date \n------------------------\n 2000-12-07 04:40:23+01\n ^^^^^^^^^^\n\nDatestyle has b...
[ { "msg_contents": "I've run tests (with 50 .. 250 simult users) for some PG project\nof my company. 7.1 was 3 times faster than 7.0.3 (fsync) but near\n3 times slower than 7.0.3 (nofsync). It was not the best day in\nmy life - WAL looked like big bottleneck -:(\n\nBut finally I've realized that this test makes ...
[ { "msg_contents": "\nIn researching a problem I have uncovered the following bug in index\nscans when Locale support is enabled.\n\nGiven a 7.0.3 postgres installation built with Locale support enabled\nand a default US RedHat 7.0 Linux installation (meaning that the LANG\nenvironment variable is set to en_US) ...
[ { "msg_contents": "> > So, I've run simple test (below) to check this. Seems that 7.1\n> > is faster than 7.0.3 (nofsync), and that SELECT FOR UPDATE in RI\n> > triggers is quite bad for performance.\n> > Also, we should add new TODO item: implement dirty reads\n> > and use them in RI triggers.\n> \n> That woul...
[ { "msg_contents": "> > I have only one explanation: it reduces number of transactions ready\n> > to commit (because of the same FK writers will wait till first one\n> > committed - ie log fsynced) and WAL commit performance \n> > greatly depends on how many commits were done by single log fsync.\n> > 7.0.3+nofs...
[ { "msg_contents": "I would like to mention that I met Tatsuo Ishii and Hiroshi Inoue while\nin Japan. This was the first time I met them, though I have worked with\nthem on PostgreSQL for many years. Tatsuo is really the voice of\nPostgreSQL in Japan. It was a real thrill. \n\nThere is a picture somewhere o...
[ { "msg_contents": "There have been some misconceptions in previous mails.\n\n1.) A CRC is _not_ stronger than a hash. CRC is a subset of the hash domain,\ndefined as \"a fast error-check hash based on mod 2 polynomial operations\"\nwhich has typically no crypto strength (and does not need it either for most\npu...
[ { "msg_contents": "\nI am also trying to port PostgreSQL to Dynix/ptx\n4.4.5. I have GNU gcc 2.95.2. \n\nI also have errors when trying to configure and make\nthe application and I am not particularily well\nqualified to sort them out. I would however be pleased\nto help where I can. \n\nBarry\n\n\n\n\n________...
[ { "msg_contents": "Hello,\n\nI have quite strange problem. It's lsof -i -n -P\npostmaste 20018 postgres 6u IPv4 12241380 TCP \n127.0.0.1:5432->127.0.0.1:6651 (CLOSE)\n\nAnd there is no pair for it.\n\nBacktrace of the backend shows:\n(gdb) bt\n#0 0x40198ba2 in recv () from /lib/libc.so.6\n#1 0x...
[ { "msg_contents": "parse_coerce.c contains the following conversation --- I believe the\nfirst XXX comment is from me and the second from you:\n\n /*\n * Still too many candidates? Try assigning types for the unknown\n * columns.\n *\n * We do this by examining each unknown argument position ...
[ { "msg_contents": "This is the last post I will make about my text search system, I'll\nrespond off line if anyone wants to correspond. I have taken up too much\nbandwidth as it is. The only reason I have been so persistent is that I\ncan't believe that I am the only person having this particular problem,\nand ...
[ { "msg_contents": "OK, I am through mail email backlog from my Japan visit. I will work on\na full 7.1 changes list this week.\n\n-- \n Bruce Momjian | http://candle.pha.pa.us\n pgman@candle.pha.pa.us | (610) 853-3000\n + If your life is a hard drive, | 830 Blyth...
[ { "msg_contents": "I thought the hackers team would be interested in knowing that SourceForge, as\nof Friday evening, is running on Postgres. Some 95,000 users and 12,500 Open\nSource projects are depending on your stuff, so I hope it's going to be stable\nfor us. ;-)\n\nThroughout the codebase we're making goo...
[ { "msg_contents": "\n> >> Perhaps they *should* truncate if the specified length is less than\n> >> the original string length. Does Oracle do that?\n> \n> > Yes, it truncates, same as Informix.\n> \n> I went to fix this and then realized I still don't have an adequate spec\n> of how Oracle defines these funct...
[ { "msg_contents": "\n> > The cons side of processes model is not the startup time. It is about\n> > kernel resource and context-switch cost. Processes consume much more\n> > kernel resource than threads, and have a much higher cost for context\n> > switch. The scalability of threads model is much better than th...
[ { "msg_contents": "\n> This brings up a good point. Threads are mostly useful when you have\n> multiple processes that need to share lots of data, and the interprocess\n> overhead is excessive. Because we already have that shared memory area,\n> this benefit of threads doesn't buy us much. We sort of alread...
[ { "msg_contents": "Sorry, but I just found out that many of my mails bounced because I was using \nmy secondary email address =8-0\n\n---------- Forwarded Message ----------\nSubject: Re: [HACKERS] CRC, hash & Co.\nDate: Mon, 11 Dec 2000 07:13:31 +1100\nFrom: Horst Herb <horst@hherb.com>\nTo: pgsql-hackers@po...
[ { "msg_contents": "Hi,\nI have been using Postgres-7.0.2 on Solaris 8 for the past few months, and \nwas about to upgrade to 7.1-test, and after following carefully the docs, I \nget this:\n\npostgres@ultra31:~ > /usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data\nIpcSemaphoreCreate: semget(key=5432004, n...
[ { "msg_contents": "I suggest to remove the following elog from line 943 of xlog.c. \nIt does not give real useful info and is repeated for each checkpoint,\nthus filling the log of an otherwise idle server.\n\n elog(LOG, \"MoveOfflineLogs: skip %s\", xlde->d_name);\n\nDEBUG: MoveOfflineL...
[ { "msg_contents": "> Hiroshi Inoue <Inoue@tpf.co.jp> writes:\n> > When VACUUM for a table starts, the transaction is not\n> > committed yet of cource. After *commit* VACUUM has handled\n> > heap/index tuples very carefully to be crash-safe before\n> > 7.1. Currently another vacuum could be invoked in the\n> > a...
[ { "msg_contents": "> I suggest to remove the following elog from line 943 of xlog.c. \n> It does not give real useful info and is repeated for each checkpoint,\n> thus filling the log of an otherwise idle server.\n> \n> elog(LOG, \"MoveOfflineLogs: skip %s\", \n> xlde->d_name);\n> \n> DE...
[ { "msg_contents": "> > If we move tuples in already committed state, a page with new\n> > tuple position goes to disk and backend crashes before page with\n> > old tuple position updated then we'll have two version of tuple\n> > after restart (new tuple with HEAP_MOVED_IN is valid and there is\n> > no HEAP_MOVE...
[ { "msg_contents": "> One thing we should look at before going with a 64-bit method is the\n> extra storage space for the larger checksum. We can clearly afford\n> an extra 32 bits for a checksum on an 8K disk page, but if Vadim is\n> envisioning checksumming each individual XLOG record then the extra\n> space ...
[ { "msg_contents": "Hello all,\n\nGreat Bridge formally announced its first product and service offerings \ntoday. Here are the highlights:\n\n * QA-tested distribution of PostgreSQL 7.0.3 for Linux (free, source \n and binaries available at http://www.greatbridge.com/download)\n * Automated graphica...
[ { "msg_contents": "Ok, after taking in feedback from several RPM users over the last six\nmonths or so, I have come up with a list of possible changes to the\nRPMset for PostgreSQL 7.1. I'd like comments on these changes. If\nthere are now comments, I'll go ahead and make the changes.\n\n1.)\tAddition of a po...
[ { "msg_contents": "I know you guys are pretty busy with the upcoming release but I\nwas hoping for more interest in this work.\n\nWith this (which needs forward porting) we're able to cut\nvacuum time down from ~10minutes to under 30 seconds.\n\nThe code is a nop unless you compile with special options(MMNB)\ns...
[ { "msg_contents": "> > Ops, sorry - this case is not relevant to 7.1: WAL guarantees that\n> > both pages will be updated on restart. Seems we are safe now.\n> \n> First,already committed state isn't a normal state at least \n> without WAL. We must have access to db as less as possible in the\n> state without W...
[ { "msg_contents": "> > > If Vadim isn't sufficiently confident of it to commit it \n> > > on his own authority, I'm inclined to leave it out of 7.1.\n> > > My concern is mostly schedule. We are well into beta cycle\n> > > now and this seems like way too critical (not to say high-risk)\n> > > a feature to be add...
[ { "msg_contents": "> I have an index on group_id, one on\n> (group_id,status_id) and one on (group_id,status_id,assigned_to) \n\nAs an aside notice: you should definitely only need the last of the\nthree indices, since it can perfectly work on group_id\nor group_id + status_id only restrictions.\n\nAndreas\n", ...
[ { "msg_contents": "The following example worked in previous versions (7.0.2 was the last I \ntested), but not in 7.1 any more:\n\ncreate table parent (\nglobal_id serial\n);\n\ncreate table child (\nanything text\n) inherits (parent);\n\ncreate table foreign (\nfk_id int4 references parent(global_id) on update ...
[ { "msg_contents": "Ooops, sorry, error in this example:\n> The following example worked in previous versions (7.0.2 was the last I\n> tested), but not in 7.1 any more:\n>\n> create table parent (\n> global_id serial\n> );\n>\n> create table child (\n> anything text\n> ) inherits (parent);\n>\n> create table for...
[ { "msg_contents": "I think the newC function idea is pretty good, however, what would be\ngreat is just one more step of protocol, perhaps an API verson 2 or 3:\n\nOne thing than makes writing a non-trivial function a bit problematic,\nand perhaps even less efficient, is that the function does not know when\nit...
[ { "msg_contents": "\n> I take it from the smiley that you're not serious, but actually it seems\n> like it might not be a bad idea. I could see appending a CRC to each\n> tuple record. Comments anyone?\n\nLet's not get paranoid. If you compress the output the file will get checksummed\nanyway. I am against a ...
[ { "msg_contents": "This problem with foreign keys has been reported to me, and I have confirmed\nthe bug exists in current sources. The DELETE should succeed:\n\n---------------------------------------------------------------------------\n\nCREATE TABLE primarytest2 (\n col1 INTEGER, ...
[ { "msg_contents": "> >> What is the default commit delay now?\n> \n> > As before 5 * 10^(-6) sec - pretty the same as sleep(0) -:)\n> > Seems CommitDelay is not very useful parameter now - XLogFlush\n> > logic and fsync time add some delay.\n> \n> There was a thread recently about smarter ways to handle shared ...
[ { "msg_contents": "I'm having trouble with like et.al. as there is no single character \nin et_EE locale (on linux at least) that is bigger than all the others.\n\nI would like to modify my locale definition files so that char(255) \nwould always sort after all others but I can't find docs on modifying \nthe lo...
[ { "msg_contents": "Hi,\n\nI am trying to emulate MySQL's SET type, by creating a new postgresql type.\n\nHowever, is it possible to create a type that has different parameters\nwherever it is used.\n\nFor instance - the varchar type takes as a parameter the max characters in\nthe field. Although there is only ...
[ { "msg_contents": "I propose we modify C functions for 7.2. \n\n( I'll volunteer to do as much as I can figure out ;-)\n\n(1) C functions should be able to return multiple values.\n\n(2) A setup and breakdown function should be able to be called\nsurrounding the query set in which a function is called. This all...
[ { "msg_contents": "Hi,\n\nI have just tried using the ILIKE function in 7.0.3. I assume that it is\njust a case-insensitive version of LIKE. (Please correct me if I am wrong\non this assumption.)\n\nThis is my example test case:\n\nusa=# select 'test' LIKE '%es%';\n ?column?\n----------\n t\n(1 row)\n\nusa=# ...
[ { "msg_contents": "Hello all,\nsorry, but I haven't received any replies to my previous message... and\nit's important for me to solve it.\n\nWhen I perform an action on a psql database (e.g. insert into a table),\nsome more action could be induced, via trigger firing:\n - is it possible to know at any time th...
[ { "msg_contents": "\n> > anyway? ;-)) If so, a search for artistid 100050450 definitely *should*\n> > use a sequential scan.\n> \n> I tested this statement against the database and you are right, about 14\n> seconds with the index, 4 without.\n\nNow I don't understand the problem any more. Are you complaining,...
[ { "msg_contents": "\nHi!\n\nI download, configure and install postgresql-7.1beta1 _exactly_ the\nsame way as my previous version - 7.0.2:\n\n\n\n./configure --enable-multibyte=KOI8 --enable-locale\ngmake\ngmake install\n\ninitdb\n\n\n\nBut it seems to me locale support gone out. In particulary\n\nselect upper('...
[ { "msg_contents": "I stated this before, but I did not get a helpful answer. I might have \nmisunderstood tghe documentation on foreign keys:\n\ncreate table global(id serial);\ncreate table child(anything text) inherits(global);\ninsert into child(anything) values ('test);\n\nNow, a select * from child shows\n...
[ { "msg_contents": "hi, there!\n\ntest=# create table a(id int primary key);\nNOTICE: CREATE TABLE/PRIMARY KEY will create implicit index 'a_pkey' for\ntable 'a'\nCREATE\ntest=# create table b(id int references a);\nNOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY\ncheck(s)\nCREATE\ntest=# ...
[ { "msg_contents": "\n> I stated this before, but I did not get a helpful answer. I \n> might have \n> misunderstood tghe documentation on foreign keys:\n> \n> create table global(id serial);\n> create table child(anything text) inherits(global);\n\nneed:\n\tcreate unique index child_id_index on child (id);\n\n>...
[ { "msg_contents": ">>\n>> \tcreate unique index child_id_index on child (id);\n\n>Thanks a lot. You saved my day :-)))\n\nAlways feels good to be able to help :-)\n\n> > > CREATE TABLE will create implicit trigger(s) for FOREIGN \n> KEY check(s)\n> > > ERROR: UNIQUE constraint matching given keys for reference...
[ { "msg_contents": "hi, there!\n\ntest=# create table a(id int primary key);\nNOTICE: CREATE TABLE/PRIMARY KEY will create implicit index 'a_pkey' for\ntable 'a'\nCREATE\ntest=# create table b(id int references a);\nNOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY\ncheck(s)\nCREATE\ntest=# ...
[ { "msg_contents": "I'm trying to delete all the records or only one record from a table but\ni'm having this message:\nERROR: Unable to identify an operator '=' for types 'int4' and 'text'\n You will have to retype this query using an explicit cast\n\nWhat's this means ???\n\nThanks\n\nLuis Sousa\n\n", ...
[ { "msg_contents": "Hi!\n\nMy name is Daniel �kerud, a swedish studen, writing an essay for my exam.\nThe label will be something like: \"Database algorithms\".\nI know it is a complex task, and will ofcourse, as soon as possible,\nspecify more preciesly what it will be about.\n\nI have thoughts about writing ...