threads
listlengths
1
275
[ { "msg_contents": "This is the best write-up I've seen yet on quantifying what SSDs are good \nand bad at in a database context:\n\nhttp://www.bigdbahead.com/?p=37\n\n--\n* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD\n", "msg_date": "Tue, 29 Apr 2008 14:55:27 -0400 (EDT)", "ms...
[ { "msg_contents": "I hope I am posting to the right list.\nI am running Postgresql 8.1.9 and don't understand the behavior of\nhistograms for data items not in the MVC list. I teach databases and\nwant to use Postgres as an example. I will appreciate any help that\nanyone can provide.\n\nHere is the data I am...
[ { "msg_contents": "Hi all,\n\nlooking for a HA master/master or master/slave replication solution. Our \nsetup consists of two databases and we want to use them both for queries.\n\n\nAside from pgpool II there seems no advisable replication solution. But \nthe problem seems to be that we will have a single poi...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\n\nSomeone on this list has one of those 'confirm your email' filters on their \nmailbox, which is bouncing back messages ... this is an attempt to try and \nnarrow down the address that is causing this ...\n\n- -- \nMarc G. Fournier Hub...
[ { "msg_contents": "Hi,\n\nCan anyone who have started using 8.3.1 list out the pros and cons.\n\nThanx in advance\n\n~ Gauri\n\nHi,Can anyone who have started using 8.3.1 list out the pros and cons.Thanx in advance~ Gauri", "msg_date": "Fri, 2 May 2008 13:01:28 +0530", "msg_from": "\"Gauri Kanekar\" <me...
[ { "msg_contents": "Attempting to resend. My first attempt was rejected with this\nexplanation:\n \nYour message to the pgsql-performance list has been denied\nfor the following reason(s):\n\nA message was previous posted with this Message-ID\nDuplicate Message-ID - <481AFC7B.EE98.0025.0@wicourts.gov> (Fri May ...
[ { "msg_contents": "Attempting to resend. My first attempt was rejected with this\nexplanation:\n \nYour message to the pgsql-performance list has been denied\nfor the following reason(s):\n\nA message was previous posted with this Message-ID\nDuplicate Message-ID - <481AFC7B.EE98.0025.0@wicourts.gov> (Fri May ...
[ { "msg_contents": "Greetings -- I have an UPDATE query updating a 100 million row table, \nand allocate enough memory via shared_buffers=1500MB. However, I see \ntwo processes in top, the UPDATE process eating about 850 MB and the \nwriter process eating about 750 MB. The box starts paging. Why is \nthe...
[ { "msg_contents": "\nHi,\n\nI'm porting an application written with pretty portable SQL, but tested \nalmost exclusively on MySQL.\n\nI'm wondering why would this query take about 90 seconds to return 74 rows?\n\n\nSELECT INFORMATION_SCHEMA.TABLE_CONSTRAINTS.CONSTRAINT_NAME, \nINFORMATION_SCHEMA.TABLE_CONSTRAIN...
[ { "msg_contents": "Rauan Maemirov wrote:\n>> I want to ask, if anyone used query_cache of pgPool. The problem is\n>> there is no detailed installation steps on how to configure it\n>> correctly. Itried to follow it, but guess that it doesn't cache my\n>> queries. So, maybe someone adviced me or give link.\n> \n...
[ { "msg_contents": "The subject basically says it all, I'm looking for the fastest \n(indexable) way to calculate the next birthdays relative to NOW() from a \ndataset of about 1 million users.\n\nI'm currently using a function based index, but leap year handling / \nmapping February 29 to February 28 gives me s...
[ { "msg_contents": "PostgreSQL: 8.2.4\n\n \n\nWe currently backup all of our database tables per schema using pg_dump\nevery half hour. We have been noticing that the database performance\nhas been very poor during the backup process. How can I improve the\nperformance?\n\n \n\nServer Specs:\n\nDedicated DB se...
[ { "msg_contents": "i've had to write queries to get trail balance values out of the GL \ntransaction table and i'm not happy with its performance \n\nThe table has 76K rows growing about 1000 rows per working day so the \nperformance is not that great it takes about 20 to 30 seconds to get all \nthe records for...
[ { "msg_contents": "L.S.\n\nI'm noticing a difference in planning between a join and an in() clause, \nbefore trying to create an independent test-case, I'd like to know if there's \nan obvious reason why this would be happening:\n\n\n=> the relatively simple PLPGSQL si_credit_tree() function has 'ROWS 5' in \ni...
[ { "msg_contents": "I've just discovered a problem with quite simple query. It's really \nconfusing me.\nPostgresql 8.3.1, random_page_cost=1.1. All tables were analyzed before \nquery.\n\nEXPLAIN ANALYZE\nSELECT i.c, d.r\nFROM i\n JOIN d ON d.cr = i.c\nWHERE i.dd between '2007-08-01' and '2007-08-30'\n\nHash J...
[ { "msg_contents": "Hello,\n\nI have a query that runs for hours when joining 4 tables but takes \nmilliseconds when joining one MORE table to the query.\nI have One big table, t_event (8 million rows) and 4 small tables \n(t_network,t_system,t_service, t_interface, all < 1000 rows). This \nquery takes a few ...
[ { "msg_contents": "This falls under the stupid question and i'm just curious what other \npeople think what makes a query complex?\n\n\n\n\n", "msg_date": "Tue, 06 May 2008 10:45:42 -0500", "msg_from": "Justin <justin@emproshunts.com>", "msg_from_op": true, "msg_subject": "What constitutes a com...
[ { "msg_contents": "Right now, we have a few servers that host our databases. None of them\nare redundant. Each hosts databases for one or more applications.\nThings work reasonably well but I'm worried about the availability of\nsome of the sites. Our hardware is 3-4 years old at this point and I'm \nnot nai...
[ { "msg_contents": "We are using pgfouine to try and optimize our database at this time. Is\nthere a way to have pgfouine show examples or breakout commits? \n\n \n\nQueries that took up the most time\n\nRank Total duration Times executed Av. duration (s)\nQuery\n\n1 26m54s ...
[ { "msg_contents": "Hello friends,\n\nI'm working on optimizing queries using the Kruskal algorithm (\nhttp://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=4318118). I did several\ntests in the database itself and saw interesting results.\nI did 10 executions with each query using unchanged source of Postgres an...
[ { "msg_contents": "Hi,\n\nI have a large database (multiple TBs) where I'd like to be able to do\na backup/restore of just a particular table (call it foo). Because\nthe database is large, the time for a full backup would be\nprohibitive. Also, whatever backup mechanism we do use needs to keep\nthe system onl...
[ { "msg_contents": "PostgreSQL: 8.2\n\n \n\nWhen you create a foreign key to a table is there an index that is\ncreated on the foreign key automatically?\n\n \n\nExample:\n\nTable A has a field called ID.\n\n \n\nTable B has a field called fk_a_id which has a constraint of being a\nforeign key to table A to fiel...
[ { "msg_contents": "Hi, all. I want to ask what type of index is better to create for\nbigint types. I have table with bigint (bigserial) primary key. What\ntype is better to use for it? I tried btree and hash, but didn't\nnotice any differences in execution time. For GiST and GIN there is a\ntrouble that I must...
[ { "msg_contents": "Hello,\n\nI have a strange performance problem with postgresql 8.3 (shipped with ubuntu \nhardy) and a query that seems very simple:\n\nexplain analyze \n\tSELECT * FROM (part LEFT OUTER JOIN part_lang ON part.id = part_lang.id) \n\tWHERE part.parent = 49110;\n\nquery plan here: http://fron...
[ { "msg_contents": "I figure this subject belongs on the performance mailing list because it is\nabout partitioning, which is a performance issue.\n\nI'm working on partitioning some of the tables used by an application that\nuses OpenJPA. It turns out that OpenJPA is sensitive to the numbers\nreturned when you...
[ { "msg_contents": "Inheritted a number of servers and I am starting to look into the hardware.\n\nSo far what I know from a few of the servers\nRedhat servers.\n15K rpm disks, 12GB to 32GB of RAM.\nAdaptec 2120 SCSI controller (64MB of cache).\n\nThe servers have mostly have 12 drives in RAID 10.\nWe are going ...
[ { "msg_contents": "Hi,\n\nWe want to migrate from postgres 8.1.3 to postgres 8.3.1.\nCan anybody list out the installation steps to be followed for migration.\nDo we require to take care of something specially.\n\nThanks in advance\n~ Gauri\n\nHi,We want to migrate from postgres 8.1.3 to postgres 8.3.1.Can anyb...
[ { "msg_contents": "Hi everybody,\n\nI'm fairly new to PostgreSQL and I have a problem with\na query:\n\nSELECT * FROM \"LockerEvents\" LIMIT 10000 OFFSET\n10990000\n\nThe table LockerEvents has 11 Mlillions records on it\nand this query takes about 60 seconds to complete.\nMoreover, even after making for each c...
[ { "msg_contents": "idc danny wrote:\n> Hi James,\n> \n> Than you for your response.\n> \n> What I want to achieve is to give to the application\n> user 10k rows where the records are one after another\n> in the table, and the application has a paginating GUI\n> (\"First page\", \"Previous page\", \"Next page\",...
[ { "msg_contents": "Hi Guys,\n\nI'm using postgresql 8.3.1 and I'm seeing weird behavior between what \nI expect and what's happening when the query is executed\n\nI'm trying to match a table that contains regexps against another \ntable that is full of the text to match against so my query is:\n\nselect wc_ru...
[ { "msg_contents": "Hi ,\n\nSet this parameter in psotgresql.conf set enable_seqscan=off;\nAnd try:\n\n-----Original Message-----\nFrom: pgsql-performance-owner@postgresql.org\n[mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Scott\nMarlowe\nSent: Tuesday, May 13, 2008 11:32 PM\nTo: idc danny\nCc: pg...
[ { "msg_contents": "HI,\n\nI have an application that maintains 150 open connections to a Postgres DB server. The application works fine without a problem for the most time. \n\nThe problem seem to arise when a SELECT that returns a lot of rows is executed or the SELECT is run on a large object. These selects ar...
[ { "msg_contents": "I have a large table (~ 2B rows) that contains an indexed timestamp column. I am attempting to run a query to determine the number of rows for a given day using something like \"select count(*) from tbl1 where ts between '2008-05-12 00:00:00.000' and '2008-05-12 23:59:59.999'\". Explain tel...
[ { "msg_contents": "----- Original Message ----\nFrom: Merlin Moncure <mmoncure@gmail.com>\nTo: Doug Eck <deck1@yahoo.com>\nCc: pgsql-performance@postgresql.org\nSent: Wednesday, May 14, 2008 3:38:23 PM\nSubject: Re: [PERFORM] I/O on select count(*)\n\nOn Wed, May 14, 2008 at 4:09 PM, Doug Eck <deck1@yahoo.com> ...
[ { "msg_contents": "Hi All,\n \nWe are doing some load tests with our application running postgres\n8.2.4. At times we see updates on a table taking longer (around\n11-16secs) than expected sub-second response time. The table in question\nis getting updated constantly through the load tests. In checking the\ntab...
[ { "msg_contents": "The following query produces some fairly off estimates for the number of rows \nthat should be returned (this is based on a much more complex query, but \nwhittling it down to this which seems to be the heart of the problem) \n\npeii=# explain analyze select * from adv.peii_fast_lookup pfl1 j...
[ { "msg_contents": "Hi all,\nusing mkfs.ext3 I can use \"-T\" to tune the filesytem\n\nmkfs.ext3 -T fs_type ...\n\nfs_type are in /etc/mke2fs.conf (on debian)\n\nis there a recommended setting for this parameter ???\n\nthanks\n", "msg_date": "Thu, 15 May 2008 12:11:02 +0200", "msg_from": "\"Philippe Amel...
[ { "msg_contents": "Hi List;\n\nI have a table with 9,961,914 rows in it (see the describe of \nbigtab_stats_fact_tmp14 below)\n\nI also have a table with 7,785 rows in it (see the describe of \nxsegment_dim below)\n\nI'm running the join shown below and it takes > 10 hours and \neventually runs out of disk s...
[ { "msg_contents": "Try 'set enable-mergejoin=false' and see if you get a hashjoin.\r\n\r\n- Luke\r\n\r\n----- Original Message -----\r\nFrom: pgsql-performance-owner@postgresql.org <pgsql-performance-owner@postgresql.org>\r\nTo: Richard Huxton <dev@archonet.com>\r\nCc: pgsql-performance@postgresql.org <pgsql-pe...
[ { "msg_contents": "I've inherited an Oracle database that I'm porting to Postgres, and this \nhas been going quite well until now. Unfortunately, I've found one view (a \nlargish left join) that runs several orders of magnitude slower on \nPostgres than it did on Oracle.\n\n=> select version();\n ...
[ { "msg_contents": "Hi all;\n\nI have a query that does this:\n\nupdate tab_x set (inactive_dt, last_update_dt) =\n((select run_dt from current_run_date), (select run_dt from \ncurrent_run_date))\nwhere\ncust_id::text || loc_id::text in\n(select cust_id::text || loc_id::text from summary_tab);\n\n\nThe current_...
[ { "msg_contents": "Hello List,\n\nAs an editor for the german Linux Magazine I am looking for Authors who would \nwant to write an article of about 5-7 pages (=15-20000 characters) on Postgres \nTroubleshooting and Performance issues. The Article is planned for our \nforthcoming \"Linux Technical Review 09 - Da...
[ { "msg_contents": "Hi all;\n\nI have 2 tables where I basically want to delete from the first table \n(seg_id_tmp7) any rows where the entire row already exists in the \nsecond table (sl_cd_segment_dim)\n\nI have a query that looks like this (and it's slow):\n\n\ndelete from seg_id_tmp7\nwhere\n\tcustomer_sr...
[ { "msg_contents": "Hi,\n\nI am currently designing a database and wanted to know something that may\nsound trivial, but I thought its still good to confirm before dumping\nmillions of rows in it.\n\nThe design requires a few master tables with very limited rows, for e.g.\ncurrency_denomination table could at th...
[ { "msg_contents": "I've got a query similar to this:\n\nselect * from t1, t2 where t1.id > 158507 and t1.id = t2.id;\n\nThat took > 84 minutes (the query was a bit longer but this is the part that \nmade the difference) after a little change the query took ~1 second:\n\nselect * from t1, t2 where t1.id > 158507...
[ { "msg_contents": "The problem is that the implied join predicate is not being propagated. This is definitely a planner deficiency.\r\n\r\n- Luke\r\n\r\n----- Original Message -----\r\nFrom: pgsql-performance-owner@postgresql.org <pgsql-performance-owner@postgresql.org>\r\nTo: pgsql-performance@postgresql.org ...
[ { "msg_contents": "Does anyone know if there is a source that provides \"Big O\" notation for \npostgres's aggregate functions and operations? For example is count(*) \n= O(1) or O(n)?\n\nDo the developers for postgres use Big O when selecting algorithms? If \nso, is the info easily available?\n\nThanks,\nHH\n...
[ { "msg_contents": "Hi -performance,\n\nI experienced this morning a performance problem when we imported a\ndump in a 8.1 database.\n\nThe table is 5 millions rows large and when the dump creates an index\non a specific text column called clazz it takes 27 minutes while on\nthe other columns, it only takes a co...
[ { "msg_contents": "Hi Hannu,\r\n\r\nInteresting suggestion on the partial index!\r\n\r\nI'll find out if we can extract our code that did the work. It was simple but scattered in a few routines.\r\n\r\nIn concept it worked like this:\r\n\r\n1 - Ignore if hint bits are unset, use them if set. This affects heap...
[ { "msg_contents": "I wonder why join_collapse_limit default values is set to 8 but \ngeqo_threshold is 12. Optimizer doesn't change the order of JOIN's of \nqueries that contains from 8 to 11 tables. Why it's 'wise' decision as \ndocumentation says?\n\nfrom_collapse_limit (integer)\n\n The planner will merge...
[ { "msg_contents": "Hello,\n\n We're planning new production server for PostgreSQL and I'm wondering\nwhich processor (or even platform) will be better: Quad Xeon or Quad\nOpteron (for example SUN now has a new offer Sun Fire X4440 x64).\n\nWhen I was buying my last database server, then SUN v40z was a really\nv...
[ { "msg_contents": "I have a large table with about 2 million rows and it will keep growing...\n\nI need to do update/inserts, and select as well.\n\nAn index will speed up the select, but it will slow down the updates.\n\nAre all Postgres indexes ordered? i.e., with every update, the index pages will have to be...
[ { "msg_contents": "We're about to try out a new BBU controller card, and would welcome\nany advice from anyone with experience with this hardware.\n \nIt is an IBM ServeRAID-MR10M SAS/SATA Controller with the optional\nBBU. The docs say it is \"a LSI1078ROC-based PCI Express RAID\nadapter.\" We're hooking it ...
[ { "msg_contents": "PostgreSQL: 8.2.X\n\nOS: Red Hat Linux 4.X\n\n \n\nI have started to define tablespaces on different disks. Is there any\nperformance issues related to referencing tablespaces on different disks\nwith symbolic links? By using symbolic links to tablespaces can I then\nstop the database and m...
[ { "msg_contents": "Hi, is there anyway this can be made faster? id is the primary key,\nand there is an index on uid..\n\nthanks\n\n\nEXPLAIN ANALYZE select * from pokes where uid = 578439028 order by id\nDESC limit 6;\n QUERY PLAN\n----------...
[ { "msg_contents": "\nI have a complex query where making a small change to the SQL increases\nrun-time by > 1000 times.\n\nThe first SQL statement is of the form\n\nA JOIN B ON (a.id = b.id) LEFT JOIN C ON (a.id = c.id) \n\nand the second is like this\n\nA JOIN B ON (a.id = b.id) LEFT JOIN C ON (b.id = c.id)\n\...
[ { "msg_contents": "Hi all,\n\nI'm using the TPC-H Benchmark for testing of performance in PostgreSQL.\nBut it is composed of only 8 tables, which is not enough to call the GEQO\nalgorithm.\n\nI don't want to change any of the 22 queries provided by the TPC-H to call\nthe GEQO, and not lose the credibility of th...
[ { "msg_contents": "Folks,\n\nSubsequent to my presentation of the new annotated.conf at pgCon last week, \nthere's been some argument about the utility of certain memory settings \nabove 2GB. I'd like to hash those out on this list so that we can make \nsome concrete recomendations to users.\n\nshared_buffers:...
[ { "msg_contents": "\n\n\n\nHello everybody!\n\nI have found a performance issue with 2 equivalent queries stably\ntaking different (~x2) time to finish. In just a few words it can be\ndescribed like this: if you have a lot of values in an IN() statement,\nyou should put most heavy (specifying most number of row...
[ { "msg_contents": "[Attn list-queue maintainers: Please drop the earlier version\nof this email that I accidentally sent from an unsubscribed address. ]\n\nHi, \n\nI'm having a strange problem with a slow-running select query. The\nquery I use in production ends in \"LIMIT 1\", and it runs very slowly.\nBut wh...
[ { "msg_contents": "I'm doing some analysis on temporal usages, and was hoping to make use\nof OVERLAPS, but it does not appear that it makes use of indices.\n\nCouching this in an example... I created a table, t1, thus:\n\nmetadata=# \\d t1\n Table \"public.t1\"\n Column | ...
[ { "msg_contents": "Based on feedback after the sessions I did few more tests which might be \nuseful to share\n\nOne point that was suggested to get each clients do more work and reduce \nthe number of clients.. The igen benchmarks was flexible and what I did \nwas remove all think time from it and repeated the...
[ { "msg_contents": "I have a big table that is used in many queries. Most used index is\ncreated on date field. Number of records in this table when date field\nis saturday is about 5 times smaller than other days, on sunday this\nnumber is always 0. Statistics target is 1000. Many queries have\nproblems when co...
[ { "msg_contents": "As i've been looking over the more complicated queries that i have \nwritten and gotten allot of help in redoing the quires from you all, \nthanks again.\n\nI have noticed that estimated Cost to do the query is way off from \nActual. The queries don't run slow at least not to me. \nThe Est...
[ { "msg_contents": "Hello,\n\nI have a table (transactions) containing 61 414 503 rows. The basic \ncount query (select count(transid) from transactions) takes 138226 \nmilliseconds.\nThis is the query analysis output:\n\nAggregate (cost=2523970.79..2523970.80 rows=1 width=8) (actual \ntime=268964.088..268964.0...
[ { "msg_contents": "Running postgres 8.2.5\n \nI have a table that has 5 indices, no foreign keys or any \ndependency on any other table. If delete the database and \nstart entering entries, everything works very well until I get\nto some point (let's say 1M rows). Basically, I have a somewhat\nconstant rate of ...
[ { "msg_contents": "I am not currently using copy, but  I am using prepared statements  \nfor table insert/updates so the overhead for the actual data transfer \nshould be pretty good. I am sending at most  300 inserts/updates \nper transaction, but that is just an arbitrary value. When the queue \ngrows, I coul...
[ { "msg_contents": "hello,\n\nI am wondering if actually, does exists any rule to determine\nthe amount of RAM, according to the hardware disk size\n(in prevision to use all or nearly available space),\nwhen designing a server?\n\nOf course fsm settings implies that when db size grows, more memory will \nbe in u...
[ { "msg_contents": "I have a Windows application which connects to a Postgres (8.3) database \nresiding on our company server. Most of the application's users work \nfrom their homes, so the application was developed with a lot of \nsecurity checks.\n\nWhen a client connects to the database, a random hash is ge...
[ { "msg_contents": "I am using multiple threads, but only one worker thread for insert/updated to this table.\nI don't mind trying to add multiple threads for this table, but my guess is it would not \nhelp because basically the overall tps rate is decreasing so dramatically. Since\nthe cpu time consumed by the ...
[ { "msg_contents": "I agree that the discs are probably very busy. I do have 2 disks but they are\nfor redundancy. Would it help to put the data, indexes and xlog on separate \ndisk partitions? \nI'll try adding more threads to update the table as you suggest.\n\n----- Original Message ----\nFrom: Matthew Wakeli...
[ { "msg_contents": "I am using the c-library interface and for these particular transactions\nI preload PREPARE statements. Then as I get requests, I issue a BEGIN, \nfollowed by at most 300 EXECUTES and then a COMMIT. That is the\ngeneral scenario. What value beyond 300 should I try? \nAlso, how might COPY (whi...
[ { "msg_contents": "One of the things to hit my mailbox this week is from someone who is \nfrustrated not only by their database server but by issues sending \nmessages to this list; I'm forwarding to here for them, please reply to \nall so they get a copy.\n\nHere's the basic server information:\n\n> PostgreSQL...
[ { "msg_contents": "Hi,\n\nAm I wrong or AGE() always gets directed to a sequential scan?\n\n # BEGIN;\n ] SET enable_seqscan TO off;\n ] EXPLAIN ANALYZE\n ] SELECT count(1)\n ] FROM incomingmessageslog\n ] WHERE AGE(time) < '1 year';\n ] ROLLBACK;\n BEGIN\n SET\n ...
[ { "msg_contents": "Hi,\n\nI got a question about scalability in high volume insert situation\nwhere the table has a primary key and several non-unique indexes\non other columns of the table. How does PostgreSQL behave\nin terms of scalability? The high volume of inserts comes from\nmultiple transactions.\n\nBes...
[ { "msg_contents": "We run GCC-compiled postgresql on a number\nof HP-UX and Linux boxes.\n\nOur measurements to date show 8.3.1\nperformance to be about 30% *worse*\nthan 8.2 on HP-UX for the same \"drink the firehose\"\ninsert/update/delete benchmarks. Linux\nperformance is fine. \n\nTweaking the new 8.3.1 s...
[ { "msg_contents": "Hi,\n\nI read a lot about postgres tuning and did some of it. But one of the \nthings, when you start tuning a system that is completely new to you, is \nchecking which sql statement(s) cost most of the resources.\n\ncpu instensive sql seems easy to find.\nBut how do I find i/o intensive sql ...
[ { "msg_contents": "Hi,\nIn my pgsql procedure, i use the function\n\ngeometryDiff := difference\n(geometry1,geometry2);\n\nbut this function is very slow!!!\nWhat can I do to \nspeed this function?\nExists a special index for it?\n\nThanks in advance!\nLuke\n\n", "msg_date": "Mon, 16 Jun 2008 11:06:44 +0200...
[ { "msg_contents": "Hi, I am looking to improve the initial query speed for the following query:\n\nselect email_id from email, to_tsquery('default','example') as q where \nq@@fts;\n\nThis is running on 8.2.4 on Windows Server 2K3.\n\nThe initial output from explain analyse is as follows.\n\n\"Nested Loop (cost...
[ { "msg_contents": " >\n > Date: Mon, 16 Jun 2008 11:06:44 +0200 (CEST)\n > From: \"luke.78@libero.it\" <luke.78@libero.it>\n > To: pgsql-performance@postgresql.org\n > Subject: function difference(geometry,geometry) is SLOW!\n > Message-ID:\n > <10574478.390451213607204584.JavaMail.defaultUser@defaultHost>\n >\...
[ { "msg_contents": "Dear All,\n\nAm going to do migration of database from one version to another., is there\nany article or any other document explaining the possibilities and other\nthings.\n\nFurther Explanation:\n\nI have a database in postgres X.Y which has around 90 tables, and lot of\ndata in it.\nIn the ...
[ { "msg_contents": "Hi,\n\nI need to install a 8.3 database and was wondering which hardware would be \nsufficient to have good performances (less than 30s for� slowest select).\n\nDatabase size: 25 Go /year, 5 years of history\nOne main table containing 40 million lines per year.\nBatch inserts of 100000 lines....
[ { "msg_contents": "Hi, i'm new to this ML, i'll try to explain my issue:\n\nI've two tables defined as is (postgresql 8.1):\n\nCREATE TABLE table1\n(\n _id serial,\n num1 int4 not null,\n num2 int4 not null,\n\n primary key(_id)\n);\n\nCREATE INDEX ta...
[ { "msg_contents": "Tengo una pregunta, y este es el escenario de lo que tengo\n\n\n\n\n\n\t \n\t\n\t\n\t\n\t\n\t\n\nSe crea una instancia de\n\tpostgreSQL\n\tSe crea un directorio\n\t$PGDATA/walback donde se almacenararn los wal antiguos\n\tSe exporta una variable $PGDATA2\n\tque es la ubicacion del respaldo de...
[ { "msg_contents": "Hello,\n\nI am experiencing a query for which an useful index is not being used by \nPostgreSQL. The query is in the form:\n\n select count(*) from foo\n where foo.account_id in (\n select id from accounts where system = 'abc');\n\nand the size of the tables it works on is:\n\...
[ { "msg_contents": "Hello to list,\n\nWe have a CentOS-5 server with postgresql-8.1.8 installed. I am struggling with postgresql performance. Any query say select * from tablename takes 10-15 mins to give the output, and while executing the query system loads goes up like anything. After the query output, system...
[ { "msg_contents": "Hi list,\n\n\nWe have a database with lots of small simultaneous writes and reads \n(millions every day) and are looking at buying a good hardware for this.\n\nWhat are your suggestions. What we are currently looking at is.\n\nDual Quad Core Intel\n8 - 12 GB RAM\n\n10 disks total.\n\n4 x 146...
[ { "msg_contents": "Hi\n\nHas anyone done some benchmarks between hardware RAID vs Linux MD \nsoftware RAID?\n\nI'm keen to know the result.\n\n-- \nAdrian Moisey\nSystems Administrator | CareerJunction | Your Future Starts Here.\nWeb: www.careerjunction.co.za | Email: adrian@careerjunction.co.za\nPhone: +27 21 ...
[ { "msg_contents": "The query optimizer fails to use a hash aggregate most of the time. This is\nan inconsistent behavior -- the queries below were happily using\nhash_aggregate on a previous pg_restore from the data.\n\nOn one particular class of tables this is especially painful. The example\ntable has 25 mi...
[ { "msg_contents": "Hi List;\n\nAnyone have any experiences to share per setting up a federated \narchitecture with PostgreSQL ? I wonder if the dblink contrib works \nwell in a federated scenario, specifically in the setup of the \nfederated views which equate to a select * from the same table on each \nfed...
[ { "msg_contents": "Hello,\n\nI have been searching on the net on how to tune and monitor performance \nof my postgresql server but not met with success. A lot of information \nis vague and most often then not the answer is \"it depends\". Can anyone \nof you refer me a nice guide or tutorial on this?\n\nThanks....
[ { "msg_contents": "Hi all,\n\nI need to specify servers and storage to run PostgreSQL. Does anyone\nknow any source of information (articles, presentations, books, etc.)\nwhich describes methods of hardware sizing for running a large\nPostgreSLQ installation?\n\nThank you in advance.\n\nSergio.\n", "msg_dat...
[ { "msg_contents": "Hi,\nI am new to SQL and have two tables..., \"processor\" and \n\"users_processors\". The first table contains Processors:\n\nCREATE TABLE processor (\nid SERIAL,\nspeed varchar(50) NOT NULL,\ntype int2 NOT NULL,\nPRIMARY KEY (id)\n);\nCREATE UNIQUE INDEX processor_speed_index ON processors...
[ { "msg_contents": "Hi,\n\nI have a query\n\nselect count(*)\n from result\n where exists\n (select * from item where item.url LIKE result.url || '%' limit 1);\n\nwhich basically returns the number of items which exist in table \nresult and match a URL in table item by its prefix.\nI read all about idexes ...
[ { "msg_contents": "I'm having a strange problem with a query. The query is fairly simple, \nwith a few constants and two joins. All relevant columns should be \nindexed, and I'm pretty sure there aren't any type conversion issues. \nBut the query plan includes a fairly heavy seq scan. The only possible \ncompli...
[ { "msg_contents": "All,\n\nWhile running a Select query we get the below error:\n\nERROR: out of memory\nDETAIL: Failed on request of size 192.\n\nPostgres Conf details:\nshared_buffers = 256000\nwork_mem =150000\nmax_stack_depth = 16384\nmax_fsm_pages = 400000\nversion: 8.1.3\n\nWe are using 8gb of Primary m...
[ { "msg_contents": "Hello,\n\nmy understanding, and generally my experience, has been that VACUUM\nand VACUUM ANALYZE (but not VACUUM FULL) are never supposed to block\nneither SELECT:s nor UPDATE:s/INSERT:s/DELETE:s to a table.\n\nThis is seemingly confirmed by reading the \"explicit locking\"\ndocumentation, i...
[ { "msg_contents": "Hi,\n\nI have problems with my database becoming huge in size (around 150 GB\nright now, and 2/3 for only three tables, each having around 30 millions\ntuples. Space is spent mainly on indices.).\n\nI have a lot of multi-column varchar primary keys (natural keys), and\nlot of foreign keys on ...
[ { "msg_contents": "Hi,\ni have a table with a huge amount of rows (actually 4 millions and a half),\ndefined like this:\n\nCREATE TABLE rtp_frame (\n i_len integer NOT NULL,\n i_file_offset bigint NOT NULL,\n i_file_id integer NOT NULL, -- foreign key\n i_timestamp bigint NOT NULL,\n i_loop inte...
[ { "msg_contents": "Hi,\n\n We are seeing system hang-up issue when we do continuous\nupdate on table ( 2-3 records/sec) within 10-12 hours. Memory parameter\nInact_dirty( shown in /proc/meminfo) is increasing continuously and\ncausing the system to hang-up(not responding state). This issue is not\nha...