threads
listlengths
1
2.99k
[ { "msg_contents": "hi,\n\n i am developing an application using php and postgresql. i do not know how to capture the return values of functions (stored procedures) from php.\n\n please reply to prasanna_be_eee@yahoo.com\n\n thanking you profusely,\n\n prasanna.v\n\n\n\n------------------------------...
[ { "msg_contents": "\n> We have deliberately avoided trying to abort as soon as the connection\n> drops, for fear that that might cause unexpected problems.\n\nIsn't there the additional worry, that if the backend does not abort,\nthat the client might not even notice the error (receives the next packet\nwhich h...
[ { "msg_contents": "I don't understand following behavior of psql:-)\nThis is PostgreSQL 7.1.2 on Linux.\n--\nTatsuo Ishii\n\n$ psql pgimage\nWelcome to psql, the PostgreSQL interactive terminal.\n\nType: \\copyright for distribution terms\n \\h for help with SQL commands\n \\? for help on internal ...
[ { "msg_contents": "\nMorning all ...\n\n\tBuild a file with 100k INSERT statements in it, and run psql -f on\nthat file ... no BEGIN/END in the file, just straight INSERTs ... what is\nthe max throughput ppl can see?\n\n\tI'm seeing reports of it maxing out on an AIX around 450, and on\nan HP around 380 ... any...
[ { "msg_contents": "I've installed a fresh postgresql-7.1.2 on a Debian GNU/Linux, when\nimporting my first database from a dump I got this error:\n\nERROR: ExecAppend: Fail to add null value in not null attribute\nfc_state\nFATAL 2: ZeroFill(/data/postgres/pg_xlog/xlogtemp.1223) failed: No such\nfile or direc...
[ { "msg_contents": "Hi all,\n I am having problems deleting a record with oid. I tried\nselect lo_unlink(68778) from tablename\nwhere 68778 is the oid\nbut it gives :\nlo_unlink\n-----------\n -1\n -1\n(2 rows)\n\nand when I try to delete that record by:\ndelete from tablename where id=1;\nit goe...
[ { "msg_contents": "I'm haveing a very hard time with these views, rules, and I don't know if \nit's a programing problem, or it's that I don't understand the docs. I have \nthis:\n\nwebunl=> \\d\n List of relations\n Name | Type | Owner\n-----------------------------+--...
[ { "msg_contents": "Hi all,\n I am trying to delete a record which had one of the fields as oid.\nI was able to delete all the records except for 3.\nI tried:\nselect lo_unlink(64445) from tablename\nAnd then:\ndelete from tablename where id=1;\n\nit worked\nBut for 3 records the delete command goes in hang.\n...
[ { "msg_contents": "With XSDs right around the corner using ISO 8601 compliant dates, what\nare the chances Postgres could fully support them?\n\nThe primary difference between that and what it does now is a T for\nthe date / time seperator rather than a space and the potential for a\nZ for the timezone seperato...
[ { "msg_contents": "Hi,\n\nI am trying to use postgresql in some research\nproject. I need to add some new operators, some\nwill probably take more than 2 input tuple streams.\nThe new operator will be considered by optimizer\nwhen estimating cost and choosing a plan.\n\nCan anyone tell me how hard this will be...
[ { "msg_contents": "\nMorning all ...\n\n\tHave a client that is running an HP server, specs as follows:\n\n> HP-UX 11.00 HP 9000 L-200, Dual CPU (400MHz - 64 bit),\n> OS Disk: 9GB U2W-LVD SCSI, 10K rpm\n\n\tThey are trying to determine whether or not it will be able to\nhandle their environment, and we're tryin...
[ { "msg_contents": "Does anyone want to keep elog(NOIND)? It's not used anywhere, and I think\nthe notion of indentation levels, while kind of obsolete with syslog\nanyway, should not be part of the elog API.\n\n-- \nPeter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter\n\n", "msg_date": "W...
[ { "msg_contents": "Hi,\n\nI am trying to use postgresql in a research\nproject. I need to add several new operators, some\nwill probably take more than 2 input tuple streams.\nThe new operator will be considered by optimizer\nwhen estimating cost and choosing a plan.\n\nCan anyone tell me how hard this will be...
[ { "msg_contents": "There is a \"postgres\" option -o which can redirect the server output to a\nfile. The postmaster output will still go to stderr. Does anyone recall\nhow this was supposed to be useful?\n\nInteresting code (from elog):\n\n /* NOTE: debug file is typically pointed at stderr */\n write(...
[ { "msg_contents": "Eric writes:\n\n> I can realize this function in the SYBase,but How can i do it in the PostgreSQL?\n>\n> /****SQL***/\n> if not exists(select id from test) insert into test(id) values (280);\n> /*********/\n\nI don't know if this is SQL92, but \n\ninsert into test(id) select 280 where not ...
[ { "msg_contents": "pgsql-hackers-owner@postgresql.org ,in message <200106062214.f56ME2E51506@postg\n\tresql.org>, wrote: \n\n> First it's not standard SQL, so chances aren't that good.\n> Second, how do you think the system should behave in the\n> following case:\n> \n> * Table A has ...
[ { "msg_contents": "\nHello,\n\nI'm a long time Postgres user who uses MySQL when I have to. I recently\nran into an issue with MySQL where this construct didn't do what I expect:\n\nWHERE date_column = NULL\n\nI expected it to work like \"date_column IS NULL\" like it does it\nPostgres 7.0.2, but instead it ret...
[ { "msg_contents": "Hi,\n\nIs there any plans for making RPM's for 7.1.2 ?\n\nI'm particularily interested in RPM's for RH 6.2 as I have \nonly a few sites running RH 7.x and can do the usual \nconfigure-make-make install on these.\n\n------------------\nHannu\n", "msg_date": "Thu, 07 Jun 2001 08:43:36 +0500...
[ { "msg_contents": "I have a report from BSD/OS developers that 'make check' fails during\nthe initdb stage. Any ideas?\n\n/bin/sh ./pg_regress --temp-install --top-builddir=../../.. --schedule=./parallel_schedule --multibyte=\n============== removing existing temp installation ==============\n==============...
[ { "msg_contents": "Here's an idea. Allow (escaped) wildcards in pg_dump's -t switch.\n\nie.\n\nbash#> pg_dump -d -t diary_\\* testdb > diary.sql\n\nIs that an easy thing or a hard thing?\n\nChris\n\n", "msg_date": "Thu, 7 Jun 2001 14:50:13 +0800", "msg_from": "\"Christopher Kings-Lynne\" <chriskl@famil...
[ { "msg_contents": "I tried another group without success, so....\n\nThe documents do not explain clearly enough, and here are no examples\nshowing how to connect (via TCP/IP) to pg on another host.\n\nI need to supply user, password and database/\n\nHere are examples that do not work:\n // exec sql connect \"t...
[ { "msg_contents": "\n> > Yes, column = NULL should *never* return true according to the spec (it\n> > should always return NULL in fact as stated). The reason for breaking\n> > with the spec is AFAIK to work with broken microsoft clients that seem to\n> > think that =NULL is a meaningful test and generate quer...
[ { "msg_contents": "> What if I rename the get_seq_name function and move it to\n> backend/utils/adt/name.c (and of course change the references to it in\n> sequence.c)? Actually, now I'm wondering why nameout doesn't \n> downcase and\n> truncate.\n\nBecause identifiers can be double quoted if you feel like pres...
[ { "msg_contents": "\n> \tERROR: blah blah\n> \tCODE: 12345\n> \tLOCATION: some/file.c line NNN\n\nIt might be handy to have the LOCATION in the postmaster log,\nor make it something that needs to be explicitly switched on.\nI do not think it is of general interest to users (most errors \nwill result from normal...
[ { "msg_contents": "\n> > Actually I am not sure whether the column = NULL syntax is even defined \n> > or allowed in SQL92 (e.g. Informix interprets the NULL as column name in \n> > this context and errs out).\n> \n> I don't have the standard handy, but I do have Joe Celko's book, \"Data\n> & Databases: Concept...
[ { "msg_contents": "I get this a lot and it keeps me from backing up the database.\n\nThis database is still 7.0.3. Anyone knows what cases it and how to correct it,\nbecause I can't dump to a new database.\n", "msg_date": "Thu, 07 Jun 2001 08:36:48 -0400", "msg_from": "mlw <markw@mohawksoft.com>", "...
[ { "msg_contents": "\n> > Thus it could be, that NULL in \"where column = NULL\" is not defined \n> > to have a special meaning according to SQL92.\n> \n> The way I interpret Celko's interpretation of SQL92, that specific\n> construct has a meaning; it evaluates to UNKNOWN, thus not to TRUE,\n\nImho the text ref...
[ { "msg_contents": "OK, I think I found a bug related with privileges, views and rules.\n\nI have a bunch of tables, owned by martin, and some views with the related \nrules for inserts, updates and deletes, all owned by martin.\n\nI also have some other users that are in a group webunl_admin. This group is \ngr...
[ { "msg_contents": "\nIn process of converting a bunch of scripts from sybase to postgresql\nI see something that doesn't make much sense..\n\nI can grant a series of privileges (comma separated) on a series of\nobjects (comma separated) to either a user, group or public NOT a\ncomma separated list of users or g...
[ { "msg_contents": "But beforwarned that if you build the package on rpm 3.0.5, the machines\nwith previous versions of RPM will not be able to install that RPM. So you\nwill have to upgrade all of your machines (and also install a couple of\nlibraries, ie. popt and something else or the other). (correct me if I...
[ { "msg_contents": "And in addition,\n\nIf you submitted the query:\n\nSELECT * FROM addresses WHERE state = 'OH'\nAND areacode = '614'\n\nThen, with bitmap indexes, the bitmaps are just logically ANDed \ntogether, and the final bitmap determines the matching rows.\n\nMike Mascari\nmascarm@mascari.com\n\n-----Or...
[ { "msg_contents": "The best solution would be to have the ODBC translate instances of '= \nNULL' into IS NULL before submitting the query to PostgreSQL. I'm \nsure this is how other vendors, like Oracle handle the issue. Well, \nprobably sure... :-)\n\nMike Mascari\nmascarm@mascari.com\n\n-----Original Message-...
[ { "msg_contents": "Hi all,\n\nI've been using PostgreSQL for a couple of high performance projects\nrecently and have been extremely impressed - much kudos to all involved in\nbringing it this far. One thing that is limiting is the lack of fault\ntolerance and load balancing.\n\nAnyway, I've recently started lu...
[ { "msg_contents": "I saw someone else also saw this error. I am seeing it in 7.1.2 and I\nthink I may have tracked it down. It's after a different operation but\nperhaps it is related.\n\nI have written a trigger. It dies with that error when I make the\nfollowing call.\n\nSPI_modifytuple (rel,rettuple,1,&ta...
[ { "msg_contents": "\nI created a Foreign Key (REFERENCES) constraint on\na table like this (some columns ommited) :\nCREATE TABLE tablename (\n id_tablename\t INTEGER DEFAULT nextval('id_tablename_seq'),\n tablename_parent INTEGER CONSTRAINT tablename_parent_fk\n REFERENCES tablename (id_tablename),\n C...
[ { "msg_contents": "\n I built my own binary RPMs with rpm -bb and this spec file. I compiled\nand \"installed\" postgres using the instructions in comments in the %build\nsection because I haven't bothered to figure out how %build works. This\ninstallation is roughly based on the RedHat 6.0 SPEC file and pro...
[ { "msg_contents": "\nHI\n\nI am having trouble with a 7.1rc4 database filling up my disks. What I do\nis put a large number of \"small\" large objects of seismic data into the\ndatabase in one process and use another process to unlink them after they\nreach a certain age to form a buffer. The unlink seems to be...
[ { "msg_contents": "\n> > The best solution would be to have the ODBC translate instances \nof '=\n> > NULL' into IS NULL before submitting the query to PostgreSQL.\n\nTom Lane wrote:\n\n> Does Access only talk to Postgres via ODBC? (Seems plausible, but \nI\n> don't know.) What about people copying-and-pastin...
[ { "msg_contents": "If one runs Postgresql with fsync turned off in order to get better\nperformance, is there a risk that the database internals will be\ndamaged by a system crash? I realize that database discrepancies are\npossible, but I am referring to a failure where storage allocation\ngets messed up, or c...
[ { "msg_contents": "Frequently one wants a data set returned in the same order as the\nindex used in the query. Informix (at least) has implicit order-by,\nwhich means that the data will be returned in collating order if the\nquery forces use of the appropriate index.\n\nDoes Postgresql do this?\n\nIf not, does ...
[ { "msg_contents": "Hi people,\n\nI've found that some two functions in /src/backend/optimizer/plan/planner.c\nhave side effects.\n\nFirst, I've added two pprints before and after line 89-90 like this.\n\n\n\npprint(parse->rtable);\n\n/* primary planning entry point (may recurse for subqueries) */\nresult_plan =...
[ { "msg_contents": "Robert Bruccoleri (bruc@stone.congen.com) wrote:\n> It's not clear to me why the spinlock needs be grabbed at the\n> beginning of RelationGetBufferWithBuffer,\n\nI believe you are right: the spinlock doesn't need to be grabbed,\nbecause if a valid buffer is passed in, it must already be pinne...
[ { "msg_contents": "\tI'm running into some strange behavior with foreign keys which are a\ntuple of primary keys.\n\n\nI have a parent table sector, and a child of that is cell_area table and a\nchild of that is unit table.\n\nThe cell_area table has a foreign key parent_sector_index referencing same\nname in p...
[ { "msg_contents": "\nI had a baby girl on Tuesday. I am working through my backlogged emails\ntoday.\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 Blythe Avenue\n + Christ can ...
[ { "msg_contents": "ChangeLogs$ ls -1\nChangeLog-7.1-7.1.1\nChangeLog-7.1RC1-to-7.1RC2\nChangeLog-7.1RC2-to-7.1RC3\nChangeLog-7.1RC3-to-7.1rc4\nChangeLog-7.1beta1-to-7.1beta3\nChangeLog-7.1beta3-to-7.1beta4\nChangeLog-7.1beta4-to-7.1beta5\nChangeLog-7.1beta5-to-7.1beta6\nChangeLog-7.1beta6-7.1RC1\nChangeLog-7.1r...
[ { "msg_contents": "Awhile ago, I remember discussion about having a 'cstring' datatype in\npgsql with builtin understanding that to convert to cstring you need to\nuse xxx_out and to convert from cstring you need to use yyy_in.\n\nAnything came out of this discussion? It seems it'd be a great way to\nhave easie...
[ { "msg_contents": "Hi,\n\nI noticed that postgresql won't ever use a merge join when dealing with\ninet types (for t1.ip=t2.ip, where merge is definitely the best method).\nDelving into pg_operator, it appears that = for inet datatype is not\ncreated with any left_sort_op/right_sort_op and thus won't merge won'...
[ { "msg_contents": "Is there any reason to EVER call pg_fsync?\n\nWhat would happen if we always called pg_fdatasync?\n\nJust curious, is there a reason why we would always want the meta data updated\nfor each block update? Does postgres use it? Wouldn't the replacement of fsync\nwith fdatasync increase performa...
[ { "msg_contents": "Hi,\n\ntoday I had a little problem with the actual JDBC driver. Due to the use of Runtime.addShutdownHooks(), which throws a SecurityException if used within a servlet container (WebLogic Server 5.1 & 6.0), the postgres JDBC driver is unusable in this environments. I spent some minutes looki...
[ { "msg_contents": "\n> From Andreas' comments, it seems that for his application he would like\n> a different behavior, but frankly I'm not certain why the current\n> behavior would be detrimental in the use case he mentioned. If SQL92\n> requires that any query with \"= NULL\" be rejected as illegal\n\nYou don...
[ { "msg_contents": "> These pointers are useless\n> except in the very unusual case where one steps forward and then back\n> in a sequential scan (for example, \"FETCH 1; FETCH BACKWARD 1;\" in a\n> cursor).\n\nActually I think it should be known whether a fetch backward is actually\nallowed for a particular cur...
[ { "msg_contents": "Hi all,\n\nI've posted this message twice nefore on pgsql-bugs, but I can't seem to get \nany response. The issue described below is pretty serious (at least as far as \nmy company is concerned):\n\nWhile trying to upgrade Postgres from version 7.0.3 to 7.1.2, I find that a \nprogram which dl...
[ { "msg_contents": "I noticed current wierd behaviour of a less/greater than comparisons of\nthings involving inet/cidr:\n\n10.1.2.3/8 is considered to be less than 10.0.0.0/32\n\nThe current logic does the following:\na) compare the network part of each (this will be 10.0.0.0), identical in\nthis case.\n\nb) co...
[ { "msg_contents": "> I had a baby girl on Tuesday. I am working through my \n> backlogged emails\n> today.\n\nCongratulations -:)\n\nVadim\n", "msg_date": "Mon, 11 Jun 2001 09:16:36 -0700", "msg_from": "\"Mikheev, Vadim\" <vmikheev@SECTORBASE.COM>", "msg_from_op": true, "msg_subject": "RE: Baby...
[ { "msg_contents": "You guys said you've never seen it.\nYou said you wanted to know if anyone has ever run into it!\n\nWelcome to psql, the PostgreSQL interactive terminal.\n\nType: \\copyright for distribution terms\n \\h for help with SQL commands\n \\? for help on internal slash commands\n ...
[ { "msg_contents": "I am planning to deal with all of the following TODO items today:\n\n* pg_database should have unique indexes on oid and on datname.\n\n* pg_shadow should have unique indexes on usename and on usesysid.\n\n* pg_am should have unique index on oid\n\n* pg_opclass should have unique index on oid...
[ { "msg_contents": "We have been researching replication for several months now, and\nI have some opinions to share to the community for feedback,\ndiscussion, and/or participation. Our goal is to get a replication\nsolution for PostgreSQL that will meet most needs of users\nand applications alike (mission impos...
[ { "msg_contents": "\nOn Fri, 8 Jun 2001, Mike Cianflone wrote:\n\n>> \tI'm running into some strange behavior with foreign keys which are a\n>> tuple of primary keys.\n>> \n>> \n>> I have a parent table sector, and a child of that is cell_area table and\na\n>> child of that is unit table.\n>> \n>> The cell_area...
[ { "msg_contents": "We have been researching replication for several months now, and\nI have some opinions to share to the community for feedback,\ndiscussion, and/or participation. Our goal is to get a replication\nsolution for PostgreSQL that will meet most needs of users\nand applications alike (mission impos...
[ { "msg_contents": "I am trying to create a user defined C function that will\nbe called within PL/pgSQL\n\nNamely, I need a function that will create a new Large Object and copy\nthe data\nof an existing Large Object into the new Large Object.\n\nThis is the way the function would be registered\n\nCREATE FUNCT...
[ { "msg_contents": "I have run into a small snag with adding indexes to pg_shadow: the first\nattempt to run a non-bootstrap-mode backend fails with 'user \"postgres\"\ndoes not exist'. The reason it fails is that user postgres is added\nto pg_shadow by global.bki, which is run after template1.bki, which is\nwh...
[ { "msg_contents": "Attached is a patch adding following functions:\n\ninet(text), cidr(text): convert a text value into inet/cidr\nset_masklen(inet): set masklen on the inet value\n\nPatch also contains regression checks for these functions.\n\n-alex", "msg_date": "Mon, 11 Jun 2001 21:29:39 -0400 (EDT)", ...
[ { "msg_contents": "\nOops, I see you've just done that, great!\n\n\n\n\nTo: Chris Dunlop <chris@onthe.net.au>\ncc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-patches@postgresql.org (bcc: Chris\n Bitmead/ITG/Health)\n\nSubject: Re: [PATCHES] Australian timezone configure option\n\n\n\n> On Mon, Jun 11, 2001 a...
[ { "msg_contents": "Hi\n\nI wonder why all large objects is placed in one system table\n pg_largeobject ).\nI just want to trow an idea, why not create a similiar table and added pglo\n( something like pglo_tablename ).\nThis way, the large objects will be spread in every table that has the blob\ntype.\n\nThank'...
[ { "msg_contents": "\n> Although \n> Postgres-R is a synchronous approach, I believe it is the closest to \n> the goal mentioned above. Here is an abstract of the advantages.\n\nIf you only want synchronous replication, why not simply use triggers ?\nAll you would then need is remote query access and two phase c...
[ { "msg_contents": "\n> Frequently one wants a data set returned in the same order as the\n> index used in the query. Informix (at least) has implicit order-by,\n> which means that the data will be returned in collating order if the\n> query forces use of the appropriate index.\n> \n> Does Postgresql do this?\n\...
[ { "msg_contents": "Not sure if this is the right place, but...\n\nI am evaluating a move from FoxPro to PostgreSQL. So far, I like what I\nsee... alot. But, I have a data migration issue looming in the near\nfuture that I need to address. The pgAdmin tool is nice, and works okay\non small databases, but I n...
[ { "msg_contents": "\n> Here are some disadvantages to using a \"trigger based\" approach:\n> \n> 1) Triggers simply transfer individual data items when they \n> are modified, they do not keep track of transactions.\n> 2) The execution of triggers within a database imposes a performance \n> overhead to that data...
[ { "msg_contents": "In case Tom isn't sick of me yet...\n\nusers=# select '10.1.2.3/24'::inet::cidr;\n ?column? \n-------------\n 10.1.2.3/24\n\nwhile:\n\nusers=# select '10.1.2.3/24'::cidr;\nERROR: invalid CIDR value '10.1.2.3/24': has bits set to right of mask\n\nApparently, since there's no explicit funct...
[ { "msg_contents": "\n> > I would be very interested in hearing about your experiences with\n> > this...\n\nWell, Eric thinks it works just spiffy. 8-)\n\nRecall is written in C++, and is meant to be extensible. It was\nextended for perl and the DBI layer. \n\nNote that this hack for perl is not perfect, espe...
[ { "msg_contents": "\n Running postgres-7.0.3 on a RedHat 6.2 system:\n\n Recently I updated the schema of one of our tables (create, insert\nselect, drop, rename). We have a boolean column \"hitsingle\" with a default\nof 'f'.\n\nmedia=> \\d incantaaudioclipregistry\n Table \"incantaaudioclipregist...
[ { "msg_contents": "We have the following item on TODO:\n\n\t* Overhaul pg_hba.conf host-based authentication\n\nCan people tell me what they want changed. I know we need the pg_shadow\npassword field encrypted in the table and I will work on that now.\n\n-- \n Bruce Momjian | http://ca...
[ { "msg_contents": "> Here are some disadvantages to using a \"trigger based\" approach:\n> \n> 1) Triggers simply transfer individual data items when they \n> are modified, they do not keep track of transactions.\n\nI don't know about other *async* replication engines but Rserv\nkeeps track of transactions (if ...
[ { "msg_contents": "Anyone know of any alternatives to using pgAdmin to migrate a database\n(schema and data) from Foxpro to PostgreSQL? pgAdmin worked fine on my\ninitial test database, but it was slow... very slow. I'd like to try to\nmigrate one of our production databases, where several tables have\n200,00...
[ { "msg_contents": "\tI know that vacuum has come up in the past, and even saw the\ndiscussion about putting a cron entry to have it run every once in a while,\nbut I don't remember seeing anything about having it kick off via a trigger\nevery so may inserts.\n\tIs there a relative consensus for how often to run...
[ { "msg_contents": "Hi,\r\n\r\nMy project requires to use Big5/EUC_TW (two bytes per\r\nchinese-character).\r\n\r\nUnfortunately, Big5 code contains escape '\\'.\r\nFor instance,\r\n1: create table \"¦¨¥\\ªº¤@¥b\" (n int, m text);\r\n2: create table n (n int, m text);\r\n3: insert into n values (19,'¦nªº¶}©l¬O¦¨...
[ { "msg_contents": "Here is a patch that will warn you during VACUUM when you are within 75%\nof oid/xid wraparound.\n\nI will apply it if 7.2 has no solution to the wraparounds.\n\n-- \n Bruce Momjian | http://candle.pha.pa.us\n pgman@candle.pha.pa.us | (610) 853-3000\n ...
[ { "msg_contents": "\n> \tIs there a relative consensus for how often to run vacuum? I have a\n> table of about 8 columns that I fill with 100,000 items simply via a \"\\i\n> alarms.sql\". After 1,000 items or so it gets extremely slow to fill with\n> data, and will take over a day to fill the entire thing unles...
[ { "msg_contents": "\n> Well as I read back the thread I see 2 different approaches to\n> replication:\n> \n> 1: tight integrated replication. \n> pro:\n> - bi-directional (or multidirectional): updates are possible everywhere\n> - A cluster of servers allways has the same state. \n> - it does not matter to whic...
[ { "msg_contents": "I was thinking this morning, how much work would it be to change the directory\nstructure of Postgres. \n\nfrom:\n\npostgres/\n\tbase/\n\t\tdb1/\n\t\tdb2/\n\t\tdb3/\n\t\t...\n\tpg_xlog/\n\nto\n\npostgres/\n\tbase/\n\t\tdb1/\n\t\tdb2/\n\t\tdb3/\n\t\t...\n\tindex/\n\t\tdb1/\n\t\tdb2/\n\t\tdb3/\...
[ { "msg_contents": "\n> The other question is, what are your startup parameters? What sort of\n> shared memory buffer are you working with? I image that VACUUM does a\n> flush to disk, so are 1000 items filling your buffer(s), \n> causing an almost\n> continue fsync to disk for each INSERT after that ... so the...
[ { "msg_contents": "Hello all,\n\nI have PostgreSQL 7.1.1 installed on a RedHat 7.1 server.\n\nWhen running the following query \"SELECT Field1 || Field2 AS Result FROM Table\"\nthe result is NULL when Field2 is NULL.\n\nSame as if I use a PL/pgSQL function to concatenate Filed 1 || Field2.\n\nDid I miss somethi...
[ { "msg_contents": "\nAccording to \\h create user I can stipulate NOCREATEDB and NOCREATEUSER\nwhen I create a user. But I get this:\n\nmydb=# create user foo NOCREATEUSER NOCREATEDB in group bar;\nERROR: parser: parse error at or near \"NOCREATEDB\"\nmydb=#\n\nI can create the user by only stipulating one of...
[ { "msg_contents": "I know this topic was discussed a few months ago, but I'm wondering if any\ndecisions have been reached on if, how, and when setuid functions and triggers\nmight be implemented. If not, I have an idea to throw at it.\n\nThanks,\nMark\n", "msg_date": "Wed, 13 Jun 2001 13:24:45 -0400", ...
[ { "msg_contents": "I know this topic was discussed a few months ago, but I'm wondering if any\ndecisions have been reached on if, how, and when setuid functions and triggers\nmight be implemented. If not, I have an idea to throw at it.\n\nThanks,\nMark\n", "msg_date": "Wed, 13 Jun 2001 14:32:48 -0400", ...
[ { "msg_contents": "\tAfter the comment by someone about the UPDATE being responsible for\nthe reason for vacuuming (sorry, I didn't know that), I looked into a stored\nprocedure that gets triggered during an insert. The stored procedure does an\nUPDATE on another table, for every insert. So inserting 100,000 it...
[ { "msg_contents": "\n\n\n>I will point out that \"you Australians\", and, well, \"us 'mericans\", are\n>the only countries without the sense to choose unique conventions for\n>time zone names.\n\nI once had a long discussion about that on the timezone mailing lists.\nIf I remember right I think the upshot is th...
[ { "msg_contents": "I've found a corrupted document in PostgreSQL 7.1.2, more specificaly\n\nsrc/bin/pgaccess/doc/html/tutorial/copyright.html\n\nThat list is the correct place to 'bug'? \n\nA Conectiva Snapshot user found the problem\n(http://bugzilla.conectiva.com/show_bug.cgi?id=3577).\n\n\nSorry for the bad ...
[ { "msg_contents": "In order to be able to implement updateable result sets there needs to be a mechanism for determining if the underlying data has changed since the resultset was fetched. Short of retrieving the current data and comparing the entire row, can anyone think of a way possibly using the row version...
[ { "msg_contents": "Here is a patch that allows people to delete the pg_temp* tables used as\ntemp tables. They are left around after a backend crash and the only\nway previously to remove them was to start postgres with the -O override\noption.\n\nI am wondering if pg_temp tables should even be seen as system ...
[ { "msg_contents": "Hello Robert (Bob?),\n\nThank you for your answer. I will surely make a wide use the COALESCE \nfunction in my scripts.\nI also noticed the same behaviour in PL/pgSQL:\n\nCREATE FUNCTION \"xxxxxxxxxxxxxx\" (text, text)\nRETURNS text\nAS 'BEGIN\n\nRETURN $1 || ' ' || $2;\nEND;\n'\nLANGUAGE 'pl...
[ { "msg_contents": "I know you guys want to focus on 7.1 or 7.2, and yes I am trying to move to\n7.1, but it won't happen overnight.\n\nWe have a serious problem with 7.0.3 and data corruption. We have a program\nthat compares records in two tables. It creates a set of SQL scripts that\neither update, insert, or...
[ { "msg_contents": "I've a minor issue with building 7.1.[12] and I was wondering if anyone's\naddressed it yet (that anyone knows of...)\n\n> The problem at hand is that you must be at the top of the source\n> tree to build 7.1.1 and 7.1.2 and you cannot do it from a\n> \"staging\" directory s...
[ { "msg_contents": "Attached please find a patch to cast (convert) the MONEY type to any one\nof the following types:\n\n INT2, INT4, INT8, FLOAT4, FLOAT8\n\nThe patch is against PostgreSQL v7.0.3 and creates files in a new\ndirectory named contrib/money/. I'm pretty sure it won't compile\nagainst v7.1, but it...
[ { "msg_contents": "If we did this the straightforward way (exchange authentication packets\nafter fork()) then rogue clients could connect, start a backend, twiddle\nthumbs, never finish the authentication exchange, meanwhile having filled\nup the limit on the number of connections. Somehow the backends would\...
[ { "msg_contents": "I notice that the signal handlers in postmaster.c do quite a lot of work,\nmuch more than what they teach you in school they should do. While\nfprintf, elog, and ctime may simply lead to annoyances, forking off the\nWAL helper processes seems to be quite a lot.\n\nISTM that most of these, es...
[ { "msg_contents": "Hiroshi asked me to reproduce the problem WRT Access 97 and NULLs. I\ncould not. A couple of years ago the problem was appearing on the\ninterfaces list as some users using ODBC were experiencing the problem.\nAfter about 1/2 day trying to reproduce it under a new operating system,\nupgrades ...
[ { "msg_contents": "Attached is a patch that explains to optimizer that its possible to use\nindex when performing a << b where a is an inet/cidr value and b is a\nconstant.\n\nIndexpath generated for such an expression is this:\n(a > network(b)) and (a <= set_masklen(broadcast(b, 32)))\n\nSince this is my first...
[ { "msg_contents": "Per previous discussions, I have modified initdb to revoke public read\naccess on pg_statistic (you can still read it if you're superuser,\nof course) and instead added a view pg_stats, which will show the\nstatistics rows only for tables that current_user has read access to.\nThis uses the h...
[ { "msg_contents": "The following patch improves the descriptions in pg_hba.conf,\npg_password, and pg_ident.conf. I found pg_hba.conf particularly\nconfusing so I hope this new version is clearer for our users.\n\nOne change is that there was no mention that crypt can not be used with\nsecondary passwords, and...