threads
listlengths
1
275
[ { "msg_contents": "Hi.\n\nI have a \"message queue\" table, that contains in the order of 1-10m\n\"messages\". It is implemented using TheSchwartz:\nhttp://search.cpan.org/~bradfitz/TheSchwartz-1.07/lib/TheSchwartz.pm\n\nSo when a \"worker\" picks the next job it goes into the \"job\" table an\nselect the top X...
[ { "msg_contents": "Hi all,\n\n I've got a fairly small DB (~850MB when pg_dump'ed) running on PgSQL\nv8.1.11 a CentOS 5.3 x86_64 Xen-based virtual machine. The filesystem is\next3 on LVM with 32MB extents. It's about the only real resource-hungry\nVM on the server.\n\n It slows down over time and I can't se...
[ { "msg_contents": "The query shown below [select count(distinct...] seems to be looping \n(99-101% CPU as shown by top for 11+ hours). This using postgres 8.3.5 \non a dual quad core machine (Intel(R) Xeon(R) CPU X5460 @ 3.16GHz) with \n32G RAM. Can I provide any other info to help investigate this issue? Or \n...
[ { "msg_contents": "hi,\n\njust a small question: is it normal that PostgreSQL 8.4.1 always uses\nsequential scanning on any table when there is a condition having the\nconstant \"current_user\"? Of course there is a btree index set on that table,\nbut the DBMS just doesn't want to utilize it. When I replace cur...
[ { "msg_contents": "On 01/04/2010 04:53 PM, Robert Haas [robertmhaas@gmail.com] wrote:\n> PREPARE foo AS <the query, with the $x entries still in there>\n> EXPLAIN EXECUTE foo(<the values>);\n\nThanks for the response. Results below. Brian\n\ncemdb=> prepare foo as select count(distinct b.ts_id) from \nts_stats_...
[ { "msg_contents": "Hi everybody,\n\nI am running a PostgreSQL server 8.3.5 with a pretty much standard config.\n\nThe web application server which runs Apache 1.3/PHP2.9 has an intermittent\nproblem:\npg_connect takes exactly 3.0 seconds. The usual connection time is 0.0045.\nThe long request happens at approx...
[ { "msg_contents": "> SELECT SUM(1) FROM ts_stats_transetgroup_user_weekly b WHERE\n> ts_interval_start_time > [value] AND ts_interval_start_time < [value];\n>\n> ...and similarly for the bitmap index scan.\ncemdb=> SELECT SUM(1) FROM ts_stats_transetgroup_user_weekly b WHERE \nts_interval_start_time >= '2009-12...
[ { "msg_contents": "also compare:\n\n[4258-cemdb-admin-2010-01-05 13:11:42.913 PST]LOG: duration: 6401.314 \nms statement: execute foo('2010-01-03 00:00','2010-01-03 \n08:00','2009-12-28 00:00','2010-01-04 00:00');\n[4258-cemdb-admin-2010-01-05 13:11:42.913 PST]DETAIL: prepare: prepare \nfoo as select count(d...
[ { "msg_contents": "Hi.\n\nI have a table that consists of somewhere in the magnitude of 100.000.000\nrows and all rows are of this tuples\n\n(id1,id2,evalue);\n\nThen I'd like to speed up a query like this:\n\nexplain analyze select id from table where id1 = 2067 or id2 = 2067 order\nby evalue asc limit 100;\n ...
[ { "msg_contents": "Hello,\n\nI am complete noob to Postgres and to this list, and I hope this will be the\nappropriate list for this question.\n\nI'm hoping the inheritance feature will be a nice alternative method for me\nto implement categories in particular database of products I need to keep\nupdated. I sup...
[ { "msg_contents": "Hi,\nI am going to test this out but would be good to know anyways. A large\ntable is joined to a tiny table (8 rows) on a text field. Should I be\njoining on an int field eg: recid intead of name? Is the performance\naffected in either case?\nThanks .\n\nHi,I am going to test this out but wo...
[ { "msg_contents": "Our DB has an audit table which is 500M rows and growing. (FYI the objects \nbeing audited are grouped semantically, not individual field values).\n\nRecently we wanted to add a new feature and we altered the table to add a \nnew column. We are backfilling this varchar(255) column by writing ...
[ { "msg_contents": "Hi all,\n\nfollowing the simple but interesting air-traffic benchmark published at:\nhttp://www.mysqlperformanceblog.com/2009/10/02/analyzing-air-traffic-performance-with-infobright-and-monetdb/\n\nI decided to run the benchmark over postgres to get some more\nexperience and insights. Unfortu...
[ { "msg_contents": "Hello, \n\nI've been lurking on this list a couple weeks now, and have asked some \"side questions\" to some of the list members, who have been gracious, and helpful, and encouraged me to just dive in and participate on the list.\n\nI'll not tell you the whole story right off the bat, but let...
[ { "msg_contents": "----- \"Lefteris\" <lsidir@gmail.com> escreveu:\n> > Did you ever try increasing shared_buffers to what was suggested\n> (around\n> > 4 GB) and see what happens (I didn't see it in your posts)?\n> \n> No I did not to that yet, mainly because I need the admin of the\n> machine to change the sh...
[ { "msg_contents": "Ludwik Dylag <ldylag@gmail.com> wrote:\n> I would suggest:\n> 1. turn off autovacuum\n> 1a. ewentually tune db for better performace for this kind of\n> operation (cant not help here)\n> 2. restart database\n> 3. drop all indexes\n> 4. update\n> 5. vacuum full table\n> 6. create indexes\n...
[ { "msg_contents": "----- \"Matthew Wakeling\" <matthew@flymine.org> escreveu:\n> On Thu, 7 Jan 2010, Gurgel, Flavio wrote:\n> Postgres does not change a query plan according to the shared_buffers\n> \n> setting. It does not anticipate one step contributing to another step\n> in \n> this way. It does however mak...
[ { "msg_contents": "On 01/05/2010 08:34 PM, Robert Haas [robertmhaas@gmail.com] wrote:\n> - If you have other queries where this index helps (even though it is\n> hurting this one), then you're going to have to find a way to execute\n> the query without using bound parameters - i.e. with the actual values\n> in ...
[ { "msg_contents": "Hi,\n\nI've got a Fusion IO disk (actually a HP StorageWorks IO Accelerator)\nthat I'm going to performance test with postgresql on windows. I'm\nguessing people here may be interested in the results.\n\nSo, does there exist any simple way to find some... comparable numbers\nfor a server - sh...
[ { "msg_contents": "Hi ,\n\nI have a simple query with two tables.\nms_data ~ 4500000 rows\nms_commands_history ~ 500000 rows\n\nI have done analyze and there are indexes.\nMy question is why the planner didn't do the index scan first on ms_data \nto reduce the rows to ~ 11000 and the use the PK index on \nms_co...
[ { "msg_contents": "Hi 2 all,\n\nHere is my typical configuration: 1(2) GB of RAM, HP ML 350(150) series \nserver, SATA raid, Linux.\n\nI have 1 big table (called \"archive\") which contains short text messages \nwith a plenty of additional service info.\nCurrently this table contains more than 4M rows for a per...
[ { "msg_contents": "Hi 2 all,\n\nHere is my typical configuration: 1(2) GB of RAM, HP ML 350(150) series \nserver, SATA raid, Linux.\n\nI have 1 big table (called \"archive\") which contains short text messages \nwith a plenty of additional service info.\nCurrently this table contains more than 4M rows for a per...
[ { "msg_contents": "Dear All,\n\nI'm trying to optimise the speed of some selects with the where condition:\n\nWHERE id =\n (SELECT MAX(id) FROM tbl_sort_report WHERE parcel_id_code='43024')\n\n\nThis is relatively slow, taking about 15-20ms, even though I have a \njoint index on both fields:\n\nCREATE INDEX te...
[ { "msg_contents": "Hi,\n\nPart of a larger problem, I'm trying to optimize a rather simple query which\nis basically:\nSELECT * FROM table WHERE indexed_column > ... ORDER BY indexed_column DESC;\n\n(see attachment for all details: table definition, query, query plans)\n\nFor small ranges it will choose an inde...
[ { "msg_contents": "Mathieu De Zutter wrote:\n \nYou didn't include any information on your hardware and OS, which can\nbe very important. Also, what version of PostgreSQL is this?\nSELECT version(); output would be good.\n \n> How can I make pgsql realize that it should always pick the index\n> scan?\n \nThat...
[ { "msg_contents": "Mathieu De Zutter wrote:\n \n> Intel(R) Core(TM)2 Duo CPU E7200 @ 2.53GHz\n> 2GB RAM\n> 2x500GB RAID-1\n \n> Running Debian/Etch AMD64\n> PG version: PostgreSQL 8.3.8 on x86_64\n \n> Server also runs DNS/Mail/Web/VCS/... for budget reasons.\n> Database size is 1-2 GB. Also running copies of ...
[ { "msg_contents": "I wrote:\n \n> work_mem = 32MB\n \nHmmm... With 100 connections and 2 GB RAM, that is probably on the\nhigh side, at least if you sometimes use a lot of those connections\nat the same time to run queries which might use sorts or hashes. It's\nprobably safer to go down to 16MB or even back to...
[ { "msg_contents": "Hello,\n\nWe're running Postgres 8.4.2 on Red Hat 5, on pretty hefty hardware...\n\n4X E7420 Xeon, Four cores (for a total of 16 cores)\n2.13 GHz, 8M Cache, 1066 Mhz FSB\n32 Gigs of RAM\n15 K RPM drives in striped raid\n\nThings run fine, but when we get a lot of concurrent queries running, w...
[ { "msg_contents": "Hi,\n\nLWLockPadded is either 16 or 32 bytes, so modern systems (e.g. Core2\nor AMD Opteron [1]) with cacheline size of 64 bytes can get\nfalse-sharing in lwlocks.\n\nI changed LWLOCK_PADDED_SIZE in src/backend/storage/lmgr/lwlock.c to\n64, and ran sysbench OLTP read-only benchmark, and got a...
[ { "msg_contents": "Bob Dusek <redusek@gmail.com> wrote:\n> Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:\n>> Bob Dusek <redusek@gmail.com> wrote:\n \n>> Anyway, my benchmarks tend to show that best throughput occurs at\n>> about (CPU_count * 2) plus effective_spindle_count. Since you\n>> seem to be fully...
[ { "msg_contents": "Hi list, I'm having a problem when dealing with operations that asks too\nmuch CPU from the server.\nThe scenario is this:\n\nI have a multithreaded server, each thread with its own connection to the\ndatabase. Everything is working fine, actually great, actually\noutstandingly, in normal ope...
[ { "msg_contents": "I'm having some performance problems in a few sales reports running on postgres 8.3, running on Redhat 4.1.2. The hardware is a bit old, but it performs well enough. The reports are the typical sales reporting fare: Gather the sales of a time period based some criteria, aggregate them by prod...
[ { "msg_contents": "Hello together,\n\nI need to increase the write performance when inserting\nbytea of 8MB. I am using 8.2.4 on windows with libpq.\n\nThe test setting is simple:\n\nI write 100x times a byte array (bytea) of 8 MB random data\ninto a table having a binary column (and oids and 3 other\nint colum...
[ { "msg_contents": "Hi,\n\n=== Problem ===\n\ni have a db-table \"data_measurand\" with about 60000000 (60 Millions)\nrows and the following query takes about 20-30 seconds (with psql):\n\nmydb=# select count(*) from data_measurand;\n count \n----------\n 60846187\n(1 row)\n\n\n=== Question ===\n\n- What can ...
[ { "msg_contents": "Matthew Wakeling <matthew@flymine.org> wrote:\n \n> This is an FAQ.\n \nI just added it to the wiki FAQ page:\n \nhttp://wiki.postgresql.org/wiki/FAQ#Why_is_.22SELECT_count.28.2A.29_FROM_bigtable.3B.22_slow.3F\n \n-Kevin\n\n", "msg_date": "Thu, 14 Jan 2010 09:47:53 -0600", "msg_from":...
[ { "msg_contents": "Hi,\n\nversion: 8.4.2\n\n\nI have a table called values:\n\ntest=*# \\d values\n Table \"public.values\"\n Column | Type | Modifiers\n--------+---------+-----------\n id | integer |\n value | real |\nIndexes:\n \"idx_id\" btree (id)\n\nThe table contains 100000 random rows an...
[ { "msg_contents": "Hi all,\n \nI've just received this new server:\n1 x XEON 5520 Quad Core w/ HT\n8 GB RAM 1066 MHz\n16 x SATA II Seagate Barracuda 7200.12\n3ware 9650SE w/ 256MB BBU\n \nIt will run an Ubuntu 8.04 LTS Postgres 8.4 dedicated server. Its database\nwill be getting between 100 and 1000 inserts per...
[ { "msg_contents": "My client just informed me that new hardware is available for our DB server.\n\n. Intel Core 2 Quads Quad\n. 48 GB RAM\n. 4 Disk RAID drive (RAID level TBD)\n\nI have put the ugly details of what we do with our DB below, as well as the\npostgres.conf settings. But, to summarize: we have a Pos...
[ { "msg_contents": "Hey folks,\n\nSorry for the OT - we are most of the way through a Db2 --> PG\nmigration that is some 18 months in the making so far. We've got\nmaybe another 3 to 6 months to go before we are complete, and in the\nmeantime have identified the need for connection pooling in Db2, a-la\nthe e...
[ { "msg_contents": "Dear performance group:\n\nWe have just upgraded our monitoring server software and\nnow the following query for graphing the data performs\nabysmally with the default settings. Here is the results\nof the EXPLAIN ANALYZE run with nestloops enabled:\n\nSET enable_nestloop = 'on';\nEXPLAIN SEL...
[ { "msg_contents": "A few months ago the worst of the bugs in the ext4 fsync code started \nclearing up, with \nhttp://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=5f3481e9a80c240f169b36ea886e2325b9aeb745 \nas a particularly painful one. That made it into the 2.6.32 kernel \nreleased las...
[ { "msg_contents": "El 19/01/2010 13:59, Willy-Bas Loos escribi�:\n> Hi,\n>\n> I have a query that runs for about 16 hours, it should run at least \n> weekly.\n> There are also clients connecting via a website, we don't want to keep \n> them waiting because of long DSS queries.\n>\n> We use Debian Lenny.\n> I'...
[ { "msg_contents": "Hello,\n\nWe are running into some performance issues with running VACUUM FULL on the\npg_largeobject table in Postgres (8.4.2 under Linux), and I'm wondering if\nanybody here might be able to suggest anything to help address the issue.\nSpecifically, when running VACUUM FULL on the pg_largeo...
[ { "msg_contents": "Hi,\n\nI'm not sure this is the right place to ask my question, so please if it is\nnot let me know where I can get an answer from.\n\nI'm using postgresql 8.4 on Linux machine with 1.5 GB RAM, and I'm issuing\nan update query with a where clause that updates approximately 100 000 rows\nin a ...
[ { "msg_contents": "Hi,\n\nThanks for your help, here's more details as you requested:\n\n-The version of postgres is 8.4 (by the way select pg_version() is not\nworking but let's concentrate on the query issue)\n\nHere's the full definition of the table with it's indices:\n\n-- Table: in_sortie\n\n \n\n-- DROP ...
[ { "msg_contents": "The issues we are seeing besides just saying the reports take over 26 hours,\nis that the query seems to be CPU bound. Meaning that the query consumes an\nentire CPU and quite often it is sitting with 65%-90% WAIT. Now this is not\niowait, the disks are fine, 5000-6000tps, 700K reads etc with...
[ { "msg_contents": "Does anyone know if there exists an open source implementation of the \nTPC-C benchmark for postgresql somewhere?\n", "msg_date": "Thu, 21 Jan 2010 23:51:00 +0100", "msg_from": "tmp <skrald@amossen.dk>", "msg_from_op": true, "msg_subject": "TPC-C implementation for postgresql?...
[ { "msg_contents": "Hello All,\n\nHow to identify if a table requires full vacuum? How to identify when to do\nre-index on an existing index of a table?\n\nIs there any tool for the above?\n\nThanks\nDeepak Murthy\n\nHello All,How to identify if a table requires full vacuum? How to identify when to do re-index o...
[ { "msg_contents": "Hi,\n\n \n\nFor the explain analyze here's the output:\n\n\"Seq Scan on in_sortie (cost=0.00..171140.19 rows=114449 width=84) (actual\ntime=15.074..28461.349 rows=99611 loops=1)\"\n\n\" Output: type, site_id, fiche_produit_id, numero_commande, ligne_commande,\ndate_sortie, quantite_sortie, ...
[ { "msg_contents": "Hello,\n\n I am working on a project that will take out structured content\nfrom wikipedia\nand put it in our database. Before putting the data into the database I\nwrote a script to\nfind out the number of rows every table would be having after the data is in\nand I found\nthere is ...
[ { "msg_contents": "One of our most-used queries performs poorly (taking over 2 seconds) and a \ntiny amount of refactoring shows it can be fast (less than 1ms) by \ntransforming the OR case (which spans two tables) into a UNION.\n\nI have created a simple test case (below) which shows the difference we \nare se...
[ { "msg_contents": "Dear All,\n\nJust wondering whether there is a missing scope for the query planner \n(on 8.4.2) to be cleverer than it currently is.\n\nSpecifically, I wonder whether the optimiser should know that by \nconverting a CASE condition into a WHERE condition, it can use an index.\n\nHave I found a...
[ { "msg_contents": "Had a quick look at a benchmark someone put together of MySQL vs PostgreSQL,\nand while PostgreSQL is generally faster, I noticed the bulk delete was very\nslow: http://www.randombugs.com/linux/mysql-postgresql-benchmarks.html\n\nIs this normal?\n\nThom\n\nHad a quick look at a benchmark some...
[ { "msg_contents": "Hi all - sorry to create additional email 'noise'\n\nBut I've been trying to post a rather long query to\n\nThe pgsql-performance user list. Dave thought\n\nThat it might have been bounced due to the length\n\nAnd suggested I send a short 'blast'\n\n \n\nIf this works I'll send a shortened v...
[ { "msg_contents": "Hello.\n\nI've always thought that PostgreSQL would propagate constraint from field1\nto field2 if condition says field1=field2, but this does not seem the case:\ndict=# explain select * from domain_list,title.domains where processed_at is\nnot null and key=groupid and key < 1000000 and group...
[ { "msg_contents": "Hi All,\n\nI have a server running CentOS5 with 6gb of memory that will run postgres\n8.3 exclusively.\nI would like to allocate 4gb of the memory to shared buffers for postgres.\nI have modified some kernel settings as follows:\n\nshmall 1048576 pages 4,294,967,296 bytes\nshmmax 4,294,967,...
[ { "msg_contents": "Hitting a performance issues that I'm not sure how to diagnose.\n\nSELECT highscores_for_steps_and_card(s.id, 591, 1) FROM stomp_steps s;\nSeq Scan on stomp_steps s (cost=0.00..793.52 rows=2902 width=4)\n(actual time=26509.919..26509.919 rows=0 loops=1)\nTotal runtime: 26509.972 ms\n\nThe in...
[ { "msg_contents": "I have a relatively straightforward query that by itself isn't that\nslow, but we have to run it up to 40 times on one webpage load, so it\nneeds to run much faster than it does. Here it is:\n\nSELECT COUNT(*) FROM users, user_groups\n WHERE users.user_group_id = user_groups.id AND NOT users....
[ { "msg_contents": "hi, first, thanks u for make so good opensource db . \r\n&nbsp;\r\nrecently maybe half an years ago ,i begin to use pg in a big project for insurance project, belong as the project go on ,and \r\ni found some performance problem on concurrency write situation , then i do a research on concurr...
[ { "msg_contents": "hi, first, thanks u for make so good opensource db . \r\n\r\nrecently maybe half an years ago ,i begin to use pg in a big project for insurance project, belong as the project go on ,and \r\ni found some performance problem on concurrency write situation , then i do a research on concurrency w...
[ { "msg_contents": "wrote:\n> hi, first, thanks u for make so good opensource db .\n \nNot a bad start.\n \n> [insults and hand-waving]\n \nNot a good way to continue.\n \nIf there's some particular performance problem you would like to try\nto solve, please read these pages, and try again:\n \nhttp://wiki.postg...
[ { "msg_contents": "&nbsp;I want say to the developer of pg, Thanks very much , you make so great project。 \r\n&nbsp;\r\nI think i am not a rough guy , Please forgive me. \n I want say to the developer of pg, Thanks very much , you make so great project。 \n \nI think i am not a rough guy , Please forgive me.", ...
[ { "msg_contents": " Let's say you have one partitioned table, \"tbl_p\", partitioned according to \nthe PK \"p_pk\". I have made something similar with triggers, basing myself on \nthe manual for making partitioned tables.\nAccording to the manual, optimizer searches the CHECKs of the partitions to \ndetermine ...
[ { "msg_contents": "2010/2/1 <wyx6fox@sina.com>:\n\n> yet, this code is just for fun , why ? because i found this code in one\n> article:PostgreSQL Concurrency Issues .\n\nI'm not familiar with the \"code\" that you are referring to. Do you\nhave a hyper-link to it?\n\n\n> Tom Lane\n> Red Hat Database Group\n>...
[ { "msg_contents": "Hi,\n I am running a bunch of queries within a function, creating some temp tables and populating them. When the data exceeds say, 100k the queries start getting really slow and timeout (30 min). when these are run outside of a transaction(in auto commit mode), they run in a few seconds. Any ...
[ { "msg_contents": "pg 8.3.9, Debian Etch, 8gb ram, quadcore xeon, megaraid (more details at end)\n~240 active databases, 800+ db connections via tcp.\n\nEverything goes along fairly well, load average from 0.5 to 4.0. Disk\nIO is writing about 12-20 MB every 4 or 5 seconds. Cache memory about\n4gb. Then unde...
[ { "msg_contents": "Sorry again for previous rough messages,&nbsp; some good people advice me to post these problems again With sincere and friendly attitude 。\n\nI think i should do this . \n\nIn recently projects , I determine use pg in some medium or big projects , as the projects has been finished,&nbsp; it ...
[ { "msg_contents": "Hello\n\nI have a server dedicated for Postgres with the following specs:\n\nRAM 16GB, 146GB SAS (15K) x 4 - RAID 10 with BBU, Dual Xeon E5345 @\n2.33GHz\nOS: FreeBSD 8.0\n\nIt runs multiple (approx 10) databases ranging from 500MB to over 24 GB in\nsize. All of them are of the same struct...
[ { "msg_contents": "foreign key constraint lock behavour :\n\n\nThe referenced FK row would be added some exclusive lock , following is the case:\n\nCREATE TABLE tb_a\n(\n id character varying(255) NOT NULL,\n \"name\" character varying(255),\n b_id character varying(255) NOT NULL,\n CONSTRAINT tb_a_pkey PRI...
[ { "msg_contents": "Greetings,\n\nI have a column that is a bigint that needs to store integers up to 19\ndigits long. For the most part this works but we sometimes have\nnumbers that are greater than 9223372036854775807.\n\nI was thinking of changing this to a real or double precision field,\nbut read in the do...
[ { "msg_contents": "Dear Postgres Community,\n\nI'm running postgres 8.3\n\nI have a table, partitioned by month\n\n-- Table: datadump\n\n-- DROP TABLE datadump;\n\nCREATE TABLE datadump\n(\n sys_timestamp timestamp without time zone,\n sys_device_id integer,\n usefields integer,\n timedate timestamp without...
[ { "msg_contents": "Recently I've made a number of unsubstantiated claims that the deadline \nscheduler on Linux does bad things compared to CFQ when running \nreal-world mixed I/O database tests. Unfortunately every time I do one \nof these I end up unable to release the results due to client \nconfidentiality...
[ { "msg_contents": "I have created a index\ncreate index leadaddress_phone_idx on\nleadaddress(regexp_replace((phone)::text, '[^0-9]*'::text, ''::text,\n'g'::text));\n\nBut the index is not using.\n\nexplain select * from leadaddress where\nregexp_replace(phone,'[^0-9]*','','g') like '%2159438606';\n ...
[ { "msg_contents": "I have created a index\ncreate index leadaddress_phone_idx on\nleadaddress(regexp_replace((phone)::text, '[^0-9]*'::text, ''::text,\n'g'::text));\n\nBut the index is not using.\n\nexplain select * from leadaddress where\nregexp_replace(phone,'[^0-9]*','','g') like '%2159438606';\n ...
[ { "msg_contents": "Due to an error during an update to the system kernel on a database\nserver backing a web application, we ran for a month (mid-December\nto mid-January) with the WAL files in the pg_xlog subdirectory on\nthe same 40-spindle array as the data -- only the OS was on a\nseparate mirrored pair of ...
[ { "msg_contents": ">From what I've read on the net, these should be very similar,\nand should generate equivalent plans, in such cases:\n\nSELECT DISTINCT x FROM mytable\nSELECT x FROM mytable GROUP BY x\n\nHowever, in my case (postgresql-server-8.1.18-2.el5_4.1),\nthey generated different results with quite di...
[ { "msg_contents": "I've got a very slow query, which I can make faster by doing something\nseemingly trivial. \nThe query has been trouble for years (always slow, sometimes taking hours):\n\n 512,600ms Original, filter on articles.indexed (622 results)\n 7,500ms Remove \"AND articles.indexed\" (726 results, u...
[ { "msg_contents": "Hello all,\nApologies for the long mail.\nI work for a company that is provides solutions mostly on a Java/Oracle \nplatform. Recently we moved on of our products to PostgreSQL. The main \nreason was PostgreSQL's GIS capabilities and the inability of government \ndepartments (especially road/...
[ { "msg_contents": "Can anybody briefly explain me how each postgres process allocate\nmemory for it needs?\nI mean, what is the biggest size of malloc() it may want? How many\nsuch chunks? What is the average size of allocations?\n\nI think that at first it allocates contiguous piece of shared memory\nfor \"sha...
[ { "msg_contents": "Hi,\n\nI am trying to improve delete performance on a database with several\nforeign keys between relations that have 100M or so rows.\n\nUntil now, I have manually disabled the triggers, done the delete, and\nre-enabled the triggers.\n\nThis works, but I have to do that when I am sure no oth...
[ { "msg_contents": "\n\nHi all,\n\ni am trying to move my app from M$sql to PGsql, but i need a bit of help :)\n\n\non M$sql, i had certain tables that was made as follow (sorry pseudo code)\n\ncontab_y\n date\n amt\n uid\n\n\ncontab_yd\n date\n amt\n uid\n\ncontab_ymd\n date\n amt \n uid\n\n\nand so...
[ { "msg_contents": "\nJust a heads up - apparently the more recent Dell RAID controllers will no \nlonger recognise hard discs that weren't sold through Dell.\n\nhttp://www.channelregister.co.uk/2010/02/10/dell_perc_11th_gen_qualified_hdds_only/\n\nAs one of the comments points out, that kind of makes them no lo...
[ { "msg_contents": "Hello guys,\n\n\n I don't know if this is the correct list. Correct me if I'm wrong.\n\nI have a directed graph, or better, a tree in postgresql 8.3. One table are\nthe nodes and another one are the connections. Given any node, I need to get\nall nodes down to it(to the leafs) that have relat...
[ { "msg_contents": "Hannu Krosing wrote:\n \n> Can it be, that each request does at least 1 write op (update\n> session or log something) ?\n \nWell, the web application connects through a login which only has\nSELECT rights; but, in discussing a previous issue we've pretty well\nestablished that it's not unusu...
[ { "msg_contents": "Some informations:\nThe following problem has been detected on\n Postgresql 8.3 and 8.4. on System linux or windows\n Default AutoVacuum daemon working\n One pg_dump every day\nThis happens sometimes and i don't see what can be the cause.\nA manual Vacuum Analyse repair that problem.\n\...
[ { "msg_contents": "I have been trying to track down a performance issue we've been having with a INSERT INTO ... SELECT query run against a partitioned table on postgres. The problem appears to be in the plan building of the query and after some further research I think I have nailed down a simplified example ...
[ { "msg_contents": "Hi,\n\nI have seen some work done about scaling PostgreSQL on SMP machines \nand see that PostgreSQL has been executed on several numbers of cores. \nI have some questions about scaling PostgreSQL on SMP architectures.\n\nSystem Details that I am running PostgreSQL-8.4.0:\nServer: HP Integr...
[ { "msg_contents": "(Apologies if this ends up coming through multiple times - my first attempts seem to have gotten stuck.)\n\nWe recently took the much needed step in moving from 8.1.19 to 8.4.2. We took the downtime opportunity to also massively upgrade our hardware. Overall, this has been the major improveme...
[ { "msg_contents": "Please have a look at the following explain plan:\n\n\nexplain analyze\nselect *\nfrom vtiger_crmentity\ninner JOIN vtiger_users\n ON vtiger_users.id = vtiger_crmentity.smownerid\nwhere vtiger_crmentity.deleted = 0 ;\n\nQUERY\nPLAN\n\n-------------------------------------------------...
[ { "msg_contents": "lionel duboeuf wrote:\n> Kevin Grittner a �crit :\n \n>> I just reread your original email, and I'm not sure I understand\n>> what you meant regarding VACUUM ANALYZE. If you run that right\n>> beforehand, do you still get the slow plan for user 10?\n \n> I confirm by executing manual \"VAC...
[ { "msg_contents": "Reydan Cankur wrote:\n \n> I want to spread out the workload on all cores. But also I want to\n> set the core number; for example first I want to spread out the\n> workload to 32 cores then 64 cores and see the scalability.\n \nPostgreSQL itself won't use more cores than you have active\ncon...
[ { "msg_contents": "Ben Chobot wrote:\n \n> Here is the plan on 8.4.2:\n \n> Here is the very much less compact plan for the same query on\n> 8.1.19:\n \nCould you show the query, along with table definitions (including\nindexes)?\n \n-Kevin\n", "msg_date": "Mon, 15 Feb 2010 09:59:27 -0600", "msg_from":...
[ { "msg_contents": "Good day,\n\nI have a PostgreSQL 8.4 database installed on WinXP x64 with very heavy\nwriting and updating on a partitioned table. Sometimes within one minute,\nthere are tens of file with size=1,048,576kb (such as\nfilenode.1,filenode.2,...filenode.43) created in the database subdirectory\nw...
[ { "msg_contents": "\nGood day!\n\nWe bought a new WinXP x64 Professional, it has 12GB memory. \n\nI installed postgresql-8.4.1-1-windows version on this PC, also installed\nanother .Net application which reads in data from a TCP port and\ninsert/update the database, the data volume is large, with heavy writing ...
[ { "msg_contents": "I am getting seq_scan on vtiger_account. Index is not using.\nCould anyone please tell me what the reason is?\n\n\n explain analyze\nselect *\nfrom vtiger_account\nLEFT JOIN vtiger_account vtiger_account2\n ON vtiger_account.parentid = vtiger_account2.accountid\n\n ...
[ { "msg_contents": "lionel duboeuf wrote:\n \n> I stopped postgresql\n> I started postgresql (and as default autovacuum daemon)\n> I restored the databases (need to restore 4 databases)\n> It seems that after database 1 have been restored, autovacumm\n> started on it and has been stopped while restoring databas...
[ { "msg_contents": "I'm having problems with another one of my queries after moving from 8.1.19 to 8.4.2. On 8.1.19, the plan looked like this:\n\nhttp://wood.silentmedia.com/bench/8119\n\nThat runs pretty well. On 8.4.2, the same query looks like this:\n\nhttp://wood.silentmedia.com/bench/842_bad\n\nIf I turn o...
[ { "msg_contents": "Since getting on 8.4 I've been monitoring things fairly closely.\nI whipped up a quick script to monitor pg_stat_bgwriter and save \ndeltas every minute so I can ensure my bgwriter is beating out the \nbackends for writes (as it is supposed to do).\n\nNow, the odd thing I'm running into is ...
[ { "msg_contents": "LinkedIn\n------------\n\n \nI'd like to add you to my professional network on LinkedIn.\n\n- Michael Clemmons\n\nConfirm that you know Michael Clemmons\nhttps://www.linkedin.com/e/isd/1082803004/E81w7LvD/\n\n\n\n \n------\n(c) 2010, LinkedIn Corporation\n\n\n\nLinkedIn\n\n\n I'd like to...
[ { "msg_contents": "\"Not like\" operation does not use index.\n\nselect * from vtiger_contactscf where lower(cf_1253) not like\nlower('Former%')\n\nI created index on lower(cf_1253).\n\nHow can I ensure index usage in not like operation?\nAnyone please help.\n\n\"Not like\" operation does not use index.\n \nsel...