threads
listlengths
1
275
[ { "msg_contents": "Hi,\nI am having problems with my master database now. It used to work\nextremely good just two days ago, but then I started playing with\nadding/dropping schemas and added another database and performance went\ndown.\n\nI also have a replica database on the same server and when I run the\nsa...
[ { "msg_contents": "Hi,\n\nwe want to migrate from MS SQL Server (windows2000)\nto PostgreSQL (Linux) :-))\nand we want to use the old MSSQL Hardware.\n\nDual Pentium III 800\n1 GB RAM\n2 IDE 10 GB\n2 RAID Controller (RAID 0,1 aviable) with 2 9GB SCSI HDD\n1 RAID Controller (RAID 0,1,5 aviable) with 3 18GB SCSI ...
[ { "msg_contents": "Thanks everybody for your help.\nVACUUM FULL did the job, and now the query performance is the same in\nboth databases. I am surprised that FULL option makes such a dramatic\nchange to the query performance: from 4min. to 5sec.!!! It also changed\nplanner stats from ~9 sec to ~8sec.\nI haven'...
[ { "msg_contents": "I run VACUUM (not FULL though) every night, which I thought would be\nenough for good query performance. Moreover, the data in table does not\nreally change significantly since database usage is pretty low right\nnow, therefore I thought that VACUUM FULL was an overkill.\nI think that creatin...
[ { "msg_contents": "What about REINDEXing and other DB tricks?\nDo you use any of these regularly?\nThanks.\n\nOleg\n\n-----Original Message-----\nFrom: Clarence Gardner [mailto:clarence@silcom.com] \nSent: Monday, February 24, 2003 10:28 AM\nTo: Robert Treat\nCc: Oleg Lebedev; Josh Berkus; pgsql-performance@pos...
[ { "msg_contents": "Folks:\n\nI'm not clear on where the memory needed by max_fsm_pages comes from. Is it \ntaken out of the shared_buffers, or in addition to them?\n\nFurther, Joe Conway gave me a guesstimate of 6k per max_fsm_pages which seems \nrather high ... in fact, the default settings for this value (1...
[ { "msg_contents": "\nQuestion in brief: does the planner/optimizer take into account the\nforeign key constraints?\n\nIf the answer is \"no\", please stop reading here.\n\nHere comes the details. Let me give a simple example to illustrate the\nsituation.\n\n1. We have two tables t1 and t2.\n\n create table t...
[ { "msg_contents": "Hello Everyone,\n\nI am having some problems getting my queries to use the correct index, and as \na result they use a sequential scan that takes a very long time.\n\nThe table in question is used for replicating data between computers and \ncontains over 7 million records. The table is on a...
[ { "msg_contents": "\n\nHi !!\n\n We have \"PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.96\"\ninstalled on Linux (RedHat 7.2)\nOur database size is 15 GB.\nSince the database size was increasing and was about to cross the actual \nHard Disk parttion Size, we moved the datafiles (also the index fil...
[ { "msg_contents": "\nIn some older mails in the archive I found rumors about difficulcies that\nmight\noccur when OIDs are used as an integral part of a data model.\n\nI am considering the option of placing an index on the already existing oid\nand using\nit as the primary key for all tables (saves some space a...
[ { "msg_contents": "Hi there,\n\nIs there any performance tunning that i can make to the postgresql server to\nmake the server more stable.\nIn my case the main usage of the DB is from an website which has quite lots\nof visitors.\nIn the last weeks the SQL server crashes every day !\n\nBefore complete crash the...
[ { "msg_contents": "hi all,\n\nwe have a tsearch index on the following table:\n\n Table \"public.sentences\"\n Column | Type | Modifiers\n---------------+---------+--------------------\n sentence_id | bigint | not null\n puid | integer |\n py | integer |\n jo...
[ { "msg_contents": "Dear Catalin,\n\n\nWhat I understand from ur post is,\n1. U are using PHP for connection. what version ??? assuming u are on PHP\nversion >4.2.X\n2. Ur Postgresql server is not tuned to handle loads.\n\nWhat U can try is ......\n\n1.Make sure that ur PHP scripts close the connection when tra...
[ { "msg_contents": "Murthy,\n\n> You could get mondo (http://www.microwerks.net/~hugo/), then backup your\n> system to CDs and restore it with the new filesystem layout. You might want\n> to do these backups as a matter of course?\n\nThanks for the suggestion. The problem isn't backup media ... we have a DLT \...
[ { "msg_contents": "\nIs there any way to see all the columns in the database? I have a column \nthat needs to be changed in all the tables that use it, without having to \ncheck each table manually. In Sybase you would link syscolumns with \nsysobjects, I can only find info on pg_tables in Postgres but none on ...
[ { "msg_contents": "\nWe can fix your credit. We are very successful at getting \nbankruptcies, judgments, tax liens, foreclosures, late payments, charge-offs, \nrepossessions, and even student loans removed from a persons credit report. To find out more go to\nhttp://www.cjlinc.net.\nIf you no longer want to ...
[ { "msg_contents": "Hello-\n\nI'm working with a MS Access database that a client wants to turn into \na multi-user database. I'm evaluating PostgreSQL for that purpose (I'd \n_really_ like to be able to recommend and open-source solution to \nthem). However, I'm running into a performance-related issue that ...
[ { "msg_contents": "Hi,\n\n \n\nI am executing a query on a table:\n\n \n\n Table \"public.measurement\"\n\n Column | Type | Modifiers\n\n------------+-----------------------+-----------\n\n assessment | integer |\n\n time | integer |\n\n value ...
[ { "msg_contents": "Mr. Peddermors,\n\n\"We have a postgres backend to our Mail Server product, and encountering \nperformance issues. Simple selects are taking 7-10 seconds.. \nWe have of course applied all the suggested performance settings for Postgres, \n(We are running on Debian Stable/Linux BTW)\nWe moved...
[ { "msg_contents": "I know this has been covered on one of the lists in the past, but I'm damned \nif I can find the keywords to locate it.\n\nIf I join two tables with a comparison to a constant on one, why can't the \nplanner see that the comparison applies to both tables:\n\nSELECT a.id FROM a JOIN b ON a.id=...
[ { "msg_contents": "Tim,\n\n> I'm new to Postgres, and am not even the DBA for the system. I'm just a\n> sysadmin trying to make things run faster. Every month, we copy over a 25\n> million row table from the production server to the reporting server. Total\n> size is something like 40 gigabytes.\n\nAre you doin...
[ { "msg_contents": "CVSROOT:\t/cvsroot\nModule name:\tpgsql-server\nChanges by:\ttgl@postgresql.org\t03/03/05 22:16:56\n\nModified files:\n\t. : configure configure.in \n\tsrc/include : pg_config.h.in \n\tsrc/interfaces/libpq: fe-misc.c \n\nLog message:\n\tUse poll(2) in preference to select(2), ...
[ { "msg_contents": "Hi all,\n \nAfter two month we have been migrating from Ms-Sql Server 7 to PosgreSQL\n7.3, we also build new interface to connect from client in Win base to\nPosgresql and it call “PDAdmin”. PDAdmin is a Posgresql tools to help\nDatabase Administrator (DBA) for a make a Trigger, Function, or ...
[ { "msg_contents": "How can I detect whether a column was changed by an update command \ninside a trigger?\n\ncreate table test(a int, b int, c int, primary key(a))\n\nb and c should be updated inside an update trigger if not modified by \nthe statement itself\n\n1) update test set a=0 -> trigger does its work\n...
[ { "msg_contents": "I have some existing code running in a production environment with \nembedded SELECTs whose WHERE's use ISNULL tests on indexed foreign key \nfields. This is obviously very slow.\n\nMy ISNULL *queries *take anywhere from 6 to 40 seconds. These queries \nare used to generate reports to a dev...
[ { "msg_contents": "Hello.\n\nI am curious if there is any planned support for full stored procedure \ncompiling? I've seen that PostgreSQL does not compile the SQL code inside \nplpgsql code. It is merely interpreted when the procedure gets called. This \nis also documented in the main html documentation.\n\...
[ { "msg_contents": "Hi all,\n \nI've been using pgsql heavily for about 2 years now, and I keep running into\nsome index-related wierdness that's rather puzzling. This is for release\n7.2.1, so if a more recent release has solved these, great! Never the less:\n \nI have a table with about 170,000 rows, each of...
[ { "msg_contents": "Hello,\n\n \n\nWhile running benchmarks for my database, I am seeing a large difference in\nthe elapsed time (from stats collected in the logs) and run time (running\nexplain analyze on the query using ./psql <database>) for each of my\nqueries. The database is being ran on a sunfire 880 wit...
[ { "msg_contents": "Hi, \n\nI have noted similar issues in the past - and seemed then that most of the overhead bottleneck was due to establishing a new connection in the front end. As soon as I started using connection pooling, with connections made when the app initialises, and then recycled for each request ...
[ { "msg_contents": "Hi, \n\n-----Original Message-----\nFrom: Jeffrey D. Brower [mailto:jeff@pointhere.net]\nSent: 11 March 2003 14:24\nTo: Nikk Anderson; 'Scott Buchan'; pgsql-performance@postgresql.org\nSubject: Re: [PERFORM] Large difference between elapsed time and run time \n\n>My question is how are you ac...
[ { "msg_contents": "Thanks for the quick reply.\n\nI just upgraded from 7.2 to 7.3 since 7.3 uses a different qsort\n(BSD-licensed). After running a few tests, I have noticed some performance\ngains.\n\nI think another problem that I was having was due to the way I was\nperforming the tests. I was using the to...
[ { "msg_contents": "Hi everybody.\n\nI am a newbie to Postgresql, trying to migrate an application from MSAccess.\n\nI am quite dissapointed with the problems I am facing with some queries\ncontaining multiple joins. I confess it has been hard for someone that is\nnot a DBA to figure out which are the problems. ...
[ { "msg_contents": "I'm looking for a general method to \nspeed up DISTINCT and COUNT queries. \n\n\nmydatabase=> EXPLAIN ANALYZE select distinct(mac) from node;\nNOTICE: QUERY PLAN:\n\nUnique (cost=110425.67..110514.57 rows=3556 width=6) (actual\ntime=45289.78..45598.62 rows=25334 loops=1)\n -> Sort (cost...
[ { "msg_contents": "Hi all.\n\nAs the topic suggests, I am having fairly critical troubles with\npostgresql on PlanetMath.org (a site which I run). You can go there and\ntry to pull up some entries and you will see the problem: everything is\nincredibly slow.\n\nIt is hard to pinpoint when this began happening,...
[ { "msg_contents": "Folks,\n\nOn one database, I have an overnight data transformation procedure that goes \nlike:\n\nTableA has about 125,000 records.\n\nBegin Transaction:\n1) Update 80% of records in TableA\n2) Update 10% of records in TableA\n3) Update 65% of records in TableA\n4) Update 55% of records in Ta...
[ { "msg_contents": "What is the structure of you table?\nIs the data types in the table the same as in the SQL....\n\nDid you create the index after the loading the table?\ncluster the table around the most used index....\n\nIs you web site on the same box you database is on?\n\ntelnet www.planetmath.org 5432\no...
[ { "msg_contents": "Clustering is good for queries that return multiple values.\n\nselect this, that\nfrom tableA\nwhere this = 'whatever';\n\nIf there are multiple values, the location of the first record is found in \nthe indexFile.\n\nThen dataFile is scanned until this != 'whatever';\n\nThis will decrease di...
[ { "msg_contents": "\nWe can fix your credit. We are very successful at getting \nbankruptcies, judgments, tax liens, foreclosures, late payments, charge-offs, \nrepossessions, and even student loans removed from a persons credit report. To find out more go to\nhttp://www.netcreditlawyer.com.\nIf you no longer...
[ { "msg_contents": "Hi,\n\nwe have a great Database with Postgres. It is a Community.\n\nWe have a Dual-CPU-System with 1 GB RAM\n\nIt works on Apache with PHP. But we hadn't enough Performance.\n\nWhat's the optimized configuration with many Database-actions on great \ntables in a lapp-system?\n\nGreetings\nTo...
[ { "msg_contents": "Will a increase in the size of a data page increase performance of a \ndatabase with large records?\n\nI have records about 881 byte + 40 byte (header) = 921.\n\n8k page size / 921 bytes per record is ONLY 8 records...........\n\nComments are welcome.........\n\nk=n^r/ck, SCJP\n\n____________...
[ { "msg_contents": "I am setting up a project using APache, PHP and Postgresql.\nThis application will be used by about 30 users.\n\nThe database is about this type :\n\nbetween 12GB and 15GB\n4 tables will have 1M rows and 1000 columns with 90% of INT2 and the rest of float (20% of all the data will be 0)\nthe ...
[ { "msg_contents": "I have a table with 8,628,633 rows that I'd LIKE to search (ha ha).\n\nI have a very simple query:\n SELECT * FROM tableA WHERE column1 LIKE '%something%';\n\ntableA.column1 has an index on it and the database has been vacuumed recently. My problem is with the output of EXPLAIN:\n\n+--------...
[ { "msg_contents": "Josh,\n\n> That's what's called an \"unanchored text search\". That kind \n> of query cannot be indexed using a regular index.\n\nDuh, should have tried the anchors to get what I wanted...\n\n> What you need is called \"Full Text Indexing\" or \"Full Text \n> Search\". Check \n> out two r...
[ { "msg_contents": "My mistake, things don't get much better.\n\nI'm selecting URLs out of a database like this:\n\n SELECT * FROM table WHERE url ~ '^http://.*something.*$';\n\nThis still uses a sequential scan but cuts the time down to 76,351 from 212,651 using\n\n WHERE url LIKE '%something%';\n\nThe full t...
[ { "msg_contents": "Hi everybody,\n\nI'm having a performance problem, PostgreSQL (7.3.2) is skipping some\noptimisation options that it shouldn't IMO. It can be fully reproduced as\nfollows:\n\ncreate table foo(\nbar char(100),\nbaz integer\n);\n\nNow create a file with 1.2 million empty lines and do a \\copy f...
[ { "msg_contents": "Hi guys,\n\nI'm having another performance problem as well. I have two tables called\n\"wwwlog\" (about 100 bytes per row, 1.2 million records) and table called\n\"triples\" (about 20 bytes per row, 0.9 million records). Triples contains\nan integer foreign key to wwwlog, but it was not marke...
[ { "msg_contents": "Please help me speed up the following query. It used to run in 2-5 sec.,\nbut now it takes 2-3 mins!\nI ran VACUUM FULL ANALYZE and REINDEX.\nSELECT * FROM media m\nWHERE m.mediatype = (SELECT objectid FROM mediatype WHERE\nmedianame='Audio') \nAND EXISTS \n (SELECT * FROM \n ...
[ { "msg_contents": "No, I don't believe so.\nMy previous question regarding performance was solved by VACUUM FULL and\nREINDEX.\nThe current one, I believe, is more related to query structure and\nplanner stats.\n\n-----Original Message-----\nFrom: Josh Berkus [mailto:josh@agliodbs.com] \nSent: Monday, March 24,...
[ { "msg_contents": "EXPLAIN ANALYZE plan is shown below.\nI also attached it as a file.\n\nOne thing that might help is that the query produces 27 rows, which is\nmuch less than predicted 1963.\n\nQUERY PLAN \n Sort (cost=553657.66..553662.57 rows=1963 width=218) (actual\ntime=133036.73..133036.75 rows=27 loops=...
[ { "msg_contents": "I decided that it might help to list the cardinalities of the pertinent\ntables:\nIntsetmedia: 90,000 rows\nInteraction: 26,000 rows\nSet: 7,000 rows\nMedia: 80,000 rows\n\n-----Original Message-----\nFrom: Josh Berkus [mailto:josh@agliodbs.com] \nSent: Monday, March 24, 2003 12:47 PM\nTo: St...
[ { "msg_contents": "I just ran the query you sent me and attached the output of EXPLAIN\nANALYZE as TOMs_plan.txt\nIt did not speed up the query significantly.\n\nIt always seemed to me that UNION is faster than OR, so I tried your\nsuggestion to use UNION ALL with the original query without\ncounter-productive ...
[ { "msg_contents": "You are right. I rewrote the query using JOINs and it increased\nperformance from 123 sec. to 20msec. I betcha I screwed smth up, but I\nlist the rewritten query below anyways. I also attached the new plan.\nThank you.\n\nSELECT * FROM media m \nJOIN \n((SELECT objectid AS mediaid \nFROM medi...
[ { "msg_contents": "Oleg,\n\nMy guess is that the query runs slow because by adding\ndata you exceeded what your database can do in memory\nand you need to do some kind of disk sort.\n\nHow about rewriting your query without the UNION and\nthe EXISTS to something like\n\nSELECT * FROM media m\nWHERE m.mediatype ...
[ { "msg_contents": "Hi,\n\nUsing 7.2.3 and 7.2.4 (the last .3 is being retired this weekend).\n\nI'm struggling with an application which is keeping open a\ntransaction (or, likely from the results, more than one) against a\npair of frequently-updated tables. Unfortunately, the\nfrequently-updated tables are al...
[ { "msg_contents": "I'm planning to develop a website network with n network nodes. There \nwill be a central node (website) wich will summarize information from \nall the network nodes. It will be also possible to use data between \nnodes (node A showing own data + data from node B). Table structures \nbetween ...
[ { "msg_contents": "subscribe\n\nend\n\n", "msg_date": "Wed, 26 Mar 2003 16:26:01 -0800", "msg_from": "Abhishek Sharma <abhisheks@dpsl.net>", "msg_from_op": true, "msg_subject": "" } ]
[ { "msg_contents": "I have not been able to find any documentation on how to determine the \nproper settings for the max_fsm_relations and the max_fsm_pages config \noptions. Any help would be appreciated.\n\nThanks\n\nDoug Oden\n\n", "msg_date": "Thu, 27 Mar 2003 10:58:08 -0600", "msg_from": "Robert D O...
[ { "msg_contents": "here is the query that is killing me:\n\nselect shoporder from sodetailtabletrans where shoporder not in(select \nshoporder from soheadertable)\n\nThis is just an example query. Any time I use 'where not in(' it takes several \nhours to return a resultset. The postgres version is 7.2.3 althou...
[ { "msg_contents": "Hi everybody!\n\nI have to insert a lot of data (more than 1.000.000 rows) in various \ntables. I use stored procedures in C to insert the data. It is necessary \nto run ANALYZE after inserting a few thousand rows into a table. Can someone \ntell me how to call ANALYZE (or analyze_rel(Oid rel...
[ { "msg_contents": "Hi!\n\nI've got the following problem:\nPostgreSQL 7.2.1-2 (Debian) on Duron/700MHz, 512MB, IDE hdd (laptop).\n\nI've got a table that has 6400 rows, an index on the deleted, nachname,\nvorname and hvvsnummer attributes, and my O-R wrapper generate queries\nlike this:\n\nSELECT patient.id, pa...
[ { "msg_contents": "Hi,\n\nI've written a pl/pgsql-function called 'f_matchstr' to support a \nsearch-module on several websites. In short, the function scans the \ncontent of a field and counts the occurances of a given search-string.\n\nThe complete function is listed below.\n\nOn a database-server that runs S...
[ { "msg_contents": "Hi, i'm running 7.2.3 (on RHL7.3). I've read the \"WAL Configuration\"\nsection of the manual:\n\nhttp://www.postgresql.org/docs/view.php?version=7.2&idoc=0&file=wal-configuration.html\n\nI've set wal_debug = 1 in postgresql.conf, but there's no example\nof how LogInsert and LogFlush are logg...
[ { "msg_contents": "hi there,\n\nI was reading bruce's 'postgresql hardware performance\ntuning' article and he has suggested ext3 filesystem\nwith data mode = writeback for high performance. \n\nI would really appreciate if anyone could share your\nexperiences with ext3 from a production stand point or\nany oth...
[ { "msg_contents": "Hi all,\n\nI use a case tool and we generate the querys automatically.\nThe query explained is a part of an Report and takes a long time\nto complete (30 ~ 70 seconds). My machine is a Dual Xeon 2 Ghz, 1 Mb DDR,\n3 SCSI HW RAID 5.\nThe tables involved in query have 500.000 rows.\n\nThank´s fo...
[ { "msg_contents": "Hi,\n\n \n\nI am getting poor performance from my postgresql (version 7.3.2 compiled\nwith gcc 2.95.2) database when running load tests on my web application.\nThe database works great until I get above 200 concurrent users. The\nfollowing query runtime will vary from:\n\n \n\nexplain analyz...
[ { "msg_contents": "Folks,\n\nPlease pardon the cross-posting.\n\nA small group of us on the Performance list were discussing the first steps \ntoward constructing a comprehensive Postgresql installation benchmarking \ntool, mostly to compare different operating systems and file systemsm but \nlater to be used a...
[ { "msg_contents": "Josh Berkus wrote:\n> 1) At least one \"main\" table with 12+ columns and 100,000+ rows\n(each).\n> 2) At least 10-12 additional tables of assorted sizes, at least half\nof\n> which\n> should have Foriegn Key relationships to the main table(s) or each\nother.\n> 3) At least one large text or ...
[ { "msg_contents": "\ncreate table baz (event text, level int);\n\ninsert into baz values ('x',1);\ninsert into baz values ('x',2);\ninsert into baz values ('x',3);\ninsert into baz values ('y',2);\ninsert into baz values ('y',3);\ninsert into baz values ('y',3);\n\nselect * from baz;\n\n event | level \n------...
[ { "msg_contents": "Up until a few days ago I have been running Postgresl 7.2.3 with Tsearch\nfrom the contrib dir, but at various times the performance of the\ndatabase would suddenly and rapidly deteriate so that queries which\npreviously took 500ms then took 8 or 9 seconds.\n\nThe only cure is a backup and re...
[ { "msg_contents": "Hello all,\n\nI am very glad to announce first public release of Open Application Server. \n\nThis is an application framework built in C++, to make use of existing APIs in \ninternet\napplication.\n\nIt provides\n\n* A thread based request delivery architecture\n* support of request handlers...
[ { "msg_contents": "The fcc FTP site is ftp.fcc.gov\n\nThe location of the data of interest is at\n/pub/Bureaus/Wireless/Databases/uls/.\n\nThere are zip files (pipe delimited) in complete and the daily changed\nfiles in daily. Theres lots of info in documentation which includes\nexcel spreadsheets of the schem...
[ { "msg_contents": "Josh Berkus wrote:\n> Cool. I'll tackle this in a week or two. Right now, I'm being paid\nto\n> convert a client's data and that'll keep me busy through the weekend\n...\n\nI would suggest downloading the data now. I can help get you started\nwith the create table statements and the impor...
[ { "msg_contents": "We have a perl program that loads data into Postgres version 7.3.1\nusing deletes and inserts.\n\nWe find that the load times are about 50% slower when we use a\nRAID5 disk system as compared to when we use RAID0\n\nAre there any postgres configuration parameters that we can set to improve\nt...
[ { "msg_contents": "i've an oracle query:\n\nSelect tb_users.ds_description, tb_users.cd_role, tb_users.cd_user, \ntb_users.ds_login, tb_monitores.cod_equipa from tb_users, tb_monitores \nwhere ds_login like 'varLogin' and ds_password like 'varPassword' and \ntb_users.cd_user = tb_monitores.cd_user(+)\n\nhow can...
[ { "msg_contents": "Hi there,\nI'm running into a quite puzzling simple example where the index I've\ncreated on a fairly big table (465K entries) is not used, against all common\nsense expectations:\nThe query I am trying to do (fast) is:\n\nselect count(*) from addresses;\n\nThis takes more than a second to co...
[ { "msg_contents": "> -----Original Message-----\n> From: Denis [mailto:denis@next2me.com] \n> Sent: Tuesday, April 08, 2003 12:57 PM\n> To: pgsql-performance@postgresql.org; \n> pgsql-general@postgresql.org; pgsql-sql@postgresql.org\n> Subject: [GENERAL] Yet Another (Simple) Case of Index not used\n> \n> \n> Hi...
[ { "msg_contents": "Hello all,\n\nI've been the lead developer of a successful (so-far) web application.\nCurrently we run the database and the web application on the same server,\nbut it will soon be necessary to split them and add some more web servers.\n\nI'm not counting on using replication any time soon, s...
[ { "msg_contents": "Hello all,\n\nThis is to announce couple of things regarding OAS Server.\n\n1. Mailing list for OAS Server is up now. It is available at \nhttps://lists.sourceforge.net/lists/listinfo/oasserver-general.\n\nSo I wouldn't be bothering you guys next time like this..:-)\n\n2. First packaging rele...
[ { "msg_contents": "Folks,\n\nWhat follows is a 7.2.4 EXPLAIN ANALYZE statement for the shown query. This \nquery is currently taking 570 msec, an OK amount of time until you realize \nthat the system only has test data currently, and the tables in full \nproduction will have 100-1000 times as much data.\n\n Be...
[ { "msg_contents": "Thanks for all the feedback, this is very informative.\n\nMy current issues that I'm still not clear on, are:\n* Is the ia32 architecture going to impose uncomfortable limits on my\napplication? I'm seeing lots of confirmation that this platform, regardless\nof the OS is going to limit me to...
[ { "msg_contents": "Hello,\n\nWe're evaluating postgresql as a backend choice for our next\ngeneration software and would like to perform some rough measurements\nin-house. Where could I get my hands on some reference data, say few\nvery large tables with a total size of over 1G that we could run. I\nnoticed ear...
[ { "msg_contents": "Hi,\nI have a visual basic application and the access to postgress is very slow.\nIf I run the query on PGadminII the answer is quite good but if I run the same query from the application it takes a long time (I debugged it). 11seconds .vs. 5 minutes.\nI would like to know if I have a problem...
[ { "msg_contents": "I noticed that when a multicolumn index exists it isn't necessarily\nfully used when the first column is constrained by an equals condition.\nHowever by adding a redundant sort condition you can get both columns\nused.\n\nIn the following examples crate has an index on gameid and areaid.\n\nT...
[ { "msg_contents": "Hi,\n\n\n\n I am writing to you to discuss the performance problem of postgreSQL\ndatabase we encountered in our project. I want to get suggestions from you.\n\n\n\nThe postgreSQL database we used need to process several millions records.\nThere are only six tables in the database. one of th...
[ { "msg_contents": "Hi all,\n\nWhilst I often use views for convenience, is there any performance\nadvantage at all in using a view rather than running the same query\ndirectly on the tables themselves?\n\nIs it quicker to run a full complex query rather than run a much simpler\nquery on a view? (Hope that makes...
[ { "msg_contents": "\nIn the following query postgres doesn't use the index. In the hard-coded\nversion below it does. I suppose it can't because it's possible the \"target\"\ncould have wildcards etc in them. Is there any way to indicate the postgres\nthat that won't happen? \n\nThis is going to be even more of...
[ { "msg_contents": "Hello,\n\nIn building a schema, I'd like to know if it makes sense\nfrom a performance standpoint to use views instead of\nan object oriented structure (i.e. inherits).\n\nI would guess that the overhead of the queries against\ninherited tables is higher than queries against views,\nbut I don...
[ { "msg_contents": "I am wondering why it uses the O(n^2) nested loop when there is a O(N)\nmethoud using btree indexes for a merg join. I am using 7.2.1 would\nupgrading fix my problime or is it somthing else?\n\nGiven the schema:\n\ndrop table Entry_Pairs;\ncreate table Entry_Pairs (\n left_entry int ...
[ { "msg_contents": "Hi,\n\nI want to ask the 'which RAID setup is best for PostgreSQL?' question again.\nI've read a large portion of the archives of this list, but generally the\nanswer is 'depends on your needs' with a few different camps.\n\nMy needs are as follows: dedicated PostgreSQL server for a website, ...
[ { "msg_contents": "I now under stand that my join was rong but none of the seguestions are\nthe optimal solution to the problime. You can make this order n if you\ntry. The trick is to use a mearg join using sorted list of the unique\nkeys in each colum join. The question you are asking is what left hand\nentry...
[ { "msg_contents": "Vincent,\n\nIn my eyes the best disk I/O configuration is a balance\nof performance, price and administrative effort.\n\nYour set-up looks relatively good. Howver, price seems\nnot to be your greatest concern. Otherwise you would\nfavor RAID 5 and/or leave out the spare disk.\n\nOne improve...
[ { "msg_contents": "Hello,\n\nIs it more efficient to use a schema with Inherits or\nschema with Views. I can see logically how to use both\nfor my case and I'm trying to make a decision. I would \nguess that the overhead of the queries against\ninherited tables is higher than queries against views,\nbut I don...
[ { "msg_contents": "\tHi,\n\n\tIn the process of developing an API for web/perl/postrgres\ninteractions, I have come up against a peculiar problem; a rather simple\nquery, run on two relatively small tables, takes as much as 0.4 seconds\non my development system (it's a P2 266, which in this case is a good\nthin...
[ { "msg_contents": "Victor,\n\nWhat is the issue? You get sub second response time.\nWhy waste your time trying to make it faster?\nIf you have a query that runs serveral minutes or hours\nthen its worthwhile tuning. Or if your query gets\nexecuted several thausend times a day.\n\nRegards,\nNikolaus\n\nOn Thu,...
[ { "msg_contents": "I'm using 7.3.2 on Linux, with a decent amount of muscle behind it\n(1.5 GHz PPro CPU, 1G mem, 20M/sec disks, xlog on different disk than\ndata).\n\nI've got a database that has several foreign keys, and I'm copying a\nbunch of data from an MS-SQL server into it via Perl DBI. I noticed\nthat...
[ { "msg_contents": "Hello,\n\nI'm not sure if this is really a problem. I'm working on a distributed web\ncrawling system which uses several clients on different machines. Results\nare logged to a central Postgres system. When I start it, it works fine,\nbut seems to slow down drastically after several hours/day...
[ { "msg_contents": "Hi,\n\n(PostgreSQL 7.3.2 on i386-portbld-freebsd4.7, compiled by GCC 2.95.4)\n\nI've a curious performance problem with a function returning set of\nrows. The query alone is very fast, but not when called from the\nfunction.\n\nTo \"emulate\" a parametred view¹, I created a function as follo...
[ { "msg_contents": "On this table\n\n project_id | integer | not null\n id | integer | not null\n date | date | not null\n team_id | integer | not null\n work_units | bigint | not null\nIndexes: email_contrib_pkey primary key btree (project_id, id, date)\n\nwith this breakdown of data\n\n pr...
[ { "msg_contents": "Hi,\nI�ve already created an concatenated index in Postgres V3.0 with different datatypes:\nCREATE INDEX mov_i4 ON movimiento USING btree (id_company, id_status, id_docum, id_origen_mov);\nid_company int2\nid_status char(1)\nid_docum numeric(15,0)\nid_origen_mov int4\nand after several test...
[ { "msg_contents": "\n\n\nSorry, this is the good one:\nI�ve already created an concatenated index in Postgres V3.0 with different datatypes:\nCREATE INDEX mov_i4 ON movimiento USING btree (id_company, id_status, id_docum, id_origen_mov);\n\nid_company int2\n\nid_status char(1)\n\nid_docum numeric(15,0)\n\nid_...