threads listlengths 1 275 |
|---|
[
{
"msg_contents": "BEGIN;\n SET LOCAL enable_seqscan = off;\n SELECT id, team_id, sum(work_units) AS work_units\n INTO TEMP email_contrib_summary\n FROM email_contrib\n WHERE project_id = :ProjectID\n GROUP by id, team_id\n ;\nCOMMIT;\n\ninserts 29000 rows...\n\nUPDATE email... |
[
{
"msg_contents": "Hello,\n\n I have a database that contains a large amount of Large Objects \n(>500MB). I am using this database to store images for an e-commerce \nwebsite, so I have a simple accessor script written in perl to dump out \na blob based on a virtual 'path' stored in a table (and associated wit... |
[
{
"msg_contents": "Somebody could explain me why this query...\n\n\t SELECT *\n\t FROM articulos,eans\n\t WHERE articulos.id_iinterno=eans.id_iinterno\n\t AND eans.id_iean=345\n\nis slower than this one? (the difference is the quotes around the\nnumber....)\n\n\t SELECT *\n\t FROM articulos,eans\n\t WHERE artic... |
[
{
"msg_contents": "\nShridhar Daithankar said:\n>\n> In second case, postgresql typecasted it correctly. Even\n> eans.id_iean=345::int8 would have worked the same way. By default\n> postgresql\n> treats a number as int4 while comparing and integer and float8 for a real\n> numbe. I discovered that yesterday.\n>... |
[
{
"msg_contents": "select id into temp NewRetires from stats_participant where retire_to>=1\nAND retire_date = (SELECT last_date FROM Project_statsrun WHERE\nproject_id = :ProjectID);\n\nresults in a table with 5 values...\n\nexplain analyze delete from email_rank where project_id=25 and id in\n(select id from ... |
[
{
"msg_contents": "\n\nHi Can anyone tell if the case below is an acceptable\nperformance ?\n\nI have a query that returns data and creates a table\nin 3 mins approx. This query is optimised and uses appropriate\nindexes for the NOT EXISTS part.\n\nCREATE TABLE t_a as SELECT \nemail,country_code,city,title1,fn... |
[
{
"msg_contents": "Like some other recent messages, this one is about getting postgresql\nto use an index that it seems it should clearly use. (But this one has\nnothing to do with count(*)).\n\nHere is my table:\n\n Column | Type | Modifiers\n--------------+-----------------------... |
[
{
"msg_contents": "\n\nIs printing timeofday() at various points a good idea\nof profiling plpgsql functions?\n\nalso is anything wrong with following fragment ?\nRAISE INFO '' % , message here ... '' , timeofday() ;\n\n\nregds\nmallah.\n\n-- \nRajesh Kumar Mallah,\nProject Manager (Development)\nInfocom Networ... |
[
{
"msg_contents": "Dear Gurus,\n\nA nasty query and its EXPLAINs are here. Read on at your own risk :)\n\nABSTRACT:\n\nSearch for the strings \"looping index scan\" and \"loops=2310\" in this\nmessage.\n\nDETAILS:\n\nYesteray, I spent two hours to optimize a view in postgresql 7.2.1. My\nproblem was that one of... |
[
{
"msg_contents": "I access Postgresql through the ODBC driver, and always only read small\nrecordsets (never updating them) with forward cursors.\n\nThe following options are defined in ADO with which I can create a\nrecordset with:\n\nCursor types:\nadOpenForwardOnly\t\t(what I currently use)\nadOpenKeyset\na... |
[
{
"msg_contents": "I'm doing something where I just need to know if we have more than 100\nrows in a table. Not wanting to scan the whole table, I thought I'd get\ncute...\n\nexplain select count(*)\n FROM (SELECT * FROM email_rank WHERE project_id = :ProjectID LIMIT 100) AS t1;\n ... |
[
{
"msg_contents": "Hi all,\n\nI have a fairly large table with a char(20) field in it which I search on\nquite a bit. The problem is that I tend to do a lot of \n\"...where field like '%-d%'\" type searches on this field.\n\nIs there any to speed up this type of search?\n\nTIA,\n\nMike Diehl.\n\n",
"msg_da... |
[
{
"msg_contents": "Jeffrey,\n\nThe best thing you can do is to have the wildcard % as\nlate as possible in your search condition.\nSo do like 'd%' instead of like '%d%' if you can.\n\nRegards,\nNikolaus\n\n\nOn Wed, 30 Apr 2003 10:34:40 -0600, \"Diehl, Jeffrey\"\nwrote:\n\n> \n> Hi all,\n> \n> I have a fairly l... |
[
{
"msg_contents": "\tIs there some way to give some postgres backends higher priority. \nHence on a very busy server \"important\" queries get done faster than less \npriority that unimportant queries. \n\tI don't think this would be too difficult to do as certainly on \nLinux the process could just be reniced ... |
[
{
"msg_contents": "I have a server on a standard pc right now.\nPIII 700, 1Gig ram (SD), 40 Gig IDE, RedHat 8.0, PostgreSQL 7.3.1\n\nThe database has 3 tables that just broke 10 million tuples (yeah, i think\nim entering in to the world of real databases ;-)\nIts primarly bulk (copy) inserts and queries, rarely... |
[
{
"msg_contents": "I was woundering where could I find a nice large dataset. Perhaps 50\nthousand records or more \n-- \nAntoine <asolomon15@nyc.rr.com>\n\n",
"msg_date": "03 May 2003 01:52:41 -0400",
"msg_from": "Antoine <asolomon15@nyc.rr.com>",
"msg_from_op": true,
"msg_subject": "looking fo... |
[
{
"msg_contents": "I have been looking through the archives but can't find anything on this.\n\nDoes the use of WHERE field NOT IN ('A','B' etc) prevent the use of an \nindex?\nWould changing the query to WHERE field <> 'A' and field <> 'B' etc help?\n\nThe query only involves one table, and this is the only f... |
[
{
"msg_contents": "I am running my own database server but I don't have root privilege (and \nno hope of getting it.)\n\nI only have 3 tables, with rowcounts of 3000, 48000 and 2 million.\nI don't think this is that many rows but most things take a long time to \nrun. There are a lot of indexes on each table a... |
[
{
"msg_contents": "Here is the EXPLAIN output from the two queries. The first is the one \nthat uses WHERE field NOT IN ( 'a','b' etc ). The second is the (much \nfaster) one \nthat uses WHERE NOT (field = 'a' and field = 'b' etc).\n\nI don't understand why the query planner thinks there are only 38055 rows \... |
[
{
"msg_contents": "Folks,\n\nI have a common query on a production database that's running a little too \nslow (3-6 seconds). I can currently drop the time to 0.8 seconds by \nsetting enable_seqscan = false; the main reason is the planner poorly \ndeciding to use a seq scan for the hash join between \"event... |
[
{
"msg_contents": "Hello all!\n\nOn PostgreSQL V7.3.2 on TRU64 I have a table\nand applied indices for that table.\nBut on a simple query the indices are not used by the optimizer.\n(An sequential scan is used which takes a lot of time)\nI have done\nVACUUM and VACUUM analyze\nbut without any change to the opti... |
[
{
"msg_contents": "Hi,\n\nthis is in continuation from the previous\nhttp://archives.postgresql.org/pgsql-performance/2003-05/msg00003.php\nthread.\n\nSummary:\n\nOn a table i have this situation: on the queries i do, the best plan is \nused only if NO statistics\nare produced (via ANALYZE).\nOnce i run [VACUUM... |
[
{
"msg_contents": "Folks,\n\nAn area in which postgresql planner & indexing could be improved have occurred \nto me over the last week. I'd like to share this ideas with you in case it \nis worthy of the todo list.\n\nPlease excuse me if this issue is already dealt with in CVS; I've been unable \nto keep up ... |
[
{
"msg_contents": "Hello all!\n\nOn PostgreSQL V7.3.2 on TRU64 I recognized the following phenomena\nthat a SELECT using a difference of a timestamp and an interval\nin the WHERE clause does not use the index\nbut using a timestamp without a difference does use the index.\nThe semantic of both SELECT's is equal... |
[
{
"msg_contents": "Hi !\n\nI have a database on PostgreSQL 7.2.1 and I have performance's problems with\nsome queries.\nI'm debbuging the query below:\n\nSelect count(*) from blcar\nwhere manide = 3811 and blide = 58090 and bcalupcod = 'MVDUY' and bcalopcod\n= 'LOCAL' and bcapag <> 'P';\n\n From the command pro... |
[
{
"msg_contents": "Achilleus Mantzios kirjutas K, 07.05.2003 kell 19:33:\n> Hi, few days ago, i posted some really wierd (at least to me)\n> situation (maybe a potentian bug) to the performance and bugs list\n> and to some core hacker(s) privately as well,\n> and i got no response.\n> Moreover i asked for some ... |
[
{
"msg_contents": "Ok, I have two tables (Postgresql 7.3.2 on Debian):\n\n Table \"public.zip\"\n Column | Type | Modifiers\n------------+-----------------------+-----------\n zip | character varying(5) |\n city | character varying(25) |\n county | character ... |
[
{
"msg_contents": "I'm not sure if this a performance question or a sql question really, but\nsince my primarily peeve here is performance, here goes:\n\nI'm trying to write a query which takes the output of a join and shows me\nonly what the items that are in the main join but not in the subselect of\njust one... |
[
{
"msg_contents": "Patrick,\n\nI don't think that wouldn't quite work unfortunately, as I'm actually trying\nto filter them out based upon the values in data1 and data2. I'm using the\ndata in set 2 (data1,data2 from events where type=10) to remove rows from\nset 1 (join between events and tracking table) wher... |
[
{
"msg_contents": "I hope this hasn't been answered before, I've looked at the docs here:\n http://www.postgresql.org/docs/view.php?version=7.3&idoc=1&file=index.html\n\nAnyway, I've found a (bug|feature|standard?) with type casting and index usage.\n\nI've got a table with a column that's a timestamp with tim... |
[
{
"msg_contents": "I have realtime data flowing at a rate of 500, 512 byte packets per second.\nI want to log the info in a database table with two other columns, one for a\ntimestamp and one for a name of the packet. The max rate I can achieve is\n350 inserts per second on a sun blade 2000. The inserts are g... |
[
{
"msg_contents": "Hi,\n\nI have created a table whit some indexes. I analize\nthe query of this table and never use index.\n\nAfter this, I create a more simplistic table with two\ncolumns and one index and the query uses the index.\n\nLook at this:\n\npfc=# \\d document\n Tabl... |
[
{
"msg_contents": "Alfranio,\n\n> I'm a new PostgresSql user and I do not know so much about the\n> performance mechanisms currently implemented and available.\n<snip>\n> Does anybody know what is happening ?\n\n90% likely: You haven't run VACUUM FULL ANALYZE in a while.\n\n-- \nJosh Berkus\nAglio Database S... |
[
{
"msg_contents": "> Jim,\n>\n>> I have a 40M row table I need to import data into, then use to create\n>> a bunch of more normalized tables. Right now all fields are varchar,\n>> but I'm going to change this so that fields that are less than a\n>> certain size are just char. Question is, how much impact is the... |
[
{
"msg_contents": "\ngreetings.\n\ni have a query that is taking a rather long time to execute and have been\nlooking into setting up a partial index to help, although i'm not sure if this\nis what i want.\n\nhere is the table:\n\nid serial,\ntype_id int,\nareacode smallint,\ncontent text\n\n___________________... |
[
{
"msg_contents": "\nmy apologies - a strange key combination sent the message early.\n\n----\ngreetings.\n\ni have a query that is taking a rather long time to execute and have been\nlooking into setting up a partial index to help, although i'm not sure if this\nis what i want.\n\nhere is the (simplified) tabl... |
[
{
"msg_contents": "Alfranio Junior,\n\n99% likely: You ran the second query after the first\nand the 4 result rows where already stored in memory. \nThe first execution took longer because the database\nhad to go to the disk after looking up in the index\nwhat rows to get. I further assume that the index was\... |
[
{
"msg_contents": "Jamie Lawrence wrote:\n\n>How do I join pg_class and pg_database to determine OID/tablename\n>pairs for a given database? I can't find anything to join on in those\n>tables. I'm just grepping output right now, but I'd like to do more\n>complicated things in the future, thus my question.\n> \... |
[
{
"msg_contents": "Hello.\n\nI'm using PostgreSQL 7.3.1 on i686-pc-linux-gnu, compiled by GCC egcs-2.91.66.\n\nHere is topic. Table transactions:\n\n=> \\d transactions\n Table \"public.transactions\"\n Column | Type | Modifiers\n-------------+--------------+-----------\n trxn_id | integer... |
[
{
"msg_contents": "Hello,\n\nI've just had a quick search through the archives but couldn't find\nwhat I wanted, so I've joined this list to continue my search for an\nanswer.\n\nIs there any rule of thumb about how much more efficient an INNER JOIN\nis compare to a regular WHERE statement?\n\nI have a couple o... |
[
{
"msg_contents": "* amol <amol@mithi.com> [15.05.2003 06:47]:\n> Hi everybody,\n> I am new to this mailing list, so please let me know if I am not posting\n> queries the way you are expecting.\n> \n> - We are porting a web based application from MSSQL to postgres as a\n> backend.\n> This is a database intensi... |
[
{
"msg_contents": "-----Original Message-----\nFrom: Anagha Joshi \nSent: Wednesday, May 07, 2003 3:58 PM\nTo: pgsql-admin@postgresql.org\nSubject: [ADMIN] Out of disk space- error code\n \nHi,\n \nI'm using PostgreSQL 7.1.2 on Sun Solaries 8.\n \nMy Server was kept for overnight test and I observed that on my ... |
[
{
"msg_contents": "This a relatively simple nested query that we try to use, but it finish in a \"seq scan\" with a \ntoo high cost, so we had to use a little orthodox solution creating a temporal table into the \nterminal and scanning this table row's one by one making individual querys for each one.\n\nAny bo... |
[
{
"msg_contents": "Has anyone run postgres on a beowulf system? \n\nI'm shopping for a new server. One candidate would be a\nquad opteron (64-bit AMD \"hammer\") machine. Another approach might\nbe a beowulf of single or dual opterons. I imagine the beowulf\nwould be a bit cheaper, and much more expandable, ... |
[
{
"msg_contents": "Hello.\nI'm just going to upgrade from 7.1.2 to 7.3.2 and found that some\nof my queries performing on 7.3.2 much slower than on 7.1.2.\nFor example, pretty complex query that takes 3-4 seconds on 7.1.2\nnow takes about 1 minute on 7.3.2.\nEXPLAIN shows the pretty same total query cost (49000... |
[
{
"msg_contents": "Dear Gurus,\n\nThis is a rather nasty query, built up from several parameters, and it\nproved to be 7--15 times slower in 7.3 than in 7.2. This particular query\ntakes more than 3.5 minutes (4 after vacuum full analyze! (henceforth VFA))\nthat is unacceptable in an interactive client applicat... |
[
{
"msg_contents": "Hi all,\n\nsorry for reposting this to the lists, but I feel I posted this at the\nwrong time of day, since now a lot more of you gurus are reading, and I\nreally need some knowledgeable input... thanks for consideration :)\n\n\nI have a question concerning table/key layout.\n\nI need to stor... |
[
{
"msg_contents": "Hello,\n\nI have a database with the following layout:\n\n searchterms=# \\d+ searches_2002\n\t\tTable \"public.searches_2002\"\n Column | Type | Modifiers | Description \n -----------+------------------------+-----------+-------------\n srchdate | date ... |
[
{
"msg_contents": "pgsql-bugs@postgresql.org\nCc: \nBcc: \nSubject: Re: [PERFORM] [SQL] Unanswered Questions WAS: An unresolved performance\nReply-To: plaven@bigpond.net.au\nIn-Reply-To: <Pine.LNX.4.33.0305081019300.11328-100000@css120.ihs.com>\nX-Operating-System: Linux/2.4.18-686-smp (i686)\nX-Uptime: 21:03:... |
[
{
"msg_contents": "Having grepped the web, it's clear that this isn't the first or last \ntime this issue will be raised.\n\nMy application relies heavily on IN lists. The lists are primarily \nconstant integers, so queries look like:\n\nSELECT val FROM table WHERE id IN (43, 49, 1001, 100002, ...)\n\nPerforma... |
[
{
"msg_contents": "I have, what appears to be a big problem.\n\nMachine specs\nAMD 2100+,\n1 GIG SDRam,\n3 WD HD's\n 1 - 20 Gig -15 Gig system and 5 Gig Swap\n mounted as /\n 2 - 80 Gig (8 M Cache) in Redhat software RAID 1 (mirror) using Adaptec\n1200 as an IDE Controller\n mounted as /usr/... |
[
{
"msg_contents": "Working on my first set returning function... So far the examples from\nhttp://techdocs.postgresql.org/guides/SetReturningFunctions have worked well\nfor me...\n\nI'd like to see what kind of performance I get from a particularly slow\npiece of code by replacing it with a recursive srf (right... |
[
{
"msg_contents": "Hello,\n I'm running a simple query on a table and I'm getting a very long\nresponse time. The table has 56,000 rows in it. It has a full text field,\nbut it is not being referenced in this query. The query I'm running is\n\nselect row_key, column1, column2, column3, column4, column5 fr... |
[
{
"msg_contents": "I figured out how to make the query faster. There should be a mailing list\nset up for wasted questions since I always seem to figure out the problem\nafter I've bugged everyone for help.\n\nIn the query\n\nselect row_key, column1, column2, column3, column4, column5 from table1\nwhere column... |
[
{
"msg_contents": "Hello everybody,\n\nI'm facing a simple yet gravely problem with postgresql 7.3.2 on x86 Linux.\nMy db is used to store IP accounting statistics for about 30 C's. There are\na couple truly trivial tables such as the one below:\n\nCREATE TABLE stats_min\n(\n\tip\tinet\t\tNOT NULL,\n\tstart\tt... |
[
{
"msg_contents": "Kevin,\n\nHow about creating a new index just on column6?\nThat should be much more effective than the multicolumn\nindex.\n\nRegards,\nNikolaus\n\nOn Thu, 29 May 2003 08:58:07 -0500, \"Kevin Schroeder\"\nwrote:\n\n> \n> Hello,\n> I'm running a simple query on a table and I'm\n> getting a... |
[
{
"msg_contents": "Hi,\n\nI am in the process of pricing up boxes for our database, and I was\nwondering if anyone had any recommendations or comments.\n\nThe database itself will have around 100-150 users mostly accessing through\na PHP/apache interface. I don't expect lots of simultaneous activity,\nhowever u... |
[
{
"msg_contents": "\nI was unable to find the address of a human who manages these lists,\nso I apologize for the off-topic email (email about abuse of the\npsql-performance mailing list instead of email about psql\nperformance).\n\nI received, today, spam sent to addresses subscribed to\npsql-performance. One... |
[
{
"msg_contents": "Based on what you've said, I would guess you are considering the Dell PowerEdge 2650 since it has 5 drive bays. If you could afford the rackspace and just a bit more money, I'd get the tower configuration 2600 with 6 drive bays (and rack rails if needed - Dell even gives you a special rackmo... |
[
{
"msg_contents": "In the application, that I'm working on, I have a query that'll be a lot \n60% faster if I disable sequential scan forcing it to you my index.\n\nIs it bad practice to disable sequential scan ( set \nenable_seqscan=false), run my query then enable sequential scan, \nwhenever I'm running this ... |
[
{
"msg_contents": "David,\n\nI say go ahead and use it since you get a significant\nperformance gain. This is a special case where you\nknow more about your data than the planer does with\ngeneral system wide settings. In Oracle you could use\n\"hints\". Since there are no hints in PostgreSQL\ndisabling and ... |
[
{
"msg_contents": "Tom Lane Writes:\n\n>Bruno Wolff III <bruno@wolff.to> writes:\n>> It probably has one visible row in it. If it can changed a lot, there\n>> may be lots of deleted tuples in a row. That would explain why an\n>> index scan speeds things up.\n\n>Right, every UPDATE on unique_ids generates a dead... |
[
{
"msg_contents": "Hi,\n I am running Postgresql 7.2.3 on a linux Qube with 256 RAM. I have a tabe \nwith about 100,000 records. The table has a postgis geometry column. I have \na GIST index on the table on the geometry column. Here are my questions:\n1)When I do a spatial select query on the geometry column ... |
[
{
"msg_contents": "\n> Hi All, \n> \n> We have a performance problem with a specific query, where just getting\n> the QUERY PLAN (_not_ getting the results of the query itself) on this\n> query is taking up to 10 seconds, and spinning the CPU, and basically\n> blocking other access to the db. This same query o... |
[
{
"msg_contents": "\n Hello,\n\n I have table with slowly degrading performance. Table is special is\nsuch way that all its rows are updated every 5 minutes (routers interfaces).\nvacuum does not help. vacuum full does but I'd like to avoid it.\n\n Below I added explain analyze output before and after vacuum... |
[
{
"msg_contents": "Thanks Tom for the reply (if you could reply all, as I'm not currently\nsubscribed just yet).\n\n[Since our post, we've down an explicit vacuum on the tbluser.id column, and\nthings are looking much much better, there were 0 rows in the pg_stats table\nfor that table...]\n\nIncidently, tbluse... |
[
{
"msg_contents": "I have discovered that I could optimize queries by adjusting the \nfollowing parameters such as enable_seqscan, enable_hashjoin, \nenable_mergejoin and enable_nestloop.\n\nIs it a good idea, to temporarily adjust those values before running a \nquery to spend up the execution time? I've sear... |
[
{
"msg_contents": "--------- THE QUERY ----------------\n\nselect sum(item.charge) as currentCharges\n, sum(item.gst) as gst\n, sum(item.pst) as pst\n, sum(item.hst) as hst\n, sum(item.qst) as qst\n, sum(item.federaltax) as federalTax\n, sum(item.statetax) as stateTax\n, sum(item.localtax) as localTax\n, sum(... |
[
{
"msg_contents": "\n\n\n> -----Original Message-----\n> From:\tLending, Rune [SMTP:rune.lending@inpoc.com]\n> Sent:\t05 June 2003 10:11\n> To:\t'pgsql-admin@postgresql.org'\n> Subject:\t[ADMIN] Shared_buffers and kernel parameters, tuning\n> \n> After days of searching and testing I have come up with this way ... |
[
{
"msg_contents": "I have a query that's cauing pgsql choose either a hash or merge join\ndepending on how I mess with the stats variables, but it won't choose an\nnested loop, even though it's the fastest.\n\nThe estimate for the nested loop index scans always seems to be way high\non the high end. Note that i... |
[
{
"msg_contents": "Folks,\n\nWe've been discussing this for a while on HACKERS. However, I haven't been \ngetting much feedback on the specific order proposed.\n\nAttached is an outline of my proposed re-ordering of postgresql.conf.sample. \nPlease send me comments. I need to submit a patch by Thursday, so ... |
[
{
"msg_contents": "Hi,\nI am using pg 7.3.1 on a dual r.h. 7.3 box.\n\nI have a big problem with pg left join performance.\n\nMy plan is:\n=# explain analyze select D.IDS AS DIDS ,D.IDS_SKLAD, D.IDS_KO AS\nDIDSKO,KL.MNAME AS KLNAME, D.NOMER AS DNOMER,D.DATE_OP, S.MED AS\nMEDNAME, NOM.MNAME AS NOMNAME,S.IDS_NUM... |
[
{
"msg_contents": "Hi,\n\nI'm running PG 7.3.2 on a dual P3 1 GHz, 4GB RAM, 5-disk RAID 5 (hardware) on\nDebian Linux, kernel 2.4.21-rc3.\n\nI'm unable to tweak the various _cost settings in such a way that attached\nquery will use the right plan. Attachment contains relevant config file\nsettings, table defeni... |
[
{
"msg_contents": "Howdy folks. We just received an new monster box, and I would like to\nfield suggestion on setting up the Conf file for the best performance\n\n**************BOX INFO***************\nCompaq\n2 x 2GHZ XEON processors\n7 gigs RAM\n100 gigs HD\n*****************************************\n\n*****... |
[
{
"msg_contents": "Hi.\n\nI have a problem with performance after upgrading from 7.2 to 7.3. Let's\nsee two simple tables:\n\nCREATE TABLE a (\n id integer,\n parent_id integer\n);\n\nwith 1632 records, and\n\nCREATE TABLE b (\n id integer\n);\n\nwith 5281 records, and a litle more complex view:\n\nCRE... |
[
{
"msg_contents": "Similar question was \nhttp://archives.postgresql.org/pgsql-admin/2002-05/msg00148.php, but google \ndid not have answer for it.\n\nHere is the structure:\n\n Column | Type | Modifiers\n-------------+--------------------------+----------------------\n id ... |
[
{
"msg_contents": "I have the following index:\nstreet_range__street_locality_high_low_v btree (street_name_id,\n locality_id, addr_high_v, addr_low_v) WHERE (addr_high_v IS NOT NULL)\n\nThe query has a where clause like this:\n FROM street_range s, input i\n WHERE 1=1\n AND i.addres... |
[
{
"msg_contents": "\n\nPostgreSQL Version: 7.2.3\nOS : Red Hat 7.3 with Kernel 2.4.18-5 and SGI_XFS\n\nI currently have two processes which create several persistent\nconnections to the database. One process primarily does inserts and the\nother primarily does selects. Both processes run 24/7.\n\nMy problem is ... |
[
{
"msg_contents": "Hello!\n\n\tHow much does planner take into consideration index size? Can one help \nplanner use indexes by having several functional indexes which should be \nsmaller instead of one bigger index which covers whole range of values per \nfield(s)?\n\nThanks in advance.\n\n\n",
"msg_date":... |
[
{
"msg_contents": "Hi\nRecently I was wondering about tables difficult to index. Example - \nqueries with \"ilike\" where clauses. Without additional contrib modules \nthe only way to search such tables is sequential scan (am I right?)\n\nThe point is too keep these tables as small as possible. We can do this \... |
[
{
"msg_contents": "Hi,\n\nI am researching some interesting inconsistent query timing and hope some\nof the gurus hanging out here might help me shed a light on this...\n\nThe table:\n Column | Type | Modifiers\n \n--------+--------------------------+----------... |
[
{
"msg_contents": "Ernest,\n\nMy guess is that the second execution of the query is\nshorter since the data blocks are cached in memory. \nWhen you modify the data then it needs to be read again\nfrom disk which is much slower than from memory. The\nshort execution after restarting PostgreSQL seems to\nindicat... |
[
{
"msg_contents": "At 04:20 17.06.2003, Nikolaus Dilger said:\n--------------------[snip]--------------------\n>My guess is that the second execution of the query is\n>shorter since the data blocks are cached in memory. \n>When you modify the data then it needs to be read again\n>from disk which is much slower ... |
[
{
"msg_contents": "approve xec5mm unsubscribe pgsql-performance jgimenez@sipec.es\n",
"msg_date": "Tue, 17 Jun 2003 09:43:39 +0200",
"msg_from": "=?iso-8859-1?Q?Jordi_Gim=E9nez?= <jgimenez@sipec.es>",
"msg_from_op": true,
"msg_subject": "approve xec5mm unsubscribe pgsql-performance jgimenez@sipe... |
[
{
"msg_contents": "Is there a way to limit the amount of memory that postgres\nwill use?\n\n",
"msg_date": "Tue, 17 Jun 2003 11:53:14 +0200",
"msg_from": "Howard Oblowitz <HowardO@LEWIS-STORES.com>",
"msg_from_op": true,
"msg_subject": "Limiting Postgres memory usage"
},
{
"msg_contents"... |
[
{
"msg_contents": "Ernest,\n\nThanks for providing the additional information that\nthe table has 2.3 million rows.\n\nSee during the first execution you spend most of the\ntime scanning the index id_mdata_dictid_string. And\nsince that one is quite large it takes 1500 msec to\nread the index from disk into me... |
[
{
"msg_contents": "At 00:45 18.06.2003, nikolaus@dilger.cc said:\n--------------------[snip]--------------------\n>Thanks for providing the additional information that\n>the table has 2.3 million rows.\n>\n>See during the first execution you spend most of the\n>time scanning the index id_mdata_dictid_string. A... |
[
{
"msg_contents": "The query below was running in a bit under 300ms on a version of 7.4\nfrom less than a week ago until I updated to the version from last night.\nNow it takes about 800ms using a significantly different plan.\nThe query is:\nexplain analyze\n select count(1)\n from\n (select distinct ... |
[
{
"msg_contents": "Why would the following query take soo long to run? What does 28.12 msec represent, since the total running time is \n16801.86 ms.\n\nThe table phoneinfo has a primary key called phoneinfo_id and the table has 400 000 records.\n\nmydb=#explain analyze delete from phoneinfo where phoneinfo_id ... |
[
{
"msg_contents": "I'd like to get some feedback on my setup to see if I can optimize my\ndatabase performance. My application has two separate applications:\n\nThe first application connects to websites and records the statistics in the\ndatabase. Websites are monitored every 5 or 10 minutes (depends on clie... |
[
{
"msg_contents": "I agree a route map would really help.\n\n> -----Original Message-----\n> From:\tHilary Forbes [SMTP:hforbes@dmr.co.uk]\n> Sent:\t25 June 2003 10:12\n> To:\tRod Taylor\n> Cc:\tpgsql-performance@postgresql.org\n> Subject:\tRe: [PERFORM] Performance advice\n> \n> PM4JI but from my point of view... |
[
{
"msg_contents": "I've used indexes to speed up my queries but this query escapes me. I'm\ncurious if someone can suggest an index or a way to modify the query to use\nthe index. The query is:\n\nselect ms.averageconnecttimex as ms_averageconnecttime, ms.averagedurationx\nas ms_averageduration, ms.datex as m... |
[
{
"msg_contents": "Hi all!\n\nI have a strange behavior with this query:\n\nSELECT c.id_contenido,p.fecha_publicacion,c.titulo_esp,c.activo,c.activo,s.label_esp as label_sbc,p.orden\n,p.tapa_spc,p.tapa_cat,p.tapa_principal,p.id_publicacion,ca.label_esp as label_cat,sp.label_esp as label_spc\nFROM cont_contenido... |
[
{
"msg_contents": "We are evaluating PostgreSQL for a typical data warehouse application. I\nhave 3 tables below that are part of a Star schema design. The query listed\nbelow runs in 16 seconds on Oracle 9.2 and 3+ minutes on PostgreSQL 7.3.3\nHere are the details.\n\nI'm wondering what else can be done to t... |
[
{
"msg_contents": "Hi,\n\ni think i need a little help with a problem with pg_statistic.\nLets say i have a table to collect traffic-data.\nThe table has a column time_stamp of type timesamptz.\nThe table has a single-column index on time_stamp.\nThe table has around 5 million records.\n\nIf i delete all statis... |
[
{
"msg_contents": "\n> -----Mensaje original-----\n> De: SZUCS Gábor [mailto:surrano@mailbox.hu] \n> Enviado el: jueves, 26 de junio de 2003 7:31\n> Para: pgsql-performance@postgresql.org\n> Asunto: Re: [PERFORM] Similar querys, better execution time \n> on worst execution plan\n> \n> \n> Fernando,\n> \n> 1. Tr... |
[
{
"msg_contents": "Hello,\n\nI've a performance question that I would like to ask you :\n\nI have to design a DB that will manage products, and I'm adding the\nproduct's options management.\n\nA box can be red or yellow, or with black rubber or with white rubber,\nfor example.\nSo I have a product (the box) and... |
[
{
"msg_contents": "Sorry for posting an obvious Linux question, but have any of you\nencountered this and how have you fixed it.\nI have 6gig Ram box. I've set my shmmax to 3072000000. The database\nstarts up fine without any issues. As soon as a query is ran\nor a FTP process to the server is done, the us... |
[
{
"msg_contents": "I'm wondering how to speed up sorting which is slowing a query run regularly\non a linux postgresql 7.3.3 system.\n\nThe box is a dual PIII with 1Gb ram. The database is located on a 20Gb SCSI\ndisk, with WAL on a separate disk.\n\nThe only changes I've made to postgresql.conf so far are:\nsh... |
[
{
"msg_contents": "I have a number of very common queries that the optimizer plans a very inefficient plan. I vacuum hourly. I'm wondering what I can do to make the queries faster.\n\nHere are the relevant tables:\n\ncreate table image(\n imageid integer not null, /* The image's ID */\n containerid in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.