threads
listlengths
1
275
[ { "msg_contents": "I have a stored proc that potentially inserts hundreds of thousands, potentially millions, of rows (below).\n\nThis stored proc is part of the the sequence of creating an ad campaign and links an ad to documents it should be displayed with.\n\nA few of these stored procs can run concurrently ...
[ { "msg_contents": "Hi. I'm on a 64 Bit CentOS 5 system, quadcore processor, 8GB RAM and\ntons of data storage (1 TB SATAII disks).\n\nThe current SHMMAX and SHMMIN are (commas added for legibility) --\n\nkernel.shmmax = 68,719,476,736\nkernel.shmall = 4,294,967,296\n\nNow, according to my reading in the PG manu...
[ { "msg_contents": "Hi I have 3 tables \npage - revision - pagecontent\n\nCREATE TABLE mediawiki.page\n(\n page_id serial NOT NULL,\n page_namespace smallint NOT NULL,\n page_title text NOT NULL,\n page_restrictions text,\n page_counter bigint NOT NULL DEFAULT 0,\n page_is_redirect smallint NOT NULL DEFAUL...
[ { "msg_contents": "Hi,\n\nI tried with the PostgreSQL 9.0.4 + Hot Standby and running the database\nfrom Fusion IO Drive to understand the PG Performance.\n\nWhile doing so I got the \"*Query failed ERROR: catalog is missing 1\nattribute(s) for relid 172226*\". Any idea on this error? Is that combination\nPG + ...
[ { "msg_contents": "Hi,\n\nOur database has gotten rather large and we are running out of disk space.\nour disks are 15K rpm SAS disks in RAID 10.\n\nWe are going to rent some space on a FibreChannel SAN.\nThat gives us the opportunity to separate the data and the indexes.\nNow i thought it would be best to move...
[ { "msg_contents": "What are the best practices for setting up PG 9.x on Amazon EC2 to get the best performance?\n\n\tThanks in advance, Joel\n\n--------------------------------------------------------------------------\n- for hire: mac osx device driver ninja, kernel extensions and usb drivers\n----------------...
[ { "msg_contents": "Hi,\n\nI'm running into erroneous row estimates when using an array type, and I'm running out of ideas on how to steer postgres into the right direction... I've tried setting statistics to 1000, vacuuming and analyzing over and over, rewriting the query differently... to no avail.\n\nThe tabl...
[ { "msg_contents": "I had a problem with performance engine database, I use the server with the \nfollowing specifications\n\n 1. its storage configuration?\n Storage SCSI 15K RAID 5\n 2. how his network?\n 2 gigabit bonding.\n3. type / behavior of applications that connect to the db?\n Direct ...
[ { "msg_contents": "I referred chapter 14.3 of postgres document version 9.0.\n\nexplicit joins help the planner in planninng & thus improve performance.\nOn what relations are explicit joins to be added??\n\nI am getting data from 10 tables in a view.\nI don't know on which pair of tables I have to add explicit...
[ { "msg_contents": "We have a generated query from our web application which takes far longer to\ncomplete in 9.0.4, than in 8.3.7 (>60sec in 9.0.4 ~10sec in 8.3.7)\n\nThe query plan generated in 9.0, includes a Materialize step which takes the\nbulk of the time for the query. If I disable materialize (by runni...
[ { "msg_contents": "Here is the explain analyze output for when enable_material is 'off' and\ninformation on the postgresql version, settings and server configuration (I\nhad to send a follow up email due the length of email restrictions on the\nmailing list.)\n\n(I apologize for the length of these email messag...
[ { "msg_contents": "i have around 25mio records of data distributed yearly over 9 child \ntables (data.logs_20xx) that inherit from the master table data.logs. \nthe tables are partitioned using the field \"re_timestamp\", which has \nbtree indexes defined on all tables.\n\nthe query \"SELECT * FROM data.logs OR...
[ { "msg_contents": "Dear list,\n\nI have a table with a few million rows and this index:\nCREATE INDEX bond_item_common_x7 ON bond_item_common \n((lower(original_filename)));\n\nThere are about 2M rows on bonddump and 4M rows on bond90.\n\nbonddump is on a 8MB RAM machine, bond90 is on a 72MB RAM machine.\n\nThe...
[ { "msg_contents": "I've got a fun problem.\n\nMy employer just purchased some new db servers that are very large. The\nspecs on them are:\n\n4 Intel X7550 CPU's (32 physical cores, HT turned off)\n1 TB Ram\n1.3 TB Fusion IO (2 1.3 TB Fusion IO Duo cards in a raid 10)\n3TB Sas Array (48 15K 146GB spindles)\n\nT...
[ { "msg_contents": "I'm looking for a good ready-to-run broad spectrum (tests cpu bound,\ni/o bound, various cases, various sizes) benchmark. I tried dbt5 and\ngot it compiled after some effort but it immediately fails upon\nrunning so I punted. Anybody have any ideas where I could look?\n\nmerlin\n", "msg...
[ { "msg_contents": "I have a multi-threaded app. It uses ~22 threads to query Postgres.\n\nPostgres won't use more than 1 CPU core. The 22-threaded app only has 3% CPU\nutilization because it's mostly waiting on Postgres.\n\nHere's the details:\n\nThe app has a \"main\" thread that reads table A's 11,000,000 row...
[ { "msg_contents": "I have 8-core server, I wanted to ask whether a query can be divided for \nmultiple processors or cores, if it could be what to do in postgresql\n\nThanks\n\nI have 8-core server, I wanted to ask whether a query can be divided for multiple processors or cores, if it could be what to do in pos...
[ { "msg_contents": "I am using Postgresql 8.2.13 and I found that most of the commits and insert\nor update statements are taking more than 4s in the db and the app\nperformance is slow for that.\nMy db settings are as follows;\nbgwriter_all_maxpages | 300 |\n bgwriter_all_percent | 15 |\n bgwriter_d...
[ { "msg_contents": "AMD Opteron(tm) Processor 4174 HE vs Intel(R) Xeon(R) CPU E5345 @ 2.33GHz\n\nI'm wondering if there is a performance difference running postgres on\nfedora on AMD vs Intel (the 2 listed above).\n\nI have an 8 way Intel Xeon box and a 12way AMD box and was thinking\nabout migrating to t...
[ { "msg_contents": "\nWhile reading about NoSQL,\n\n> MongoDB let's you store and search JSON objects.In that case, you don't \n> need to have the same \"columns\" in each \"row\"\n\nThe following ensued. Isn't it cute ?\n\nCREATE TABLE mongo ( id SERIAL PRIMARY KEY, obj hstore NOT NULL );\nINSERT INTO mongo (o...
[ { "msg_contents": "\n Hello everyone,\n\n I have the following scenario:\n There's a web service that updates some information in two tables,\nevery 5 minutes.\n In order to do this it will issue a select on the tables, get some\ndata, think about it, and then update it if necessary.\n\n Sometimes - about ...
[ { "msg_contents": "Hi,\n\nWe have some indexes that don't seem to be used at all.\nI'd like to know since when they have not been used.\nThat is, the time when postgres started counting to reach the number that is\nin pg_stat_user_indexes.idx_scan\n\nIs there a way to retrieve that from the database ?\n\nCheers...
[ { "msg_contents": "I've got a stored proc that constructs some aggregation queries as strings\nand then executes them. I'd like to be able to increase work_mem before\nrunning those queries. If I set a new value for work_mem within the stored\nproc prior to executing my query string, will that actually have a...
[ { "msg_contents": "Hi everyone\n\nWe have recently started to port an application from Oracle to PostgreSQL.\nSo far, we are amazed with how great most things work.\n\nHowever, we have run into performance problems in one type of query which\nis quite common in our application. We have created a (simplified)\nr...
[ { "msg_contents": "Hi:\n\nI installed PostgreSQL9.0 from EnterpriseDB with“one click installer” in\nwindows 7 & 32bit.\n\nand use microsoft visual studio 2010 c++.\n\nI added the libpq.lib to the link property of the project, also included the\nlib folder and path.\n\nSuccessfully compiled .c and .cpp file aft...
[ { "msg_contents": "Hi all:\n\nI am adding pgiosim to our testing for new database hardware and I am\nseeing something I don't quite get and I think it's because I am using\npgiosim incorrectly.\n\nSpecs:\n\n OS: centos 5.5 kernel: 2.6.18-194.32.1.el5\n memory: 96GB\n cpu: 2x Intel(R) Xeon(R) X5690 @ 3.47GHz...
[ { "msg_contents": "Hi,\n\nI am conducting a benchmark to compare KVP table vs. hstore and got\nbad hstore performance results when the no. of records is greater than\nabout 500'000.\n\nCREATE TABLE kvp ( id SERIAL PRIMARY KEY, key text NOT NULL, value text );\n-- with index on key\nCREATE TABLE myhstore ( id SE...
[ { "msg_contents": "Hi, I'm new to postgres and I have the next question. \n\nI have a\nphp program that makes 100000 inserts in my database.\n autoincrement\nnumbers inserted into a table with 5 columns.\n The script takes about 4\nminutes from a webserver\n Is it a normal time? \n\nHow could reduce this\ntime ...
[ { "msg_contents": "Dear all,\nI have a query on 3 tables in a database as :-\n\n_*Explain Analyze Output :-*_\n\nexplain anayze select c.clause, s.subject ,s.object , s.verb, \ns.subject_type , s.object_type ,s.doc_id ,s.svo_id from clause2 c, svo2 \ns ,page_content p where c.clause_id=s.clause_id and s.doc_id=...
[ { "msg_contents": "I am using Postgres 8.3 and I have an issue very closely related to the one\ndescribed here:\nhttp://archives.postgresql.org/pgsql-general/2005-06/msg00488.php\n\nBasically, I have a VIEW which is a UNION ALL of two tables but when I do a\nselect on the view using a LIMIT, it scans the entire...
[ { "msg_contents": "Hi,\n\nI have a quite complex, performance sensitive query in a system with a\nfew (7) joins:\nselect .... from t1 left join t2 .... WHERE id IN (select ....)\n\nFor this query the planner evaluates the IN with a hash semi join last,\nand all the joining is done by hash joins for all rows con...
[ { "msg_contents": "Hi, guys.\n\n\nI have following environment configuration\n\n- Postgres 8.4.7 with following postresql.conf settings modified:\n\n listen_addresses = '*'\n\n max_connections = 100\n\n\n shared_buffers = 2048MB\n\n max_prepared_transactions = 100\n\n wal_buffers = 1...
[ { "msg_contents": "Hello,\n\nHow fillfactor impact performance of query?\n\nI have two cases,\nOne is a operational table, for each insert it have an update, this table\nmust have aprox. 1.000 insert per second and 1.000 update per second (same\ninserted row)\nIs necessary to change the fill factor?\n\n\nThe ot...
[ { "msg_contents": "I am using Postgres 8.3 and I have an issue very closely related to the one\ndescribed here:\nhttp://archives.postgresql.org/pgsql-general/2005-06/msg00488.php\n\nBasically, I have a VIEW which is a UNION ALL of two tables but when I do a\nselect on the view using a LIMIT, it scans the entire...
[ { "msg_contents": "Hi - Linux newbie here, and more of a developer than pgsql SysAdmin...\n\nWhen trying to follow some performance tuning suggestions by Robert\nHaas here:\nhttp://www.linux.com/learn/tutorials/394523-configuring-postgresql-for-pretty-good-performance\n\nThis is with PgSql 9.0.3 running on the ...
[ { "msg_contents": "I am using Postgres 8.3.3 and I have a VIEW which is a UNION ALL of two\ntables but when I do a select on the view using a LIMIT, it scans the entire\ntables and takes significantly longer than writing out the query with the\nLIMITs in the sub-queries themselves. Is there a solution to get th...
[ { "msg_contents": "Am I reading this right in that the sort is taking almost 8 seconds?\r\n\r\n\"GroupAggregate (cost=95808.09..95808.14 rows=1 width=142) (actual time=14186.999..14694.524 rows=315635 loops=1)\"\r\n\" Output: sq.tag, sq.instrument, s.d1, s.d2, s.d3, s.d4, s.d5, s.d6, s.d7, s.d8, s.d9, s.d10, ...
[ { "msg_contents": "\"Strange, John W\" wrote:\n \n> Am I reading this right in that the sort is taking almost 8\n> seconds?\n \n> -> Sort ... actual time=14186.977..14287.068\n \n> -> Hash Join ... actual time=6000.728..12037.492\n \nThe run time of the sort is the difference between 12037 ms and\n14287 ms (...
[ { "msg_contents": "Hi,\nI am using contrib/cube code. I am building GIST index on cube data type\nthen it leads to a very large size of log file (nearly 220 MB for only 12k\nrecords).\nWhile creating index on geometry field with gist gives 1KB size of log file\nfor 17 lakh records.\n\nCan someone please tell me...
[ { "msg_contents": "I have a strange situation.\nI have a table of detail with millones of rows and a table of items with\nthousands of rows\n\nWhen I do..\n\nselect count(*) from wiz_application_response where application_item_id in\n(select id from wiz_application_item where application_id=110)\n\nThis query N...
[ { "msg_contents": "Hi all:\n\nNot sure if this is a performance question or a generic admin\nquestion. I have the following script running on a host different from\nthe database to use pgbench to test the database:\n\n pgbench -i (inital mode)\n pgsql vacuum analyze; (and some other code to dump table sizes)\...
[ { "msg_contents": "Hi,\n\nIn my DB, there is a large table containing messages and one that contains\nmessage boxes.\nMessages are assigned to boxes via a child parent link m->b.\nIn order to obtain the last message for a specific box, I use the following\nSQL:\n\nSELECT m1.id FROM message m1 LEFT JOIN message ...
[ { "msg_contents": "\n\nTomas Vondra <tv@fuzzy.cz> wrote:\n\n>Dne 24.5.2011 07:24, Terry Schmitt napsal(a):\n>> As near as I can tell from your test configuration description, you have\n>> JMeter --> J2EE --> Postgres.\n>> Have you ruled out the J2EE server as the problem? This problem may not\n>> be the databas...
[ { "msg_contents": "Does anyone here have any bad experiences with the RAID card in subject ?\nThis is in an IBM server, with 2.5\" 10k drives.\n\nBut we seem to observe its poor performance in other configurations as\nwell (with different drives, different settings) in comparison with -\nsay, what dell provides...
[ { "msg_contents": "Hi, everyone. I'm working on a project that's using PostgreSQL 8.3, \nthat requires me to translate strings of octal digits into strings of \ncharacters -- so '141142143' should become 'abc', although the database \ncolumn containing this data (both before and after) is a bytea.\n\n\nWhile t...
[ { "msg_contents": "Dkloskxe\n\nSteve Crawford <scrawford@pinpointresearch.com> wrote:\n\n>On 05/25/2011 11:45 AM, Reuven M. Lerner wrote:\n>> Hi, Alex. You wrote:\n>>> Have you tried something like:\n>>> SELECT encode(regexp_replace('141142143', '(\\d{3})', '\\\\\\1',\n>>> 'g')::bytea, 'escape');\n>> Hmm, for...
[ { "msg_contents": "Hello performers, I've long been unhappy with the standard advice\ngiven for setting shared buffers. This includes the stupendously\nvague comments in the standard documentation, which suggest certain\nsettings in order to get 'good performance'. Performance of what?\nConnection negotiation...
[ { "msg_contents": "Working on some optimization as well as finally getting off my\nbackside and moving us to 64bit (32gb+memory).\n\nI was reading and at some point it appears on freeBSD the Postgres\nblock size was upped to 16kb, from 8kb. And on my fedora systems I\nbelieve the default build is 8kb.\n\nWhen ...
[ { "msg_contents": "Hi.\n\nFirst extremely thanks for your works about postgresql .\n\nI wonder that after executing 'vaccumdb -z' some other process can not\nread their own msg queue during 2 ~ 3 minuts.\n\nvaccum executed every hour. and The processes have not any relations between\npostgreql.\n\nIs it possi...
[ { "msg_contents": "Hi All\n\tMy database uses joined table inheritance and my server version is 9.0\n\nVersion string\tPostgreSQL 9.0rc1 on x86_64-pc-linux-gnu, compiled by GCC x86_64-pc-linux-gnu-gcc (Gentoo 4.4.4-r1 p1.1, pie-0.4.5) 4.4.4, 64-bit\t\n\nI have about 120,000 records in the table that everything ...
[ { "msg_contents": "Hi All,\n\nI have created partition on table Round_Action , which has 3 child partition\ntables.\n\n\nWhen I am firing a simple select query with limit on parent table it is\ntaking huge time to execute. But when I am firing this query directly on\nchild table it is taking few milliseconds.\n...
[ { "msg_contents": "On Wed, May 25, 2011 at 4:41 PM, Greg Smith <greg@2ndquadrant.com> wrote:\n> On 05/23/2011 06:16 PM, John Rouillard wrote:\n>>\n>> OS: centos 5.5\n>> Filesystem: data - ext4 (note 4 not 3); 6.6T formatted\n>>             wal  - ext4; 1.5T formatted\n>> Raid: data - level 10, 8 disk wd2003; co...
[ { "msg_contents": "Hi All;\n\nWe have a table with approx 200 columns. about a dozen columns are text \ndata types and the rest are a mix of integers , bigint's and double \nprecision types.\n\nThe table has about 25million rows.\n\n\nThe app wants to run a query like this:\n\nselect count(pri_num) from max_xtr...
[ { "msg_contents": "Hi. I'm interested in understanding the differences between\nCLUSTERing a table and making a dedicated one.\n\nWe have a table with about 1 million records. On a given day, only\nabout 1% of them are of interest. That 1% changes every day (it's\nWHERE active_date = today), and so we index ...
[ { "msg_contents": "A query I has spends a long time on Hash Joins (and Hash Left Joins).\nI have a few questions:\n\n1. When does Postgres decide to do a Hash Join, over another type of Join?\n2. Do Hash Joins normally perform poorly? What can I do to speed them up?\n3. What can I do to enable Postgres to use ...
[ { "msg_contents": "First off, this is posted to the wrong list -- this list is for\ndiscussion of development of the PostgreSQL product. There is a\nlist for performance questions where this belongs:\npgsql-performance@postgresql.org. I'm moving this to the\nperformance list with a blind copy to the -hackers ...
[ { "msg_contents": "I originally posted this on admin, but it was suggested to post it to\nperformance so here goes -\n\nI am in the process of implementing cascade on delete constraints\nretroactively on rather large tables so I can cleanly remove deprecated\ndata. The problem is recreating some foreign key co...
[ { "msg_contents": "Hi all,\n\nI am trying to speed up a query on a DB I inherited and I am falling\nflat on my face .\n\nI changed a query from NOT IN to use NOT EXISTS and my query time went\nfrom 19000ms to several hours (~50000000 ms). this shocked me so much\nI pretty much had to post. This seems like a co...
[ { "msg_contents": "All,\n\nJust got this simple case off IRC today:\n\n8.4.4\nThis plan completes in 100ms:\n\nold_prod=# explain analyze select email from u_contact where id not in\n(select contact_id from u_user);\n QUERY PLAN\n\n----------------------------...
[ { "msg_contents": "Hi friend I Want to ask, is there any solutions or tools for monitoring memory \nperformance in postgre automatically, for example, will send allert if \nPeformance memory has exceeded 90%\n\nthank you for your help\nHi friend I Want to ask, is there any solutions or tools for monitoring memo...
[ { "msg_contents": "Version: PostgreSQL 8.3.5 (mammoth replicator)\n\nSchema:\n\nCREATE TABLE tdiag (\n diag_id integer DEFAULT nextval('diag_id_seq'::text),\n create_time\t\ttimestamp with time zone default now(),\t/* time this record \nwas created */\n diag_time timestamp with ti...
[ { "msg_contents": "Version: PostgreSQL 8.3.5 (mammoth replicator)\n\nSchema:\n\nCREATE TABLE tdiag (\n diag_id integer DEFAULT nextval('diag_id_seq'::text),\n create_time\t\ttimestamp with time zone default now(),\t/* time this record \nwas created */\n diag_time timestamp with ti...
[ { "msg_contents": "Hi All,\nI'm having issues with a set of fairly related queries in my\napplication.  EXPLAIN ANALYZE is showing them all to be getting stuck\nperforming roughly the same operation:\n -> Bitmap Heap Scan on logparser_entry\n(cost=4119.06..21520.55 rows=68787 width=8) (actual\nti...
[ { "msg_contents": "We have a postgresql 8.3.8 DB which consumes 100% of the CPU whenever we run\nany query. We got vmstat output Machine details are below:\n\n# /usr/bin/lscpu \nArchitecture: x86_64 \nCPU(s): 2 \nThread(s) per core: 1 \nCore(s) per socket: 1 \nCPU socket(s): ...
[ { "msg_contents": "We are thiiiiiis close to moving our datawarehouse from Oracle to\nPostgres. This query is identical on both systems, but runs much, much\nfaster on Oracle. Our Postgres host has far superior hardware and\ntuning parameters have been set via pgtune. Most everything else runs\nfaster in Pos...
[ { "msg_contents": "Hi,\n\nWe are running postgresql database server on itanium box.\n\nDatabase - Postgresql 8.3.9\nOS - SUSE Linux 11 SP 3\nServer - Itanium (ia64)\n\nWe are trying to enable user login / logout information in postgresql log\nfile, to do this we enabled the following in postgresql.conf,\n\nlog_...
[ { "msg_contents": "Hi,\n\nWe have installed postgresql on itanium server (HP rx7640), only on this\nserver we are getting the following error in /var/log/messages and also the\npostgres performance is very slow.\n\nError:\n\n*Jun 9 04:45:42 kernel: postmaster(31965): floating-point assist fault at\nip 40000000...
[ { "msg_contents": "Hi, everyone. Some people with whom I'm working, and who have an 8.3 \nsystem running under Windows, asked me to look into their performance \nissues. They have a 1.5 GB database with a few dozen tables, and \n500,000 records at most. They said that their system has been running \nfor a fe...
[ { "msg_contents": "I have a function in pgsql language, this function do some select to some\ntables for verify some conditions and then do one insert to a table with NO\nindex. Update are not performed in the function\n\nWhen 1 client connected postgres do 180 execution per second\nWith 2 clients connected pos...
[ { "msg_contents": "Hi,\n\nis there a way to change the sample size for statistics (that analyze\ngathers)?\nIt is said to be 10%. i would like to raise that, because we are getting bas\nestimations for n_distinct.\n\nCheers,\n\nWBL\n\n-- \n\"Patriotism is the conviction that your country is superior to all othe...
[ { "msg_contents": "Hi performance gurus,\n\nOne of the reasons I prefer PostgreSQL is because it does not implement\nhints. However I have a situation which seems like I am forced to use a\nhint-like statement:\n\nI have 2 tables in PostgreSQL 9.0:\n\ntcpsessions - about 4 Mrows in lab, hundreds of Mrows in pro...
[ { "msg_contents": "Hi everybody,\n\nI am running PostgreSQL 9.0 which performs well in most of the cases. I\nwould skip all the parameters if these are not necessary.\n\nI need to frequently (every min) get the max value of the primary key column\non some tables, like this case which works perfectly well:\n\nex...
[ { "msg_contents": "Hi,\n\nI am evaluating hardware for a new PostgreSQL server. For reasons\nconcerning power consumption and available space it should not have\nmore than 4 disks (in a 1U case), if possible. Now, I am not sure what\ndisks to use and how to layout them to get the best performance.\n\nThe cheape...
[ { "msg_contents": "Hello, postgresql guru's\n\nWhen developing ticket export mechanism for our ticketing system I \nthought the wise thing would be to generate the result (XML file) in \nstored function. This worked fine for small datasets, but for the larger \nones I see it takes much longer to generate the do...
[ { "msg_contents": "Load testing of postgresql 8.4 for OLTP application \nsuitability showed that throughput of the \ndatabase significantly degraded over time from thousands of write \ntransactions per second to almost zero. Write transactions are in given\n\ncase insert/update/delete database transactions. The...
[ { "msg_contents": "Greetings,\n\nI have been thinking a lot about pgsql performance when it is dealing\nwith tables with lots of rows on one table (several millions, maybe\nthousands of millions). Say, the Large Object use case:\n\none table has large objects (have a pointer to one object).\nThe large object t...
[ { "msg_contents": "Hi,\n\nWe did a benchmark comparing a Key-Value-Pairs stored as EAV db schema\nversus hstore.\nThe results are promising in favor of hstore but there are some\nquestion which remain.\n\n1. Obviously the '@>' has to be used in order to let use the GiST index.\nWhy is the '->' operator not supp...
[ { "msg_contents": "Hi all!\nPlease, just look at these query explanations and try to explain why\nplanner does so (PostgreSQL 8.4).\nThere is an index on table sms (number, timestamp).\n\nAnd three fast & simple queries:\n=# explain analyze select max(timestamp) from sms where number='5502712';\n---------------...
[ { "msg_contents": "hai friend i have problem with performance database in postgre, how to know \nslowly query in postgre,\ni want kill or stop query to make postgre slowly, on the server status on the \nadmin pg, sometimes the query and how long the query runs do not appear\n\nThanks for solution\n\nhai friend ...
[ { "msg_contents": "I have a tsvector column docvector and a gin index on it\ndocmeta1_docvector_idx\n\nI have a simple query \"select * from docmeta1 where docvector @@\nplainto_tsquery('english', 'free');\" \n\nI find that the planner chooses a sequential scan of the table even when\nthe index performs orders ...
[ { "msg_contents": "PostgreSQL 8.4.8 on CentOS 5.6, x86_64. Default settings except work_mem = 1MB.\n\nNOTE: I am using partitioned tables here, and was querying the\n'master' table. Perhaps is this a Known Issue.\n\nI ran a query recently where the result was very large. The outer-most\npart of the query looked...
[ { "msg_contents": "Compañeros buenas noches:\n\nExiste una sentencia SQL \"fuertemente acoplada\" al interios del Sistema Gestor \nde \nBases de Datos Postgresql que me permita \"trasponer\" tablas, \nalgo similar al contrib cross table de tablefunc.\n\nEstoy intentando con una sentencia como:\n\nSELECT id, na...
[ { "msg_contents": "I'm looking for advice from the I/O gurus who have been in the SSD game \nfor a while now.\n\nI understand that the majority of consumer grade SSD drives lack the \nrequired capacitor to complete a write on a sudden power loss. But, \nwhat about pairing up with a hardware controller with BBU...
[ { "msg_contents": "Hello All..\nThis is my first PostgreSql database. It has 8 tables and 4 tables are very\nhuge each with 6million records.\nI have a simple view on this tables and it is taking more than 3hrs to\nreturn the results.\nCan someone help me the way to improve the db return the results in a faster...
[ { "msg_contents": "Hi list,\n\nI use Postgres 9.0.4.\n\nI have some tables with bitmask integers. Set bits are the interesting \nones. Usually they are sparse.\n\n-- Many rows & columns\nCREATE TABLE a_table\n(\n objectid INTEGER PRIMARY KEY NOT NULL\n,misc_bits INTEGER DEFAU...
[ { "msg_contents": "Hello\n\nI am attempting to run an update statement that copies two fields from \none table to another:\n\n\nUPDATE\n table_A\nSET\n(\n field_1\n, field_2\n) = (\ntable_B.field_1\n, table_B.field_2\n)\nFROM\ntable_B\nWHERE\ntable_B.id = table_A.id\n;\n\n\nTable \"table_B\" contains almost...
[ { "msg_contents": "Hi,\n\nHas anyone measured the cost of creating empty WAL segments while the\ndatabase is running? \n\nActually, when is the new file created? Just after one segment is filled\nup, or some time before then? What happens during WAL segment creation?\nIf there are pending transactions to be com...
[ { "msg_contents": "Hi everyone,\n\nI'm having trouble getting rid of a sequential scan on a table with roughly\n120k entries it. Creation of an index on that particular column which\ntriggers the sequential scan doesn't do anything, VACUUM and ANALYZE has\nbeen done on the table.\n\nThe table in question has th...
[ { "msg_contents": "Hi All,\n\nI am facing some performance issue with insert into some table.\n\nI am using postgres 8.4.x\n\nTable is having 3 before insert trigger and one after insert trigger.\n\nWith all triggers enable it is inserting only 4-5 record per second.\n\nBut if I disable after insert trigger it ...
[ { "msg_contents": "Hello,\n\nI have a handful of queries that are performing very slowly.  I realize that I will be hitting hardware limits at some point, but want to make sure Ive squeezed out every bit of performance I can before calling it quits.\n\nOur database is collecting traffic data at the rate of abou...
[ { "msg_contents": "Hi all,\nI am running PostgreSQL 9.0 on a number of nodes in an application level\ncluster (there is different data on different machines). Currently a\nPL/pgSQL function generates automatically aggregation queries like the\nfollowing:\n\n(select * from appqosfe.F_total_utilization(1306918800...
[ { "msg_contents": "Here's the setup:\n\nI'm cross joining two dimensions before left outer joining to a fact table\nso that I can throw a default value into the resultset wherever a value is\nmissing from the fact table. I have a time dimension and another dimension.\n I want the cross join to only cross a sub...
[ { "msg_contents": "All:\n\nWas curious if there was some sort of Open Source version of Infinite Cache,\nand/or a memcache layer that can be \"dropped\" in front of PostgreSQL without\napplication changes (which seems to be the \"key\" piece of Infinite Cache),\nor is this something that EnterpriseDB owns and y...
[ { "msg_contents": "Dear all, \nHow can retrieve total query run-time  when i run any query with out using explain \nfor example when i run any query  such  as\nselect * from  tablel1;\nTotal query runtime: 443 ms.\n i want a function can return \"runtime: 443 ms\" with out using explain \ni want this command to...
[ { "msg_contents": "I am trying to perform a bulkload of 1 crore rows using copy of row width\n1000, but the transaction logs keeps getting huge space, is there a easy way\nto do it and avoid the transaction logs\n\nI am trying to perform a bulkload of 1 crore rows using copy of row width 1000, but the transacti...
[ { "msg_contents": "I've just copied a database from one linux machine to another.\n\n\"Fast\" machine is CentOS 5.5, running postgres 9.0.0 64 bit\n\n \n\n\"Slow\" machine is Red Hat 5.5 running postgres 9.0.2 64 bit.\n\n \n\nHere's the query:\n\nexplain analyze select sentenceid from sentences where sentenceid...
[ { "msg_contents": "I have a query that uses ORDER BY and LIMIT to get a set of image data \nrows that match a given tag. When both ORDER BY and LIMIT are included \nfor some reason the planner chooses a very slow query plan. Dropping \none or the other results in a much faster query going from 4+ seconds -> \...
[ { "msg_contents": "I have a query which seems to be taking an extraordinarily long time \n(many minutes, at least) when seemingly equivalent queries have \ndifferent plans and execute in seconds. naturally, I'd like to know why.\n\nVersion is Postgresql 8.4.8. The table, \"t\", is\n\n Column | Type | Modifi...
[ { "msg_contents": "Hi,\n\nI have a delete query taking 7.2G of ram (and counting) but I do not\nunderstant why so much memory is necessary. The server has 12G, and\nI'm afraid it'll go into swap. Using postgres 8.3.14.\n\nI'm purging some old data from table t1, which should cascade-delete\nreferencing rows in ...
[ { "msg_contents": "Is there any guidelines to sizing work_mem, shared_bufferes and other\nconfiguration parameters etc., with regards to very large records? I\nhave a table that has a bytea column and I am told that some of these\ncolumns contain over 400MB of data. I am having a problem on several\nservers r...