threads listlengths 1 275 |
|---|
[
{
"msg_contents": ">Another benefit of Pentium D over AMD X2, at least until AMD chooses\n>to switch, is that Pentium D supports DDR2, whereas AMD only supports\n>DDR. There are a lot of technical pros and cons to each - with claims\n>from AMD that DDR2 can be slower than DDR - but one claim that isn't\n>often ... |
[
{
"msg_contents": "Hello list,\n\nwhat is the quickest way of dumping a DB and restoring it? I have done a\n\n \"pg_dump -D database | split --line-bytes 1546m part\"\n\nRestoration as\n\n \"cat part* | psql database 2> errors 1>/dev/null\"\n\nall dumpfiles total about 17Gb. It has been running for 50ish hrs... |
[
{
"msg_contents": "I'm posting this to the entire performance list in the hopes that it will be generally useful.\n=r\n\n-----Original Message-----\n>From: mark@mark.mielke.cc\n>Sent: Apr 26, 2006 3:25 AM\n>To: Ron Peacetree <rjpeace@earthlink.net>\n>Subject: Re: [PERFORM] Large (8M) cache vs. dual-core CPUs\n>... |
[
{
"msg_contents": "Mea Culpa. There is a mistake in my example for SDR vs DDR vs DDR2.\nThis is what I get for posting before my morning coffee.\n\nThe base latency for all of the memory types is that of the base clock rate; 200MHz= 5ns in my given examples.\n\nI double factored, making DDR and DDR2 worse than... |
[
{
"msg_contents": "I was wondering if there were any performance issues with having a data\ndirectory that was an nfs mounted drive? Say like a SAN or NAS device? Has\nanyone done this before?\n\n\n\n\nRunning on an NFS Mounted Directory\n\n\nI was wondering if there were any performance issues with having a d... |
[
{
"msg_contents": "Hi,.\n\nWe are new to Postgresql. I am appreciated if the following question can be\nanswered.\n\nOur application has a strict speed requirement for DB operation. Our tests\nshow that it takes about 10secs for the operation when setting fsync off,\nbut takes about 70 seconds when setting fsyn... |
[
{
"msg_contents": "Get a SCSI controller with a battery backed cache, and mount the disks\nwith data=writeback (if you use ext3). If you loose power in the middle\nof a transaction, the battery will ensure that the write operation still\ncompletes. With asynch writing setup like this, fsync operations will\nret... |
[
{
"msg_contents": "Hello,\nMany thanks for your suggestions.\nI will try them.\nThe last two queries almost did not use disk, but used 100% cpu.\nThe differences of performance are big.\nFirebird has something similiar to EXPLAIN. Please look below.\nIs there something really wrong with the postgresql configura... |
[
{
"msg_contents": "Hi folks,\n\nSorry to be bringing this up again, but I'm stumped by this problem\nand hope you can shed some light on it.\n\nI'm running postgresql 8.0 on a RLE4 server with 1.5 GB of RAM and a\nXenon 2 GHz CPU. The OS is bog standard and I've not done any kernel\ntuning on it. The file syste... |
[
{
"msg_contents": "I have small database running in 8.1.3 in W2K server.\nThe following query causes Postgres process to use 100% CPU and seems to run \nforever.\nIf I change '1EEKPANT' to less frequently used item code, it runs fast.\n\nHow to speed it up ?\n\nset search_path to public,firma2;\n select r... |
[
{
"msg_contents": "a) I have absolutely no idea regarding price tags when it comes to SUN hardware, last time I worked with SUN gear was in ´01 so you'll have to check with your local (SUN-)supplier for uptodate prices.\n\nb) Same here (no idea). But I'd be surprised if UFS (and ZFS) was unable to take advantag... |
[
{
"msg_contents": "Hi,\n \n I have a performance problem with Postgresql version 8.1 installed on a Fedora Core release 4 (Stentz) with kernel version 2.6.11.\n \n The machine I am working on has 512MB of RAM and Pentium III 800 MHz CPU.\n \n I have only one table in the database which consists of 256 columns a... |
[
{
"msg_contents": "Hello,\n\nI'm searching for a comfortable way to get a variable-size bunch of user\nspecified Objects via a single prepared statement, so I wanted to submit\nan ARRAY.\n\nHowever, the query planner seems to refuse to make index scans even with\n8.1:\n\ntestdb=# EXPLAIN SELECT * from streets W... |
[
{
"msg_contents": "This is a question that I also posted on Dell hardware forums, and I realize it \nprobably belongs there more than here. But I am thinking someone might have \nsome anecdotal information that could help me and this post may help someone \nelse down the road.\n\nMy PowerEdge 1800 (dual 3ghz Xe... |
[
{
"msg_contents": "The best of all worlds is to use a HW RAID card with battery backed cache.\n\nThen you can have both high performance and high reliability.\n\nBenches suggest that the best such cards currently are the Areca cards which support up to 2GB of battery backed cache.\n\nRon\n\n-----Original Messag... |
[
{
"msg_contents": "Hello,\n\nWe are currently developing a web application and have the webserver and \nPostgreSQL with our dev db running on a machine with these specs:\n\nWin 2003 standard\nAMD Athlon XP 3000 / 2.1 GHZ\n2 Gig ram\n120 gig SATA HD\nPostgreSQL 8.1.0\nDefault pgsql configuration + shared buffers... |
[
{
"msg_contents": "\nI've been attempting to tweak performance on a FreeBSD 6 server I'm \nrunning that has both Postgresql 8.1 and Mysql 4.1 running \nsimultaneously.\n\nTo attempt to gauge performance I was directed to the super-smack \n(http://vegan.net/tony/supersmack/) benchmark.\n\nTesting gave results... |
[
{
"msg_contents": ">FWIW, my own experiments with tests like this suggest that PG is at\nworst about 2x slower than mysql for trivial queries. If you'd reported\na result in that ballpark I'd have accepted it as probably real. 6x I\ndon't believe though ...\n\nOTOH, my tests using BenchmarkSQL\n(http://source... |
[
{
"msg_contents": "I'm running postgres 8.0.7, and I've got a table of orders with about \n100,000 entries. I want to just look at the new orders, right now 104 of \nthem.\n\nEXPLAIN ANALYZE\nSELECT\n order_id\n FROM\n orders\n WHERE\n order_statuses_id = (SELECT id FROM order_statuses WH... |
[
{
"msg_contents": "Hi everyone.\n\nI've got a quick and stupid question: Does Postgres 7.4 (7.x) support\nvacuum_cost_delay?\n\nFor all my googles and documentation reading I've determined it's not\nsupported, only because I can't find a 7.x doc or forum post claiming\notherwise.\n\nUpgrading to 8.x is out of t... |
[
{
"msg_contents": ">My server is the HP DL585 (quad, dual-core Opteron, 16GB RAM) with 4 HD\nbays run by a HP SmartArray 5i controller. I have 15 10K 300GB >drives\nand 1 15K 150GB drive (don't ask how that happened).\n\nOur server will be a DL385 (dual, dual-core Opteron, 16Gb RAM), and the\n28 disks(10K 146G... |
[
{
"msg_contents": "I have a quite large query that takes over a minute to run on my laptop.\nOn the db server it takes olmost 20 seconds, but I have 200+ concurent\nusers who will be running similair querries, and during the query the\nI/O goes bezerk, I read 30MB/s reading (iostat tells so). So, before\ngoing... |
[
{
"msg_contents": "Hi,\n\nI have recently implemented table partitioning in our postgres 8.1 db. Upon analyzing query performance, I have realized that, even when only a single one of the \"partitions\" has to be scanned, the plan is drastically different, and performs much worse, when I query against the maste... |
[
{
"msg_contents": "Ever since I started working with PostgreSQL I've heard the need to\nwatch transaction IDs. The phrase \"transaction ID wraparound\" still\ngives me a shiver. Attached it a short script that works with the\nmonitoring system Nagios to keep an eye on transaction IDs. It should\nbe easy to adap... |
[
{
"msg_contents": ">If you don't have anything in the parent table br_1min, then deleting\n>the (presumably obsolete) pg_statistic rows for it should fix your\n>immediate problem. Otherwise, consider applying the attached.\n\nTom, thanks alot for your reply. A few follow-up questions, and one potential \"bug\... |
[
{
"msg_contents": "Thanks.\n\nMy first check was of course a grep/search of the postgres.conf, next it was\na complete source grep for vacuum_cost_delay.\n\nI've come to the conclusion I need to simply start tracking all transactions\nand determining a cost/performance for the larger and frequently updated\ntab... |
[
{
"msg_contents": "We recently upgraded to PostgreSQL 8.1 from 7.4 and a few queries are\nhaving performance problems and running for very long times. The\ncommonality seems to be PostgreSQL 8.1 is choosing to use a nested\nloop join because it estimates there will be only be a single row.\nThere are really th... |
[
{
"msg_contents": "My database is used primarily in an OLAP-type environment. Sometimes my \nusers get a little carried away and find some way to slip past the \nsanity filters in the applications and end up bogging down the server \nwith queries that run for hours and hours. And, of course, what users \ntend... |
[
{
"msg_contents": "I am using the onboard NVRAID controller. It has to be configured in the\nBIOS and windows needs a raid driver at install to even see the raid drive.\nBut the onboard controller still utilizes system resources. So it is not a\n\"pure\" software raid, but a mix of hardware (controller) / softw... |
[
{
"msg_contents": "> > > FWIW, I've found problems running PostgreSQL on Windows in a \n> > > multi-CPU environment on w2k3. It runs fine for some period, and \n> > > then CPU and throughput drop to zero. So far I've been unable to \n> > > track down any more information than that, other than the \n> fact that ... |
[
{
"msg_contents": "Hey, thanks for the advice.\n\nSticking with 7.4 isn't my call. There's a lot wrapped up in common usage of\nPostgres 7.4 and I could never rally everyone into moving forward. (at least\nnot this year)\n\nI've yet to prove (due to my current lack of statistical evidence) that our\nusage of 7.... |
[
{
"msg_contents": "> > > > > FWIW, I've found problems running PostgreSQL on Windows in a \n> > > > > multi-CPU environment on w2k3. It runs fine for some \n> period, and \n> > > > > then CPU and throughput drop to zero. So far I've \n> been unable to \n> > > > > track down any more information than that, other... |
[
{
"msg_contents": "Good morning,\n\nFirst the stats: I'm using PostgreSQL 8.0.1 (I know I should upgrade,\ncannot due to vendor app. restrictions...), RedHat 9 on a SUN V40Z with 8GB\nof memory. I'm using the \"out-of-the-box\" settings in postgresql.conf.\nI've been testing various changes but cannot increas... |
[
{
"msg_contents": "Thanks Tom. I thought the same thing and waded through the archives trying\nvarious fixes such as vacuum, vacuum full (both with analyze), reindex and\nstill the same issue. However, once the box was rebooted the backup went\nsmooth and the data was fine. We have two (2) machines (PROD001 ... |
[
{
"msg_contents": "Are you saying the kernel's disc cache may be getting whacked? No, I\nunderstand that PG should use as much memory as it can and the system as\nwell. The main problem here is that with almost all the 8GB of RAM 'in use'\nwhen I try to do a pg_dump or vacuumdb I run out of memory and the sys... |
[
{
"msg_contents": "Sorry, been up all night and maybe provided too much information or not the\nright information and only confused folks, tired I guess. When I say 'in\nuse' I am referring to the 'used' column. Thanks all who have responded to\nthis inquiry, I appreciate it. \n\nHere's free from PROD001:\n[r... |
[
{
"msg_contents": "On the boxes in question the settings are:\n \nshared_buffers = 1000\nwork_mem = 1024\n \nI have revised these on my DEV box and see some improvement (a quick thank\nyou to Jim Nasby for his assistance with that):\n \nshared_buffers = 20000\nwork_mem = 8024\n \nRegards,\nTim\n \n-----Original... |
[
{
"msg_contents": "Thanks Michael. Are you saying the 'used' column is the irrelevant number?\nIs the number that is more pertinent is 1416880? Is that the actual amount\nof memory in use? I agree about the allocation of a bogus amount of memory\nbut the issue occurred after-hours when the application(s) wer... |
[
{
"msg_contents": "I have a question about my function. I must get user rating by game result. \nThis isn't probably a perfect solution but I have one question about \n\nselect into inGameRating count(game_result)+1 from users\n\t\twhere game_result > inRow.game_result;\n\nThis query in function results in abo... |
[
{
"msg_contents": "Thanks for a great explanation Craig, makes more sense now.\n\nTim\n\n -----Original Message-----\nFrom: \tCraig A. James [mailto:cjames@modgraph-usa.com] \nSent:\tFriday, May 05, 2006 10:51 AM\nTo:\tmcelroy, tim\nCc:\tpgsql-performance@postgresql.org\nSubject:\tRe: [PERFORM] Memory and/or ca... |
[
{
"msg_contents": "Hi,\nWe've got a C function that we use here and we find that for every\nconnection, the first run of the function is much slower than any\nsubsequent runs. ( 50ms compared to 8ms)\n\nBesides using connection pooling, are there any options to improve\nperformance?\n\n-Adam\n",
"msg_date"... |
[
{
"msg_contents": "Thank you again to all who have offered advice, suggestions, tips and offers\nof support/training. From the gist of some of the latter posts I must come\noff as a rank rookie, lol. Deservedly so as I've only been working with\npostgres for 7 months and in the linux/unix world a year or so. ... |
[
{
"msg_contents": "I'm watching a long, painfully slow 60GB load from pg_dump \n(8.1.2), and noticing it's jumping back and forth from different \ntables. I assume this is the index creation order showing up.\n\nWould it make more sense to have pg_dump dump indexes grouped by \nthe table? That way, if a table... |
[
{
"msg_contents": "\n\n\n\nI'm facing a very weird problem.\nRecently our database run very slow when execute Delete/Select statement\nfor a few tables only..\nThe largest table only have 50K rows of data.\n\nWhen I run the statement from pgAdmin although it is slow but not as slow\nas run from webapp.\nWhen I ... |
[
{
"msg_contents": "I have small database. However the following query takes 38 (!) seconds to\nrun.\nHow to speed it up (preferably not changing table structures but possibly\ncreating indexes) ?\n\nAndrus.\n\nset search_path to public,firma1;\nexplain analyze select bilkaib.summa from BILKAIB join KONTO CRKON... |
[
{
"msg_contents": "Why does this query take so long? (PostgreSQL 8.0.3, FC4)\nHopefully I have provided enough information below.\n\nLOG: statement: SELECT * FROM x WHERE f IN \n($1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14,$15,$16,$17,$18,$19,$20,$21,$22,$23,$24,\\\n$25,$26,$27,$28,$29,$30,$31,$32,$33,$34,... |
[
{
"msg_contents": "Hi,\n\nWe've got a C function that we use here and we find that for every\nconnection, the first run of the function is much slower than any\nsubsequent runs. ( 50ms compared to 8ms)\n\nBesides using connection pooling, are there any options to improve\nperformance?\n\nBy the way, we are usin... |
[
{
"msg_contents": "Hi,\n\nI have a query that generates two different plans when there's only a \nchange in the category_id used in the query.\n\nThe first query has category_id = 1001573 and return 3117 rows from \nthe category_product table.\nThe second query has category_id = 1001397 and returns 27889 rows... |
[
{
"msg_contents": "\n\n\n\nActually now I already work to upgrade Postgresql version to 8.1 but not\nyet finish.\n\nYesterday I did re-create the affected tables indices, it does improve the\nperformance but still need 2-5 mins to execute the query.\nIs this 'normal' for a table with 40K rows of records?\n\nAny... |
[
{
"msg_contents": "Hi,\n\nI've just had some discussion with colleagues regarding the usage of \nhardware or software raid 1/10 for our linux based database servers.\n\nI myself can't see much reason to spend $500 on high end controller \ncards for a simple Raid 1.\n\nAny arguments pro or contra would be desira... |
[
{
"msg_contents": "Hi all !\n\nI am running PostgreSQL 7.3.2 on Linux 2.6.13...\n\nWhat I see when VACUUM process is running is:\n\nCpu(s): 0.0% us, 3.2% sy, 0.0% ni, 0.0% id, 93.5% wa, 3.2% hi,\n0.0% si\n\nWhat I am worry about is \"93.5% wa\" ...\n\nCould someone explain me what is the VACUUM process wai... |
[
{
"msg_contents": "Hi all !\n\nI have got such problem.\nIm running Postgresql 7.3.2 on Linux 2.6.13.\nWhat is see when VACCUM is running and killing my CPU is:\n\nCpu(s): 3.2% us, 0.0% sy, 0.0% ni, 0.0% id, 96.8% wa, 0.0% hi,\n0.0% si\n\nwhat i am worry about is \"96.8% wa\" why is it like that?\n\nwhat i... |
[
{
"msg_contents": "Ok, thank you all again for your help in this matter. Yes, Michael I (the\noriginal poster) did say or imply I guess is a better word for it that a\ncombo of training and hands-on is the best way for one to learn PostgreSQL\nor just about anything for that matter. Thank you for recognizing ... |
[
{
"msg_contents": " \nHi,\n\nWe've got a C function that we use here and we find that for every\nconnection, the first run of the function is much slower than any\nsubsequent runs. ( 50ms compared to 8ms)\n\nBesides using connection pooling, are there any options to improve\nperformance?\n\nBy the way, we are u... |
[
{
"msg_contents": "I'm having a rare but deadly problem. On our web servers, a process occasionally gets stuck, and can't be unstuck. Once it's stuck, all Postgres activities cease. \"kill -9\" is required to kill it -- signals 2 and 15 don't work, and \"/etc/init.d/postgresql stop\" fails.\n\nHere's what th... |
[
{
"msg_contents": "is there a possibility for creating views or temp tables in memory to \navoid disk io when user makes select operations?\n\nregards\ntom\n\n",
"msg_date": "Wed, 10 May 2006 11:18:55 +0200",
"msg_from": "Thomas Vatter <thomas.vatter@network-inventory.de>",
"msg_from_op": true,
... |
[
{
"msg_contents": "Hi,\n\nthere was a similar discussion with a ramdisk:\nhttp://archives.postgresql.org/pgsql-hackers/2005-11/msg01058.php\n\nYou need to populate the data on serverstart, of course.\n\nBut as Timo mentionend, it's maybe not worth the trouble.\n\nMaybe their is a way to speed up the queriy itse... |
[
{
"msg_contents": "Hello,\n\nI just discovered the explain command and well ... have some (for you\nof course very stupid) questions.\n\nI do a quite large (for my taste) join, the query looks like the following:\nSELECT DISTINCT customer.email AS cemail, customer.key AS ckey,\ncustomer.anrede AS canrede, custo... |
[
{
"msg_contents": "I'm trying to determine why an identical query is running \napproximately 500 to 1000 times slower on our production database \ncompared to our backup database server.\n\nBoth database servers are dual 2.3 GHz G5 Xserves running PostgreSQL \n8.1.3; both are configured with 8GB of RAM with ... |
[
{
"msg_contents": "\n> Something else worth considering is not using the normal \n> catalog methods\n> for storing information about temp tables, but hacking that together\n> would probably be a rather large task.\n\nBut the timings suggest, that it cannot be the catalogs in the worst\ncase\nhe showed.\n\n> 0.1... |
[
{
"msg_contents": "I am attempting to learn more about the way Pg decides what operators to use\nin its query planning and executions. I have moderately complicated table\nlayout, but it is mostly normalized I recently created a query:\n\nselect account.acct_name as \"Customer Name\", NULL as \"Facility\",\nac... |
[
{
"msg_contents": "Hi!\n\nSee the next case, please! This is a theoretical CASE, which cause \nproblems to me. Please, help!\n\nCREATE TABLE a (\n id SERIAL, -- This is the PRIMARY KEY\n col TEXT\n);\n\nCREATE TABLE b (\n id SERIAL, -- This is the PRIMARY KEY\n a_id INT4, -- REFERENCE TO a.id\n... |
[
{
"msg_contents": "Hello,\ncontinuing the saga, \nhttp://archives.postgresql.org/pgsql-performance/2006-04/msg00558.php ,\nmy coleague created a test database with fake data (see below).\n\nThe above archived message contains the the timings of firebird and postgresql.\nThe weird problem are the 2 queries that ... |
[
{
"msg_contents": "Please cc the list so others can help.\n\n> From: Witold Strzelczyk [mailto:w.strzelczyk@digitalone.pl]\n> On Friday 12 May 2006 00:04, you wrote:\n> \n> Yes, thanks but method is not a point.\n\nActually, it is a point. Databases don't like doing things procedurally. Using a stored procedur... |
[
{
"msg_contents": "I have recently been encountering a number of significant performance\nproblems related to stable functions being called multiple times when I\nbelieve they could be called just once. Searching the ML archives, I see\nI'm not the first:\n\n<http://archives.postgresql.org/pgsql-hackers/2003-04... |
[
{
"msg_contents": "Performance Folks,\n\nI just had an article[1] published in which I demonstrated recursive \nPL/pgSQL functions with this function:\n\nCREATE OR REPLACE FUNCTION fib (\n fib_for int\n) RETURNS integer AS $$\nBEGIN\n IF fib_for < 2 THEN\n RETURN fib_for;\n END IF;\n RE... |
[
{
"msg_contents": "Hi List,\n\nIn the past few weeks we have been developing a read-heavy \nmysql-benchmark to have an alternative take at cpu/platform-performance. \nNot really to have a look at how fast mysql can be.\n\nThis benchmark runs on mysql 4.1.x, 5.0.x and 5.1.x and is modelled \nafter our website's ... |
[
{
"msg_contents": "I have a table of about 500,000 rows. \n\n \n\nI need to add a new column and populate it.\n\n \n\nSo, I have tried to run the following command. The command never finishes (I\ngave up after about and hour and a half!).\n\nNote that none of the columns have indexes.\n\n \n\nUpdate mytable set... |
[
{
"msg_contents": "\n\n\n\nHi,\n\nCurrently I'm using postgresql v8.1.3 and the latest jdbc.\n\nI try to open a JReports' report and the time taken to completely open the\nreport is 137453ms.\nThen I open the same report but this time I connect to postgresql v7.2.2\nbut the completion time is even faster than c... |
[
{
"msg_contents": "Hi,\n\nI have a web page, that executes several SQLs.\n\nSo, I would like to know witch one of those SQLs consumes more CPU.\nFor example,\nI have SQL1 that is executed in 1.2 secs and a SQL2 that is executed in \n200 ms.\n\nBut SQL2 is executed 25 times and SQL1 is executed 1 time, so really... |
[
{
"msg_contents": "Hi.\n\nI'm trying to plan for a performance test session where a large database is\nsubject to regular hits from my application while both regular and full\ndatabase maintenance is being performed. The idea is to gain a better idea\non the impact maintenance will have on regular usage, and wh... |
[
{
"msg_contents": "Hello,\n\nI'm running a benchmark with theses 3 databases, and the first results\nare not very good for PostgreSQL.\n\nPostgreSQL is 20% less performance than MySQL (InnoDB tables)\n\nMy benchmark uses the same server for theses 3 databases :\nDell Power edge - Xeon 2.8 Ghz - 2 Go Ram - 3 SCS... |
[
{
"msg_contents": "What filesystem are you using - ext2/etx3/xfs/jfs/...? Does the SCSI\ncontroller have a battery backed cache? For ext3, mounting it with\ndata=writeback should give you quite a boost in write performance.\n\nWhat benchmark tool are you using - is it by any chance BenchmarkSQL?\n(since you men... |
[
{
"msg_contents": "Yes, regular versus full vacuum. Thanks for the comment but I was hoping to\ncome to that conclusion on my own by observing the affects of the different\nvacuums.\n\nMy original question was guidance on collecting data for confirmation on the\nimpact that maintenance of a large database (as a... |
[
{
"msg_contents": "Could someone explain the results of the following? This is with postgres 8.1.2 on a database that was just vacuum-verbose-analyzed. I have packets_i4 index which I am expecting to be used with this query but as you can see, I have have to convince its usage by turning off other scans. The... |
[
{
"msg_contents": "(Its been a hour and I dont see my message on the list so I'm sending it again. I've moved the queries and analyze out of the email incase it was rejected because too long)\n\nquery: http://pastebin.ca/57218\n\nIn the pictures table all the ratings have a shared index \n \nCREATE INDEX idx_ra... |
[
{
"msg_contents": "Where can I find any documentation to partition the tablespace disk files onto\ndifferent physical arrays for improved performance?\n\n-Kenji\n",
"msg_date": "Fri, 19 May 2006 19:37:45 -0700",
"msg_from": "Kenji Morishige <kenjim@juniper.net>",
"msg_from_op": true,
"msg_subjec... |
[
{
"msg_contents": "Fellow PostgreSQLers,\n\nWith a bit of guidance from Klint Gore, Neil Conway, Josh Berkus, and \nAlexey Dvoychenkov, I have written a PL/pgSQL function to help me \ncompare the performance between different functions that execute the \nsame task. I've blogged the about the function here:\n... |
[
{
"msg_contents": "Hi,\n\nI have a query that performs WAY better when I have enable_seqscan = \noff:\n\nexplain analyze select ac.attribute_id, la.name, ac.sort_order from \nattribute_category ac, localized_attribute la where ac.category_id = \n1001402 and la.locale_id = 1000001 and ac.is_browsable = 'true'... |
[
{
"msg_contents": "Hi all,\n\nWe've recently started having a problem where a query that normally executes\nin ~15ms starts to take upwards of 20s to complete. When the connection\nthat ran query is returned to the connection pool, it appears as though a\ntransaction is still in progress so the connection pool... |
[
{
"msg_contents": "Hi,\n I am having a problem with a sub select query being kinda slow. The\nquery is as follows:\n \nselect batterycode, batterydescription, observationdate from Battery t1\nwhere patientidentifier=611802158 and observationdate = (select\nmax(observationdate) from Battery t2 where t2.battery... |
[
{
"msg_contents": "antonio.batovanja@humanomed.co.at wrote:\n> The above query takes 5 seconds to execute!\n> \n> [...]\n>\n> Total runtime: 96109.571 ms\n\nIt sure doesn't look like it...\n\n> Total runtime: 461.907 ms\n>\n> [...]\n>\n> Suddenly the query takes only 0.29 seconds!\n\nHow are you timing this, ... |
[
{
"msg_contents": "that worked like a champ nice call as always! \n\nthanks\n\nTim Jones\nHealthcare Project Manager\nOptio Software, Inc.\n(770) 576-3555\n\n-----Original Message-----\nFrom: Tom Lane [mailto:tgl@sss.pgh.pa.us] \nSent: Monday, May 22, 2006 7:07 PM\nTo: Tim Jones\nCc: pgsql-performance@postgresq... |
[
{
"msg_contents": "All,\n\nI might be completely crazy here, but it seems every other database \nexposes select query stats. Postgres only exposes updates/deletes/ \ninserts. Is there something I am missing here?\n\nBest Regards,\nDan Gorman\n\n",
"msg_date": "Tue, 23 May 2006 10:40:01 -0700",
"msg_fro... |
[
{
"msg_contents": "Hi I'm a new postgresql user. I wrote ACO (ant colony optimazition) and \nwant to replace it with GEQO in postres/src/backend/optimizer but I don't know how \nto compile and run the source code :(\n \n I installed postgresql-8.1.3 and cygwin but I can not use them to \ncompile the source c... |
[
{
"msg_contents": "\n\n\n\n\nI want to optimize this simple join:\n\nSELECT * FROM huge_table h, tiny_table t WHERE UPPER( h.id ) = UPPER( t.id )\n\nhuge_table has about 2.5 million records, can be assumed as fixed, and\nhas the following index:\n\nCREATE INDEX huge_table_index ON huge_table( UPPER( id ) );\n\n... |
[
{
"msg_contents": "\n\n\n\n[ I had a problem with my mailer when I first sent this. My apologies\n for any repeats. ]\n\n\nI want to optimize this simple join:\n\nSELECT * FROM huge_table h, tiny_table t WHERE UPPER( h.id ) = UPPER( t.id )\n\nhuge_table has about 2.5 million records, can be assumed as fixed, ... |
[
{
"msg_contents": "I have a system that currently inserts ~ 250 million rows per day (I \nhave about 10k more raw data than that, but I'm at the limit of my \nability to get useful insert performance out of postgres).\n\nThings I've already done that have made a big difference:\n- modified postgresql.conf sha... |
[
{
"msg_contents": "Daniel J. Luke wrote:\n> On May 24, 2006, at 4:02 PM, Dave Dutcher wrote:\n>> If you can live with possible database corruption, you could try\n>> turning Fsync off. For example if you could just reinsert the data\n>> on the off chance a hardware failure corrupts the database, you\n>> might ... |
[
{
"msg_contents": "Daniel J. Luke wrote:\n> On May 24, 2006, at 4:12 PM, Larry Rosenman wrote:\n>> are the batches single insert's, or within a big transaction?\n>> If the former, the latter is a big win.\n> \n> One big transaction every 5 minutes using 'COPY FROM' (instead of\n> inserts).\n> \n>> Also, what re... |
[
{
"msg_contents": "\n\n\n\nI want to optimize this simple join:\n\nSELECT * FROM huge_table h, tiny_table t WHERE UPPER( h.id ) = UPPER( t.id )\n\nhuge_table has about 2.5 million records, can be assumed as fixed, and\nhas the following index:\n\nCREATE INDEX huge_table_index ON huge_table( UPPER( id ) );\n\n..... |
[
{
"msg_contents": "Hi,\n\nI find this very helpful:\n\n Lowering the priority of a PostgreSQL query\n http://weblog.bignerdranch.com/?p=11\n\nNow I was wondering whether one could have a\n SELECT pg_setpriority(10);\nexecuted automatically each time a certain user\nconnects (not necessarily using psql)?\n\nA... |
[
{
"msg_contents": "\nOn 5/24/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:\n>\n> <kynn@panix.com> writes:\n> > Limit (cost=19676.75..21327.99 rows=6000 width=84)\n> > -> Hash Join (cost=19676.75..1062244.81 rows=3788315 width=84)\n> > Hash Cond: (upper((\"outer\".id)::text) upper((\"inner\".id)::text)... |
[
{
"msg_contents": "been doing a lot of pgsql/mysql performance testing lately, and there\nis one query that mysql does much better than pgsql...and I see it a\nlot in normal development:\n\nselect a,b,max(c) from t group by a,b;\n\nt has an index on a,b,c.\n\nin my sample case with cardinality of 1000 for a, 20... |
[
{
"msg_contents": "Hi There,\n\nI've got a situation where I need to pull profit information by product \ncategory, as well as the totals for each branch.\n\nBasically, something like\n\nSELECT branch_id, prod_cat_id, sum(prod_profit) as prod_cat_profit\n FROM () as b1\nWHERE x = y\nGROUP BY branch, prod_cat... |
[
{
"msg_contents": "Hi, \n\nI have 2 servers, one of them has a 7.4 postgres and the other has a 8.1 \n\nI have this query: \n\nselect fagrempr,fagrdocr,fagrserr,fagrparr \nfrom arqcfat \nleft join arqfagr on fagrorig = 'CFAT' and fagrdocu = cfatdocu and fagrempe \n= cfatempe and fagrseri = cfatseri \nwhere cfat... |
[
{
"msg_contents": "I've set up something similar the 'recommended' way to merge data into\nthe DB, i.e.\n\nhttp://www.postgresql.org/docs/current/static/plpgsql-control-structures.html#PLPGSQL-ERROR-TRAPPING\n\nhowever I did it with a trigger on insert, i.e. (not my schema :) ):\n\nCREATE TABLE db (a INT PRIMAR... |
[
{
"msg_contents": "Hi,\n\nIs Postgres supposed to be able to handle concurrent requests while \ndoing large updates?\n\nThis morning I was executing the following simple update statement \nthat would affect 220,000 rows in my product table:\n\nupdate product set is_hungry = 'true' where date_modified > \ncu... |
[
{
"msg_contents": "Hi.\n\nI have 2 tables - one with calls numbers and another with calls codes.\nThe structure almost like this:\nbilling=# \\d a_voip\n Table \"public.a_voip\"\n Column | Type |\n Modifiers\n--------------------+---------... |
[
{
"msg_contents": "Can any one explain why the following query\n\nselect f(q) from\n(\n select * from times\n where '2006-03-01 00:00:00'<=q and q<'2006-03-08 00:00:00'\n order by q\n) v;\n\nnever completes, but splitting up the time span into single days does work.\n\nselect f(q) from\n(\n select *... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.