threads
listlengths
1
275
[ { "msg_contents": "Hi List,\n\n\n Could anyone tell me a documentation that explains the \" explain \" result\nand how to analyze it ?\n\nAtenciosamente,\n\nRhaoni Chiu Pereira\nSist�mica Computadores\n\nVisite-nos na Web: http://sistemica.info\nFone/Fax : +55 51 3328 1122\n\n\n\n\n\n", "msg_date": "Mo...
[ { "msg_contents": "\n\n", "msg_date": "Mon, 8 Sep 2003 19:38:23 -0500", "msg_from": "=?iso-8859-1?Q?Odiel_Le=F3n?= <odiel@jagua.cfg.sld.cu>", "msg_from_op": true, "msg_subject": "" } ]
[ { "msg_contents": "Tom,\n\nBack in the 7.0 days, \n\nWHERE EXISTS (SELECT * FROM a WHERE condition)\n\nwas significantly slower on broad tables than\n\nWHERE EXISTS (SELECT small_col FROM a WHERE condition)\n\nIs this still true, or something that's been fixed in the last 3 versions? \nJoe Celko is making fun ...
[ { "msg_contents": "Hi All,\n Is it usual that the following query to take 22 secs with the machine I have?\nAny other reason?\nHope I have provided all the details need.\n\nThanks,\nWaruna\n\nTables:\n/* -------------------------------------------------------- \n Table structure for table \"tvDiary\" \n-------...
[ { "msg_contents": "would it cause problem in postgres DB if /var/lib/psql partition is mounted \nwith \"noatime\"?\n\nTIA \nJM\n", "msg_date": "Tue, 9 Sep 2003 16:12:48 +0800", "msg_from": "JM <jerome@gmanmi.tv>", "msg_from_op": true, "msg_subject": "increase performancr with \"noatime\"?" }, ...
[ { "msg_contents": "\n Hello,\n\n I have small table (up to 10000 rows) and every row will be updated\nonce per minute. Table also has \"before update on each row\" trigger\nwritten in plpgsql. But trigger 99.99% of the time will do nothing\nto the database. It will just compare old and new values in the row\n...
[ { "msg_contents": "I've got an application that needs to chunk through ~2GB of data. The \ndata is ~7000 different sets of 300 records each. I put all of the data \ninto a postgres database but that doesn't look like its going to work \nbecause of how the data lives on the disk.\n\nWhen the app runs on a 500 Mh...
[ { "msg_contents": "Nitpicking --\n\nPerhaps the 4th data line is meant to be:\n Inserts in separate transactions 2500 inserts/second\n ^^^^^^^^^^^^^^^^^^^^^^^\n??\n\n\nGreg Williamson\n\n-----Original Message-----\nFrom:\tBruce Momjian [mailto:pgman@candle.pha.pa.us]\nSent:\tTue...
[ { "msg_contents": "Hi,\n\nMy name is Alex Turner and I work for a small Tech company in Pottstown PA. We run Postgresql on a number of systems for a variety of different applications, and it has been a joy to deal with all around, working fast and reliably for over 2 years.\n\nWe recently upgraded from RedHat ...
[ { "msg_contents": "Hello,\n\n\tI'm trying a work-around on the \"index on int8 column gets ignored by \nplanner when queried by literal numbers lacking the explicit '::int8'\" \nissue, and had hoped that perhaps I could create a functional index on \nthe result of casting the pk field to int4, and mabye with...
[ { "msg_contents": "Hi all,\nI have some new hardware on the way and would like some advice on how to get \nthe most out of it..\n\nits a dual xeon 2.4, 4gb ram and 3x identical 15k rpm scsi disks\n\nshould i mirror 2 of the disks for postgres data, and use the 3rd disk for the \no/s and the pg logs or raid5 th...
[ { "msg_contents": "Due to various third party issues, and the fact PG rules, we're planning\non migrating our deplorable informix db to PG. It is a rather large DB\nwith a rather high amount of activity (mostly updates). So I'm going to\nbe aquiring a dual (or quad if they'll give me money) box. (In my testin...
[ { "msg_contents": "\nThe Dell PERC controllers have a very strong reputation for terrible\nperformance. If you search the archives of the Dell Linux Power Edge list\n(dell.com/linux), you will find many, many people who get better\nperformance from software RAID, rather than the hw RAID on the PERC.\nHaving sa...
[ { "msg_contents": "And the winner is... checkpoint_segments.\n\nRestore of a significanly big database (~19.8GB restored) shows nearly\nno time difference depending on sort_mem when checkpoint_segments is\nlarge. There are quite a number of tables and indexes. The restore\nwas done from a pg_dump -Fc dump of ...
[ { "msg_contents": "FINALLY A LIP PLUMPER THAT ACTUALLY WORKS !!!\n\n\n\n\n\nGet Plump, Sexy Lip'sIn Under 30 Days!\n\n\nvisit website\n\nCITY LIP'S exclusive lip treatment...\n\t>\nStimulates collagen & hyaluronic moisture in your lip's resulting in BIGGER, LUSCIOUS, more SENSUOUS Lip's\n\t>\nCITY LIP'S is use...
[ { "msg_contents": "To whoever can assist,\n\nI am working with a decent sized database on an extremely powerful machine. \nThe specs follow:\n\n\tOS:\t\t\tRedHat Linux 9.0\n\tPG Version\t\t7.3\n\tMemory\t\t1 gig\n\tCPU\t\t\tQuad Processor - Unsure of exact CPUs\n\tHard Drive\t\t80 gigs\n\tDatabase Size\t\t2 gig...
[ { "msg_contents": "Joseph,\n\nPlease see this web page before posting anything else:\nhttp://techdocs.postgresql.org/guides/SlowQueryPostingGuidelines\n\nCurrently, you are not posting enough data for anyone to be of meaningful \nhelp.\n\n-- \n-Josh Berkus\n Aglio Database Solutions\n San Francisco\n\n", "m...
[ { "msg_contents": "Yesterday Jenny and I started to look at plan changes with different\nseed and default_statistics_sample changes. \n\nSince we have 21 plans to check, it takes a long time to determine if\nthe plans were different. We had to do it visually with xxdiff. Diff\nwill always show a difference si...
[ { "msg_contents": "Hi,\n\nI have been following a thread on this list \"Inconsistent performance\"\nand had a few questions especially the bits about effective_cache_size.\nI have read some of the docs, and some other threads on this setting,\nand it seems to used by the planner to either choose a sequential or...
[ { "msg_contents": "I'm running a load of stress scripts against my staging environment to\nsimulate user interactions, and watching the various boxen as time goes by.\n\nI noticed that the CPU utilisation on the DB server (PG 7.2.3, RH7.3, Dual\nPII 550MHz, 1GB RAM, 1GB database on disk, Single 10k SCSI drive) ...
[ { "msg_contents": "Hi list,\n\n I have a table like this:\n\nCREATE TABLE \"gsames00\" (\n \"ano_mes\" varchar(6) NOT NULL,\n \"descricao\" varchar(30),\n PRIMARY KEY (\"ano_mes\")\n);\n\nand an index like this:\n\nCREATE INDEX GSAMES01 ON GSAMES00 (ANO_MES);\n\n When I run a explain a...
[ { "msg_contents": "\nI'm on 7.3.4 and this query gets horrible performance. Is there a way to rewrite it with an exists or some way to get better performance?\n\nselect code, id, name, date_of_service\n from tbl\nwhere date_of_service in\n (select date_of_service\n from tbl\n where xxx >= ...
[ { "msg_contents": "3) using PG 7.3 or less, you will also need to REINDEX these\n tables+indexes often (daily?). This issue will go away\n in 7.4, which should make you an early adopter of 7.4.\n\nIs this true? Haven't heard of this before.\nIf so, how can this be managed in a cronjob?\nFor the hourly VAC...
[ { "msg_contents": "> Yes, there is reindexdb :)\n\nNot on my machine. (RH 7.3)\n\n#rpm -qa|grep postgres\npostgresql-server-7.2.3-5.73\npostgresql-libs-7.2.3-5.73\npostgresql-devel-7.2.3-5.73\npostgresql-7.2.3-5.73\n\nWhat package am I missing?\n\nregards,\nOliver Scheit\n", "msg_date": "Thu, 18 Sep 2003 10...
[ { "msg_contents": ">> > It's part of postgresql 7.3. Just get it from the 7.3\n>> > contrib dir - it works fine with 7.2\n>> That's nice to hear. Thanx for that info.\n\n> That's alright - cron job it for once a month - that's what\n> I do. Basically the problem is that in certain cases\n> (monotonically incr...
[ { "msg_contents": "\nOn Thu, 18 Sep 2003 13:23:37 +0800, \"Christopher Kings-Lynne\"\n<snip>\n\n>To the original poster: You did not provide a lot of information, but\n>the following suggestions might give you an idea ...\n<snip>\n>\n\nYes, sorry about that. But in my query for a set of dates returned from th...
[ { "msg_contents": "\nThanks Josh!\n\nBut, the EXISTS version doesn't really give me what I want...all rows in tbl that match the date of the subquery.\n\nBut, using the DISTINCT does make sense.\n\nThanks again to all who helped!\n\n-----Original Message-----\nFrom: Josh Berkus <josh@agliodbs.com>\nSent: Sep 18...
[ { "msg_contents": "Our hardware/software configuration:\nkernel: 2.5.74\ndistro: RH7.2\npgsql: 7.3.3\nCPUS: 8\nMHz: 700.217\nmodel: Pentium III (Cascades)\nmemory: 8298888 kB\nshmmax: 3705032704\n\nWe did several sets of runs(repeating runs with the same database\nparameters) and have the following obser...
[ { "msg_contents": "FINALLY A LIP PLUMPER THAT ACTUALLY WORKS !!!\n\n\n\n\n\nGet Plump, Sexy Lip'sIn Under 30 Days!\n\n\nvisit website\n\nCITY LIP'S exclusive lip treatment...\n\t>\nStimulates collagen & hyaluronic moisture in your lip's resulting in BIGGER, LUSCIOUS, more SENSUOUS Lip's\n\t>\nCITY LIP'S is use...
[ { "msg_contents": "Hi-\n\nI have a table- called \"event\" with a field event_date_time that is indexed.\nThere are 1,700,000 rows in the table and 92,000 distinct values of\nevent_date_time with anywhere from 1 to 400 rows sharing the same value. (I\ndid a count grouped by event_date_time & scanned it to get t...
[ { "msg_contents": "Recently we upgraded the RAM in our server. After the install a LIKE query that used to take 5 seconds now takes 5 minutes. We have tried the usual suspects, VACUUM, ANALYZE and Re-indexing.\n\nAny thoughts on what might have happened?\n\n-Garrett Bladow\n\n", "msg_date": "Tue, 23 Sep 200...
[ { "msg_contents": "Hello,\n\nI have been trying to get my Postgres database to do faster inserts.\n\nThe environment is basically a single user situation.\n\nThe part that I would like to speed up is when a User copys a Project.\nA Project consists of a number of Rooms(say 60). Each room contains a \nnumber of ...
[ { "msg_contents": "Hi,\n\nI have a table containing columns:\n\n \"END_DATE\" timestamptz NOT NULL\n \"REO_ID\" int4 NOT NULL\n\nand i am indexed \"REO_ID\" coulumn.\nI have a query:\n\nselect \"REO_ID\", \"END_DATE\" from \"PRIORITY_STATISTICS\" where \"REO_ID\" IN\n('112851' ,'112859' ,'112871' ,'112883'...
[ { "msg_contents": "All this talk of checkpoints got me wondering if I have them set at an\noptimum level on my production servers. I noticed the following in the\ndocs:\n\n \"There will be at least one 16 MB segment file, and will normally not\nbe more than 2 * checkpoint_segments + 1 files. You can use this to...
[ { "msg_contents": "Hi!\n\nA performance question:\n\nI have some tables:\n\n Tabell \"public.person\"\n Kolumn | Typ | Modifierare\n------------------+--------------------------+---------------\n userid | text | not null\n giver ...
[ { "msg_contents": "have the table \"numbercheck\"\n\t Attribute | Type | Modifier\n\t-----------+------------+----------\n\t svcnumber | integer | not null\n\t svcqual | varchar(9) |\n\t svcequip | char(1) |\n\t svctroub | varchar(6) |\n\t svcrate | varchar(4) |\n\t svcclass | char(1) |\n\...
[ { "msg_contents": "I am running TPC-R benchmarks with a scale factor of 1, which correspond\nto approximately 1 GB database size on PostgreSQL 7.3.4 installed on\nCygWin on Windows XP. I dedicated 128 MB of shared memory to my postrges\ninstallation.\nMost of the queries were able to complete in a matter of min...
[ { "msg_contents": "Seems like in your case postgres uses an i_l_partkey index on lineitem\ntable. I have a foreign key constraint defined between the lineitem and\npart table, but didn't create an special indexes. Here is my query plan:\n\n -> Aggregate (cost=1517604222.32..1517604222.32 rows=1 width=31)\n ...
[ { "msg_contents": "Hi guys \n\nIm running a Datawarehouse benchmark (APB-1) on PostgreSql. The objective is to\nchoose which of the to main db (PostgreSQL, MySQL) is fastest. I've run into a\nsmall problem which I hope could be resolved here.\n\nI'm trying to speed up this query:\n\nselect count(*) from actvars...
[ { "msg_contents": ">Damn.. Seq. scan for actvars? I would say half an hour is a good throughput.\n>\n>Are there any indexes on both actvars.product_level and prodlevel.code_level?\nAre >they exactly compatible type? int2 and int4 are not compatible in\npostgresql >lingo.\n>\n>That plan should go for index scan....
[ { "msg_contents": "\n\nHi List;\n\n Where can I find a plan-readinf tutorial ?\n\nAtenciosamente,\n\nRhaoni Chiu Pereira\nSist�mica Computadores\n\nVisite-nos na Web: http://sistemica.info\nFone/Fax : +55 51 3328 1122\n\n\n\n\n\n", "msg_date": "Fri, 26 Sep 2003 13:47:59 -0300", "msg_from": "Rhaoni C...
[ { "msg_contents": "Here is the explain analyze of the query:\n\nexplain analyze select count(*) from actvars, prodlevel where\nactvars.product_level=prodlevel.code_level and\nprodlevel.division_level='OY3S5LAPALL6';\n\n Aggregate (cost=3123459.62..3123459.62 rows=1 width=32) (actual\ntime=1547173.60..1547173.6...
[ { "msg_contents": "Hi, i'm on the verge of buying a \"MegaRAID SCSI 320-2\" raid controller.\nI need it to build a db server using 4x ultra320 scsi disks\ni'm thinking raid 1+0 but will try with raid5 too and compare\n\nDoes anyone have any experience with this model, good or bad i'd like to \nknow.. thanks :)\...
[ { "msg_contents": "For the application that I'm working on, we want to\nuse data types that are database independent. (most\ndatabases has decimal, but not big int).\n\nAnyhow, we are planning on using decimal(19,0) for our\nprimary keys instead of a big int, would there be a\nperformance difference in using a...
[ { "msg_contents": "Hi!\n\nI have a SQL statement that I cannot get to use the index. postgresql \ninsists on using a seqscan and performance is very poor. set enable_seqscan \n= true boost performance drastically, as you can see below. Since seqscan \nis not always bad, I'd rather not turn it off completely, bu...
[ { "msg_contents": "--On måndag, september 29, 2003 15.32.31 +0200 Gaetano Mendola \n<mendola@bigfoot.com> wrote:\n\n> Are not absolutelly bad but sometimes that path that you choose is not\n> the optimal, in postgres 7.4 use the explicit join will be less\n> limitative for the planner.\n>\n> Regards\n> Gaetano ...
[ { "msg_contents": "I left my TPC-R query #17 working over the weekend and it took 3988 mins\n~ 10 hours to complete. And this is considering that I am using a TPC-R\ndatabase created with a scale factor of 1, which corresponds to ~1 GB of\ndata. I am running RedHat 8.0 on a dual 1 GHz processor, 512 MB RAM.\n\n...
[ { "msg_contents": "\nIt took 10 hours to compute the query without the index on\nlineitem.l_partkey.\nOnce I created the index on lineitem.l_partkey, it took only 32 secs to\nrun the same query. \nAfter VACUUM ANALYZE it took 72 secs to run the query.\nAll the subsequent runs took under 3 seconds!\n\nThat's qu...
[ { "msg_contents": "\nOops, my previous message got cut off.\nHere is the end of it:\nI just checked the restrictions on the TPC-R and TPC-H schemas and it\nseems that all indexes are allowed in TPC-R and only those that index\nparts of primary or foreign keys are allowed in TPC-H.\nThanks.\n\nOleg \n\n-----Orig...
[ { "msg_contents": "Yes Josh,\nL_partkey is a part of the foreign key on the Lineitem table, and it was\nok to create an index on it according to the TPC-R specs. I just created\nindices on the rest of the FK columns in the TPC-R database and will\ncontinue my evaluations.\nThanks.\n\nOleg \n\n-----Original Mess...
[ { "msg_contents": "I've posted several emails, and have yet to see one show up (this one\nmight not either).\n \nIs there a size limit to an email (it had a big analyze, and schema\ninformation)??\n\nDavid\n\n\n\n\n\n\nI've posted several emails, and have yet to see one \nshow up (this one might not either).\n ...
[ { "msg_contents": "I continue struggling with the TPC-R benchmarks and wonder if anyone\ncould help me optimize the query below. ANALYZE statistics indicate that\nthe query should run relatively fast, but it takes hours to complete. I\nattached the query plan to this posting.\nThanks.\n\nselect\n\tnation,\n\to_...
[ { "msg_contents": "We're having a problem with a query during our investigation into\nPostgres (as an Oracle replacement). This query Postgres takes 20-40\nseconds (multiple runs). Tom Lan recommended I post it here, with an\nexplain-analyze.\n \nHere's the query:\n \nEXPLAIN ANALYZE SELECT company_name, addres...
[ { "msg_contents": "Here's the schema:\n \n Table \"public.address_list\"\n Column | Type | Modifiers\n----------------------+------------------------+-----------\n address_list_id | numeric(10,0) | not null\n address_1 | character varying(1...
[ { "msg_contents": "And finally,\n \nHere's the contents of the postgresql.conf file (I've been playing with\nthese setting the last couple of days, and using the guide @\nhttp://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_e.html\n<http://www.varlena.com/varlena/GeneralBits/Tidbits/annotated_conf_...
[ { "msg_contents": "\n Hello,\n\n While writing web application I found that it would\nbe very nice for me to have \"null\" WHERE clause. Like\nWHERE 1=1. Then it is easy to concat additional\nconditions just using $query . \" AND col=false\" syntax.\n\n But which of the possible \"null\" clauses is the faste...
[ { "msg_contents": "We have an opportunity to purchase a new, top-notch database server. I am\nwondering what kind of hardware is recommended? We're on Linux platforms and\nkernels though. I remember a comment from Tom about how he was spending a\nlot of time debugging problems which turned out to be hardware-re...
[ { "msg_contents": "Hi,\n\tIn some situations, it looks like the optimizer does not chose \nefficient paths for joining inherited tables. For I created a \nrather trivial formulation to serve as an example. I created the table \n'numbers' comprising of the columns id (int) and value (text). I also \ncreated t...
[ { "msg_contents": "Jeff,\nI would really appreciate if you could send me that lengthy presentation\nthat you've written on pg/other dbs comparison.\nThanks.\n\nOleg\n\n-----Original Message-----\nFrom: Jeff [mailto:threshar@torgo.978.org] \nSent: Wednesday, October 01, 2003 6:23 AM\nTo: David Griffiths\nCc: pgs...
[ { "msg_contents": "Tom Lane wrote:\n\n> When benchmarking with data sets considerably larger than available\n> buffer cache, I rather doubt that small random_page_cost would be a \n> good idea. Still, you might as well experiment to see.\n\n From experience, I know the difference in response time can be huge w...
[ { "msg_contents": "The output of the query should contain about 200 rows. So, I guess the\nplaner is off assuming that the query should return 1 row.\n\nI will start EXPLAIN ANALYZE now.\n\nThanks.\n\nOleg\n\n-----Original Message-----\nFrom: scott.marlowe [mailto:scott.marlowe@ihs.com] \nSent: Wednesday, Octob...
[ { "msg_contents": "Hi all,\n\nI haven't found any official documentation about the postgres sql optimizer\non the web, so please forgive me if there is such a document and point me to\nthe right direction.\n\nI've got the following problem: I cannot make the postgres SQL Optimizer use\nan index on a date field ...
[ { "msg_contents": "That would be great! When do you think this would be ready for us to see\n;?)\n\n-----Original Message-----\nFrom: Jeff [mailto:threshar@torgo.978.org] \nSent: Wednesday, October 01, 2003 11:42 AM\nTo: Oleg Lebedev\nCc: pgsql-performance@postgresql.org\nSubject: RE: [PERFORM] Tuning/performan...
[ { "msg_contents": "Sure, below is the query. I attached the plan to this posting.\n\nselect\n\tnation,\n\to_year,\n\tsum(amount) as sum_profit\nfrom\n\t(\n\t\tselect\n\t\t\tn_name as nation,\n\t\t\textract(year from o_orderdate) as o_year,\n\t\t\tl_extendedprice * (1 - l_discount) -\nps_supplycost * l_quantity ...
[ { "msg_contents": "All right, my query just finished running with EXPLAIN ANALYZE.\nI show the plan below and also attached it as a file.\nAny ideas?\n\n -> Sort (cost=54597.49..54597.50 rows=1 width=121) (actual\ntime=6674562.03..6674562.15 rows=175 loops=1)\n Sort Key: nation.n_name, date_part('ye...
[ { "msg_contents": "Hi folks.\n\nWhat's wrong with planner that executes my query in function?:\n(i mean no explanation but runtime)\n\n\ntele=# EXPLAIN analyze select calc_total(6916799, 1062363600, 1064955599);\n QUERY PLAN\n-----------------------------------------------...
[ { "msg_contents": "I ran VACUUM FULL ANALYZE yesterday and the re-ran the query with\nEXPLAIN ANALYZE.\nI got the same query plan and execution time. \n\n-----Original Message-----\nFrom: Tom Lane [mailto:tgl@sss.pgh.pa.us] \nSent: Wednesday, October 01, 2003 4:20 PM\nTo: Oleg Lebedev\nCc: Josh Berkus; scott.ma...
[ { "msg_contents": "As Scott recommended, I did the following:\n# set enable_nestloop = false;\n# vacuum full analyze;\n\nAfter this I re-ran the query and its execution time went down from 2\nhours to 2 minutes. I attached the new query plan to this posting.\nIs there any way to optimize it even further?\nWhat ...
[ { "msg_contents": "Hi,\n\nI have a select like this:\n\nSELECT MAX(transactionid) FROM cbntransaction WHERE transactiontypeid=0;\n\nin the query:\ntransactionid is the primary key of cbntransaction table,\nBut transactiontypeid is a low cardinality column, there're over 100,000\nrecords has the same trnsactiont...
[ { "msg_contents": "Hi,\n\nI have a select like this:\n\nSELECT MAX(transactionid) FROM cbntransaction WHERE transactiontypeid=0;\n\nin the query:\ntransactionid is the primary key of cbntransaction table,\nBut transactiontypeid is a low cardinality column, there're over 100,000\nrecords has the same trnsactiont...
[ { "msg_contents": "Hi,\n\nI have a somewhat large table, 3 million rows, 1 Gig on disk, and growing. Doing a\ncount(*) takes around 40 seconds.\n\nLooks like the count(*) fetches the table from disk and goes through it.\nMade me wonder, why the optimizer doesn't just choose the smallest index\nwhich in my case...
[ { "msg_contents": "I was testing to get some idea of how to speed up the speed of pgbench \nwith IDE drives and the write caching turned off in Linux (i.e. hdparm -W0 \n/dev/hdx).\n\nThe only parameter that seems to make a noticeable difference was setting \nwal_sync_method = open_sync. With it set to either f...
[ { "msg_contents": "I was trying to get the pg_stats information to Josh and decided to\nrecreate the indexes on all my tables. After that I ran vacuum full\nanalyze, re-enabled nestloop and ran explain analyze on the query. It\nran in about 2 minutes.\nI attached the new query plan. I am not sure what did the t...
[ { "msg_contents": "Thanks everyone for the help.\n\nI have another question. How do I optimize my indexes for the query that\ncontains a lot of ORed blocks, each of which contains a bunch of ANDed\nexpressions? The structure of each ORed block is the same except the\nright-hand-side values vary. \nThe first exp...
[ { "msg_contents": "Hi!\n\nIt's just my curiosity. I wonder if there is any way to break my speed\nlimit on AMD 450Mhz:\n\nBest Regards,\nCN\n-------------------\n--This table contains 1036 rows.\nCREATE TABLE table1 (\nc1 VARCHAR(20) PRIMARY KEY,\nc2 \"char\"\n)WITHOUT OIDS;\n---------------------\n--This tab...
[ { "msg_contents": "\nI can tell you that this is one of the first thing applications' programmers and IT managers notice. It can slightly tarnish postgres' image when it takes it many long seconds to do what other databases can do in a snap. The \"whys and wherefores\" can be hard to get across once they see th...
[ { "msg_contents": "12:28p\nDear All,\nThis question is regarding the performance of queries in general.\nThe performance of the queries wud varying depending on the no. Of tuples it is returning, and the sort of alogorithm that will be implemented or the retrieval. \nNow if the relation returns zero tuples.. (t...
[ { "msg_contents": "Hi everyone,\n\nI've been trying to find out if some guidelines\nexist, somewhere, describing how postgres\ncan possibly run on less than 8MB of RAM.\n(Disk space not an issue).\n\nThe closest thread I could find in the list \narchives is :\nhttp://archives.postgresql.org/pgsql-general/2002-0...
[ { "msg_contents": "We frequently need to know the number of tuples in a table although sometimes we do have WHERE status='X' for example but this often doesn't guarantee an indexed scan. And yes, my reasons are the same - reporting figures eg number of bookings made since the system was introduced. Have you t...
[ { "msg_contents": "Josh,\n\nI declared all the indexes that you suggested and ran vacuum full\nanalyze. The query plan has not changed and it's still trying to use\nseqscan. I tried to disable seqscan, but the plan didn't change. Any\nother suggestions?\nI started explain analyze on the query, but I doubt it wi...
[ { "msg_contents": "Josh,\nMy data directory is 3.8 GB.\nI can send you flat data files and scripts to create indices, but still\nit would be about 1.3 GB of data. Do you still want me to transfer data\nto you? If yes, then just give me your FTP address.\nThanks.\n\nOleg\n\n-----Original Message-----\nFrom: Josh...
[ { "msg_contents": "Hi,\n\nI have a query that ran quite well initially, but slowed down quite a\nbit once I introduced an aggregate into the equation. The average\nexecution time went up from around 15 msec to around 300 msec. \n\nThe original query fetches a bunch of articles:\n\nselect articlenumber, channel,...
[ { "msg_contents": "I've read some posts that says vacuum doesn't lock, but my experience\ntoday indicates the opposite. It seemed that \"vacuum full analyze\"\nwas locked waiting and so were other postmaster processes. It\nappeared to be deadlock, because all were in \"WAITING\" state according\nto ps. I let...
[ { "msg_contents": "Ok, I asked this on [novice], but I was told it's be better to post it\nhere...\n\nI've got some money to spend on a new servers. The biggest concern is the\nPostgreSQL database server that will \"be the company.\" (*Everyone* uses the\ndatabase server in some form or another) I'm looking for...
[ { "msg_contents": "Ran the test on another linux box - the one that generated the dump the\nsun loaded (which should have similar data...) and I got a profile plan\nsimilar to the Sun. Which makes me feel more comfortable.\n\nStill interesting why that other box gave me the different profile.\nNow off the fun a...
[ { "msg_contents": "Tom,\n\nI've found the problem with TPC-R query #19. And it, unfortunately, appears \nto be a problem in the PostgreSQL query planner.\n\nTo sum up the below: it appears that whenever a set of WHERE conditions \nexceeds a certain level of complexity, the planner just ignores all \napplicabl...
[ { "msg_contents": "Well, as you guys know I've been tinkering with sun-vs-linux postgres for\na while trying to come up with reasons for the HUGE performance\ndifferences. We've all had our anecdotal thoughts (fork sucks, ipc sucks,\nufs sucks, etc) and I've had a breakthrough.\n\nKnowing that GCC only produces...
[ { "msg_contents": "Hi folks. I notice that immutable flag does nothing when i invoke\nmy plpgsql function within one session with same args.\n\n\ntele=# SELECT version();\n version\n-------------------------------------------------------------\n PostgreSQL 7.3.4 on i686-pc-linux-gnu, c...
[ { "msg_contents": "All,\n\nAnyone have any suggestions on how to efficiently compare\nrows in the same table? This table has 637 columns to be\ncompared and 642 total columns.\n\nTIA,\nGreg\n\n-- \nGreg Spiegelberg\n Sr. Product Development Engineer\n Cranel, Incorporated.\n Phone: 614.318.4314\n Fax: 61...
[ { "msg_contents": "We've a table with about 8 million rows, and we need to get rows by the value of two of its fields( the type of the fields are int2 and int4, the where condition is v.g. partido=99 and partida=123). We created a multicolumn index on that fields but the planner doesn't use it, it still use a s...
[ { "msg_contents": "The boss cleared my de-company info-ified pg presentation.\nIt deals with PG features, crude comparison to other dbs, install, admin,\nand most importantly - optimization & quirks.\n\nIts avail in powerpoint and (ugg) powerpoint exported html.\n\nLet me know if there are blatant errors, etc i...
[ { "msg_contents": "Hi,\nI am trying to design a large text search database.\n\nIt will have upwards of 6 million documents, along with meta data on \neach.\n\nI am currently looking at tsearch2 to provide fast text searching and \nalso playing around with different hardware configurations.\n\n1. With tsearch2 I...
[ { "msg_contents": "Hi guys,\n\nI followed the discussion and here are my 0.2$:\n\nI think instead of thinking about where to put the\ninformation about tuning, someone should provide a\n\"pgsql-autotune\". Maybe even a shell script would do the\ntrick.\n\nIt's not so hard to find out, how much memory is install...
[ { "msg_contents": "http://www.ussg.iu.edu/hypermail/linux/kernel/0310.1/0208.html\n\nShridhar\n\n\n", "msg_date": "Thu, 09 Oct 2003 16:42:53 +0530", "msg_from": "Shridhar Daithankar <shridhar_daithankar@persistent.co.in>", "msg_from_op": true, "msg_subject": "Linux filesystem shootout" }, { ...
[ { "msg_contents": "On Wed, 8 Oct 2003, Neil Conway wrote:\n\n> Hey Jeff,\n>\n> On Wed, 2003-10-08 at 11:46, Jeff wrote:\n> > Yeah - like I expected it was able to generate much better code for\n> > _bt_checkkeys which was the #1 function in gcc on both sun & linux.\n>\n> If you get a minute, would it be possibl...
[ { "msg_contents": "DISCLAIMER: This message contains privileged and confidential information and is\nintended only for the individual named.If you are not the intended\nrecipient you should not disseminate,distribute,store,print, copy or\ndeliver this message.Please notify the sender immediately by e-mail if\ny...
[ { "msg_contents": "This is a timely thread for myself, as I'm in the middle of testing both\ndatabases as an Oracle replacement.\n \nAs of this moment, I know more about MySQL (tuning, setup, features)\nthan I do about Postgres. Not because I like MySQL more, but because\n \n1) the MySQL docs are better (sorry ...
[ { "msg_contents": "I am very interested in the non-Cygwin windows port. Looking over the 7.4\nbeta release, it looks like the code made it in. I read through the win32\nrelated docs, to find out that they are out-of date instructions (11/2002).\nI do hope these get updated with the native windows stuff.\n\nBut ...
[ { "msg_contents": "Boy, I must be getting annoying by now huh?\n\nAnyway, after the joys of Solaris being fast I'm moving onto another area\n- backup & restore. I've been checking the archives and haven't seen any\n\"good\" tips for backing up big databases (and more importantly,\nrestoring).\n\nI've noticed w...
[ { "msg_contents": "Hello,\n\nI am running 7.3.2 RPMs on RH9, on a celeron 1.7 w/ 1gig ram.\n\nI have a table that has 6.9 million rows, 2 columns, and an index on \neach column. When I run:\n\nSELECT DISTINCT column1 FROM table\n\nIt is very, very slow (10-15 min to complete). An EXPLAIN shows no \nindexes ar...