threads
listlengths
1
275
[ { "msg_contents": "I can't help wondering how a couple thousand context switches per\nsecond would affect the attempt to load disk info into the L1 and\nL2 caches. That's pretty much the low end of what I see when the\nserver is under any significant load.\n\n\n", "msg_date": "Tue, 27 Sep 2005 10:21:37 -05...
[ { "msg_contents": ">From: Josh Berkus <josh@agliodbs.com>\n>ent: Sep 27, 2005 12:15 PM\n>To: Ron Peacetree <rjpeace@earthlink.net> \n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>\n>I've somehow missed part of this thread, which is a shame since this is \n>an area of primary concern for me.\n>\n>Y...
[ { "msg_contents": "Hello,\n\nMy connection ADO is very, very, very slow.... \n\nMy Delphi connection saw ADO is very slow. All SQL that I execute delay big, I tested in pgadmin and the reply is instantaned, the problem this in the Delphi? \n\nTanks!\nNo virus found in this outgoing message.\nChecked by AVG An...
[ { "msg_contents": "By occation, we dropped the whole production database and refreshed it from\na database backup - and all our performance problems seems to have gone. I\nsuppose this means that to keep the database efficient, one eventually does\nhave to do reindexing and/or full vacuum from time to time?\n\...
[ { "msg_contents": "hi\nsetup:\npostgresql 8.0.3 put on debian on dual xeon, 8GB ram, hardware raid.\n\ndatabase just after recreation from dump takes 15gigabytes.\nafter some time (up to 3 weeks) it gets really slow and has to be dump'ed\nand restored.\n\nas for fsm:\nend of vacuum info:\nINFO: free space map: ...
[ { "msg_contents": "Hi\n\nWhile doing some stress testing for updates in a small sized table\nwe found the following results. We are not too happy about the speed\nof the updates particularly at high concurrency (10 clients).\n\nInitially we get 119 updates / sec but it drops to 10 updates/sec\nas concurrency is...
[ { "msg_contents": "Hi all,\n\n I have been \"googling\" a bit searching info about a way to monitor \npostgresql (CPU & Memory, num processes, ... ) and I haven't found \nanything relevant. I'm using munin to monitor others parameters of my \nservers and I'd like to include postgresql or have a similar tool. ...
[ { "msg_contents": ">From: \"Jeffrey W. Baker\" <jwbaker@acm.org>\n>Sent: Sep 27, 2005 1:26 PM\n>To: Ron Peacetree <rjpeace@earthlink.net>\n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>\n>On Tue, 2005-09-27 at 13:15 -0400, Ron Peacetree wrote:\n>\n>>That Btree can be used to generate a physical re...
[ { "msg_contents": "Something interesting is going on. I wish I could show you the graphs,\nbut I'm sure this will not be a surprise to the seasoned veterans.\n\nA particular application server I have has been running for over a\nyear now. I've been logging cpu load since mid-april.\n\nIt took 8 months or more t...
[ { "msg_contents": ">From: Matthew Nuzum <mattnuzum@gmail.com>\n>Sent: Sep 28, 2005 4:02 PM\n>Subject: [PERFORM] Logarithmic change (decrease) in performance\n>\nSmall nit-pick: A \"logarithmic decrease\" in performance would be\na relatively good thing, being better than either a linear or\nexponential decreas...
[ { "msg_contents": "In the interest of efficiency and \"not reinventing the wheel\", does anyone know\nwhere I can find C or C++ source code for a Btree variant with the following\nproperties:\n\nA= Data elements (RIDs) are only stored in the leaves, Keys (actually\nKeyPrefixes; see \"D\" below) and Node pointer...
[ { "msg_contents": "If I've done this correctly, there should not be anywhere near\nthe number of context switches we currently see while sorting.\n\nEach unscheduled context switch represents something unexpected\noccuring or things not being where they are needed when they are\nneeded. Reducing such circumsta...
[ { "msg_contents": "I'm converting a relatively small database (2 MB) from MySQL to PostgreSQL. It \nis used to generate web pages using PHP. Although the actual website runs under \nLinux, the development is done under XP. I've completed most of the data \nconversion and rewrite of the PHP scripts, so now I'...
[ { "msg_contents": ">From: \"Jeffrey W. Baker\" <jwbaker@acm.org>\n>Sent: Sep 29, 2005 12:27 AM\n>To: Ron Peacetree <rjpeace@earthlink.net>\n>Cc: pgsql-hackers@postgresql.org, pgsql-performance@postgresql.org\n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>\n>You are engaging in a length and verbose...
[ { "msg_contents": "> > It appears that PostgreSQL is two to three times slower \n> than MySQL. \n> > For example, some pages that have some 30,000 characters \n> (when saved \n> > as HTML) take 1 to 1 1/2 seconds with MySQL but 3 to 4 seconds with \n> > PostgreSQL. I had read that the former was generally \n>...
[ { "msg_contents": ">From: \"Jeffrey W. Baker\" <jwbaker@acm.org>\n>Sent: Sep 29, 2005 12:33 AM\n>Subject: Sequential I/O Cost (was Re: [PERFORM] A Better External Sort?)\n>\n>On Wed, 2005-09-28 at 12:03 -0400, Ron Peacetree wrote:\n>>>From: \"Jeffrey W. Baker\" <jwbaker@acm.org>\n>>>Perhaps I believe this becau...
[ { "msg_contents": " \nAm trying to port a mysql statement to postgres.\n\nPlease help me in finding the error in this,\n\n\nCREATE SEQUENCE ai_id;\nCREATE TABLE badusers (\n id int DEFAULT nextval('ai_id') NOT NULL,\n UserName varchar(30),\n Date datetime DEFAULT '0000-00-00 00:00:00' NOT NULL,\n Reason va...
[ { "msg_contents": "\n> In my original example, a sequential scan of the 1TB of 2KB \n> or 4KB records, => 250M or 500M records of data, being sorted \n> on a binary value key will take ~1000x more time than reading \n> in the ~1GB Btree I described that used a Key+RID (plus node \n> pointers) representation of ...
[ { "msg_contents": "I think this question may be more appropriate for\npgsql-novice@postgresql.org.\n\nAnyrate for the below. Sounds like you maybe already have a table or\nsequence called ai_id;\n\nTry doing a DROP SEQUENCE ai_id;\n\nFirst\n\nAlso if you plan to use this sequence only for this table it would b...
[ { "msg_contents": "Hi All,\n \n I have a SQL function like :\n \nCREATE OR REPLACE FUNCTION\nfn_get_yetkili_inisyer_listesi(int4, int4)\n RETURNS SETOF kod_adi_liste_type AS\n$BODY$\n SELECT Y.KOD,Y.ADI\n FROM T_YER Y\n WHERE EXISTS (SELECT 1\n FROM T_GUZER G\n WHERE (G.BIN_YER_KOD = $1 O...
[ { "msg_contents": "I am running version 8.0.1 on Windows 2003. I have an application that\nsubjects PostgreSQL to sudden bursts of activity at times which cannot be\npredicted. The bursts are significant enough to cause performance\ndegradation, which can be fixed by a 'vacuum analyze'.\n\nI am aware of the exi...
[ { "msg_contents": "... to do the following:\n (1) Make a table memory-resident only ?\n (2) Set up user variables in memory that are persistent across all\nsessions, for\n as long as the database is up and running ?\n (3) Assure that a disk-based table is always in memory (outside of keeping\nit in\n ...
[ { "msg_contents": ">From: Pailloncy Jean-Gerard <jg@rilk.com>\n>Sent: Sep 29, 2005 7:11 AM\n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>>>Jeff Baker:\n>>>Your main example seems to focus on a large table where a key \n>>>column has constrained values. This case is interesting in\n>>>proportion...
[ { "msg_contents": ">From: Zeugswetter Andreas DAZ SD <ZeugswetterA@spardat.at>\n>Sent: Sep 29, 2005 9:28 AM\n>Subject: RE: [HACKERS] [PERFORM] A Better External Sort?\n>\n>>In my original example, a sequential scan of the 1TB of 2KB \n>>or 4KB records, => 250M or 500M records of data, being sorted \n>>on a bina...
[ { "msg_contents": ">From: Josh Berkus <josh@agliodbs.com>\n>Sent: Sep 29, 2005 12:54 PM\n>Subject: Re: [HACKERS] [PERFORM] A Better External Sort?\n>\n>The biggest single area where I see PostgreSQL external\n>sort sucking is on index creation on large tables. For\n>example, for free version of TPCH, it takes...
[ { "msg_contents": "> > This smells like a TCP communication problem.\n> \n> I'm puzzled by that remark. How much does TCP get into the \n> picture in a local Windows client/server environment?\n\nWindows has no Unix Domain Sockets (no surprise there), so TCP\nconnections over the loopback interface are use...
[ { "msg_contents": "Hi list,\ni'm a postgres noob and before designing a new Database Schema i would\nlike to ask you a simple question because preformance will be a critical\npoint.\n\nMy question regards performance comparison between a Table which\nincludes a list or a Table without list and with an external ...
[ { "msg_contents": "> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of PFC\n> Sent: Thursday, September 29, 2005 9:10 AM\n> To: rjpeace@earthlink.net\n> Cc: Pg Hackers; pgsql-performance@postgresql.org\n> Subject: Re: [HACKERS] [P...
[ { "msg_contents": "That 11MBps was your =bulk load= speed. If just loading a table\nis this slow, then there are issues with basic physical IO, not just\nIO during sort operations.\n\nAs I said, the obvious candidates are inefficient physical layout\nand/or flawed IO code.\n\nUntil the basic IO issues are addr...
[ { "msg_contents": "I see the following routines that seem to be related to sorting.\n\nIf I were to examine these routines to consider ways to improve it, what\nroutines should I key in on? I am guessing that tuplesort.c is the hub\nof activity for database sorting.\n\nDirectory of U:\\postgresql-snapshot\\src...
[ { "msg_contents": "25MBps should not be a CPU bound limit for IO, nor should it be\nan OS limit. It should be something ~100x (Single channel RAM)\nto ~200x (dual channel RAM) that.\n\nFor an IO rate of 25MBps to be pegging the CPU at 100%, the CPU\nis suffering some combination of\nA= lot's of cache misses (\...
[ { "msg_contents": "I have perused the tuple sort stuff.\n\nThe good:\nThe documentation of the sort algorithm from Knuth's TAOCP was\nbeautifully done. Everyone who writes an algorithm should credit the\noriginal source like this, and also where it deviates. That was done\nvery nicely.\n\nThe bad:\nWith rando...
[ { "msg_contents": "Judy definitely rates a WOW!!\n\n> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of Gregory Maxwell\n> Sent: Friday, September 30, 2005 7:07 PM\n> To: Ron Peacetree\n> Cc: Jeffrey W. Baker; pgsql-hackers@postgr...
[ { "msg_contents": "> -----Original Message-----\n> From: pgsql-hackers-owner@postgresql.org [mailto:pgsql-hackers-\n> owner@postgresql.org] On Behalf Of Tom Lane\n> Sent: Friday, September 30, 2005 11:02 PM\n> To: Jeffrey W. Baker\n> Cc: Luke Lonergan; Josh Berkus; Ron Peacetree; pgsql-\n> hackers@postgresql.or...
[ { "msg_contents": "*blink* Tapes?! I thought that was a typo...\nIf our sort is code based on sorting tapes, we've made a mistake. HDs\nare not tapes, and Polyphase Merge Sort and it's brethren are not the\nbest choices for HD based sorts.\n\nUseful references to this point:\nKnuth, Vol 3 section 5.4.9, (star...
[ { "msg_contents": "As I posted earlier, I'm looking for code to base a prototype on now.\nI'll test it outside pg to make sure it is bug free and performs as\npromised before I hand it off to the core pg developers.\n\nSomeone else is going to have to merge it into the pg code base\nsince I don't know the code ...
[ { "msg_contents": "You have not said anything about what HW, OS version, and pg version\nused here, but even at that can't you see that something Smells Wrong?\n\nThe most common CPUs currently shipping have clock rates of ~2-3GHz\nand have 8B-16B internal pathways. SPARCs and other like CPUs are\nclocked slow...
[ { "msg_contents": "> -----Original Message-----\n> From: pgsql-performance-owner@postgresql.org\n> [mailto:pgsql-performance-owner@postgresql.org]On Behalf Of Jim C. Nasby\n> Sent: Friday, September 30, 2005 4:49 PM\n> Subject: Re: [PERFORM] [HACKERS] Query in SQL statement\n \n> I suggest ditching the CamelCas...
[ { "msg_contents": "FreeBSD or Linux , which system has better performance for PostgreSQL \n\n\n", "msg_date": "Sat, 1 Oct 2005 23:08:31 +0300", "msg_from": "\"AL��� ���EL���K\" <ali@verus.com.tr>", "msg_from_op": true, "msg_subject": "Which one FreeBSD or Linux" }, { "msg_contents": "ALÝ...
[ { "msg_contents": "I thought this might be interesting, not the least due to the extremely low\nprice ($150 + the price of regular DIMMs):\n\n http://www.tomshardware.com/storage/20050907/index.html\n\nAnybody know a good reason why you can't put a WAL on this, and enjoy a hefty\nspeed boost for a fraction of ...
[ { "msg_contents": "Hi,\n\nI'm trying to include a custom function in my SQL-queries, which\nunfortunately leaves the server hanging...\n\nI basically search through two tables:\n* TABLE_MAPPING: lists that 'abc' is mapped to 'def'\n id1 | name1 | id2 | name2\n -------------------------\n 1 | abc | 2 | ...
[ { "msg_contents": "\n\n\n\nI have a PHP web-based application where a temporary list of servers and\ntheir characteristics (each represented by a unique numeric server_id) is\nextracted from a master server list based on a number of dynamic and\nuser-selected criteria (can the user view the server, is it on-lin...
[ { "msg_contents": "Nah. It's still not right. It needs:\n1= full PCI, preferably at least 64b 133MHz PCI-X, bandwidth.\nA RAM card should blow the doors off the fastest commodity\nRAID setup you can build.\n2= 8-16 DIMM slots\n3= a standard battery type that I can pick up spares for easily\n4= ECC support\n\n...
[ { "msg_contents": "Jeff, are those _burst_ rates from HD buffer or _sustained_ rates from\nactual HD media? Rates from IO subsystem buffer or cache are\nusually considerably higher than Average Sustained Transfer Rate.\n\nAlso, are you measuring _raw_ HD IO (bits straight off the platters, no\nFS or other over...
[ { "msg_contents": "Let's pretend we get a 24HD HW RAID solution like that J Baker\nsays he has access to and set it up as a RAID 10. Assuming\nit uses two 64b 133MHz PCI-X busses and has the fastest HDs\navailable on it, Jeff says he can hit ~1GBps of XFS FS IO rate\nwith that set up (12*83.3MBps= 1GBps).\n\n...
[ { "msg_contents": "OK, change \"performance\" to \"single thread performance\" and we\nstill have a valid starting point for a discussion.\n\nRon\n\n\n-----Original Message-----\nFrom: Gregory Maxwell <gmaxwell@gmail.com>\nSent: Oct 3, 2005 8:19 PM\nTo: Ron Peacetree <rjpeace@earthlink.net>\nSubject: Re: [HACKE...
[ { "msg_contents": "pg is _very_ stupid about caching. Almost all of the caching is left\nto the OS, and it's that way by design (as post after post by TL has\npointed out).\n\nThat means pg has almost no ability to take application domain\nspecific knowledge into account when deciding what to cache.\nThere's p...
[ { "msg_contents": "\nI have an application that has a table that is both read and write intensive. \nData from iostat indicates that the write speed of the system is the factor \nthat is limiting performance. The table has around 20 columns and most of the \ncolumns are indexed. The data and the indices for the...
[ { "msg_contents": "Unfortunately, no matter what I say or do, I'm not going to please\nor convince anyone who has already have made their minds up\nto the extent that they post comments like Mr Trainor's below.\nHis response style pretty much proves my earlier point that this\nis presently a religious issue wit...
[ { "msg_contents": "First off, Mr. Trainor's response proves nothing about anyone or\nanything except Mr. Trainor.\n \nI'm going to offer an opinion on the caching topic. I don't have\nany benchmarks; I'm offering a general sense of the issue based on\ndecades of experience, so I'll give a short summary of that...
[ { "msg_contents": "\nThanks. \nI've already understood that \nI need to post it in another list.\n\nSorry for wasting your precious time. \n\n--\nRajesh R\n\n-----Original Message-----\nFrom: Richard Huxton [mailto:dev@archonet.com] \nSent: Wednesday, October 05, 2005 2:24 PM\nTo: R, Rajesh (STSD)\nCc: pgsql-ha...
[ { "msg_contents": "[to K C:] sorry, was out on vactation all last week. I was visualizing\nthe problem incorrectly anyways...\n\nJim wrote:\n> That function is not immutable, it should be defined as stable.\n\nThat is 100% correct: however now and then I declare stable functions as\nimmutable in some cases bec...
[ { "msg_contents": "Can anyone tell me what precisely a WAL buffer contains,\nso that I can compute an appropriate setting for\nwal_buffers (in 8.0.3)?\n\nI know the documentation suggests there is little\nevidence that supports increasing wal_buffers, but we\nare inserting a large amount of data that, I believe...
[ { "msg_contents": "** Low Priority **\n\nHuman feedback from testers and users has proven pretty effective\nat catching errors in the \"human assisted\" cache configuration. When\npeople setting up the servers have missed the named cache configuration,\nand all they had was the single general purpose cache, it...
[ { "msg_contents": "> It's a quad opteron system. RAID controller is a 4 channel LSILogic\n> Megaraid\n> 320 connected to 10 15k 36.7G SCSI disks. The disks are configured in\n5\n> mirrored partitions. The pg_xlog is on one mirror and the data and\nindexes\n> are spread over the other 4 using tablespaces. These ...
[ { "msg_contents": "Nope - it would be disk wait.\n\nCOPY is CPU bound on I/O subsystems faster that 50 MB/s on COPY (in) and about 15 MB/s (out).\n\n- Luke\n\n -----Original Message-----\nFrom: \tMichael Stone [mailto:mstone+postgres@mathom.us]\nSent:\tWed Oct 05 09:58:41 2005\nTo:\tMartijn van Oosterhout\nCc:\...
[ { "msg_contents": "I've now gotten verification from multiple working DBA's that DB2, Oracle, and\nSQL Server can achieve ~250MBps ASTR (with as much as ~500MBps ASTR in\nsetups akin to Oracle RAC) when attached to a decent (not outrageous, but\ndecent) HD subsystem...\n\nI've not yet had any RW DBA verify Jeff...
[ { "msg_contents": "From: Kevin Grittner <Kevin.Grittner@wicourts.gov>\nSent: Oct 5, 2005 2:16 AM\nSubject: Re: [PERFORM] Is There Any Way ....\n\n>First off, Mr. Trainor's response proves nothing about anyone or\n>anything except Mr. Trainor.\n>\nFair Enough. I apologize for the inappropriately general stateme...
[ { "msg_contents": "First I wanted to verify that pg's IO rates were inferior to The Competition.\nNow there's at least an indication that someone else has solved similar\nproblems. Existence proofs make some things easier ;-)\n\nIs there any detailed programmer level architectual doc set for pg? I know\n\"the...
[ { "msg_contents": "Hello, just a little question, It's preferable to use Text Fields or\nvarchar(255) fields in a table? Are there any performance differences in the\nuse of any of them?\n\nThanks a lot for your answer!\n\n", "msg_date": "Wed, 5 Oct 2005 12:21:35 -0600", "msg_from": "\"Cristian Prieto\"...
[ { "msg_contents": "Chris wrote:\n> fbsd@drivefaster.net (Dan Harris) writes:\n> > On Oct 3, 2005, at 5:02 AM, Steinar H. Gunderson wrote:\n> >\n> >> I thought this might be interesting, not the least due to the\n> >> extremely low\n> >> price ($150 + the price of regular DIMMs):\n> >\n> > Replying before my oth...
[ { "msg_contents": "I'm putting in as much time as I can afford thinking about pg related\nperformance issues. I'm doing it because of a sincere desire to help\nunderstand and solve them, not to annoy people.\n\nIf I didn't believe in pg, I would't be posting thoughts about how to\nmake it better. \n\nIt's pro...
[ { "msg_contents": "I am working on a system which will be heavily dependent on functions\n(some SQL, some PL/pgSQL). I am worried about the backend caching query\nexecution plans for long running connections.\n\nGiven:\n- Processes which are connected to the database for long periods of time\n(transactions are...
[ { "msg_contents": "I have an application that is prone to sudden, unscheduled high bursts of\nactivity, and\nI am finding that the application design permits me to detect the activity\nbursts within\nan existing function. The bursts only affect 3 tables, but degradation\nbecomes apparent\nafter 2,000 updates, a...
[ { "msg_contents": "What's the current status of how much faster the Opteron is compared to the \nXeons? I know the Opterons used to be close to 2x faster, but is that still \nthe case? I understand much work has been done to reduce the contect \nswitching storms on the Xeon architecture, is this correct?\n\n-...
[ { "msg_contents": "Hello all\n\nFirst of all, I do understand why pgsql with it's MVCC design has to examine tuples to evaluate \"count(*)\" and \"count(*) where (...)\" queries in environment with heavy concurrent updates.\n\nThis kind of usage IMHO isn't the average one. There are many circumstances with rath...
[ { "msg_contents": "> What's the current status of how much faster the Opteron is compared\nto\n> the\n> Xeons? I know the Opterons used to be close to 2x faster, but is that\n> still\n> the case? I understand much work has been done to reduce the contect\n> switching storms on the Xeon architecture, is this c...
[ { "msg_contents": "On 10/7/05, Cestmir Hybl <cestmirl@freeside.sk> wrote:\nIsn't it possible (and reasonable) for these environments to keep track\nof whether there is a transaction in progress with update to given table\nand if not, use an index scan (count(*) where) or cached value\n(count(*)) to perform this...
[ { "msg_contents": "What's goin on pg-people?\n\nI have a table PRODUCTIONS that is central to the DB and ties a lot of other\ninformation together:\n\nPRODUCTIONS (table)\n----------------------------------\nprod_id\t\tprimary key\ntype_id\t\tforeign key\nlevel_id\t\tforeign key\ntour_id\t\tforeign key\nshow_id...
[ { "msg_contents": "Hi to all, \n\nI have the following configuration:\nDual Xeon 2.8 Ghz, 1G RAM and postgre 8.0.3 installed.\n\nModified configuration parameters:\n\nmax_connections = 100 \n\nshared_buffers = 64000 # 500MB = 500 x 1024 x 1024 / (8 x 1024) (8KB)\nwork_mem = 51200 # 50MB = 50 x 1024 KB\nmainte...
[ { "msg_contents": "I have a table in the databases I work with,\nthat contains two text columns with XML data \nstored inside them.\n\nThis table is by far the biggest table in the databases,\nand the text columns use up the most space. \nI saw that the default storage type for text columns is\n\"EXTENDED\" whi...
[ { "msg_contents": "Hello all,\n\nI'm encountering a quite strange performance problem. Look at the\nfollowing two queries and their execution times. The only difference is\nthe first query has OR operator and the second query has AND operator.\nAny ideas?\n\nThank you in advance,\nFederico\n\n\n[FIRST QUERY: EX...
[ { "msg_contents": "I have a SUSE 9 box that is running Postgres 8.0.1 compiled from source. \nOver time, I see the memory usage of the box go way way up (it's got \n8GBs in it and by the end of the day, it'll be all used up) with what \nlooks like cached inodes relating to the extreme IO generated by \npostgres...
[ { "msg_contents": "Fellow Postgresql users,\n\nI have a Pg 7.4.8 data on XFS RAID10 6-disc (U320 SCSI on LSI MegaRAID\nw/bbu). The pg_xlog is on its own RAID1 with nothing else.\n\nI don't have room for more drives, but I am considering moving the XFS\nexternal log of the data directory to the RAID1 where the p...
[ { "msg_contents": "Hi to all, \n\nI have the following problem: I have a client to which we send every night a \"dump\" with a the database in which there are only their data's. It is a stupid solution but I choose this solution because I couldn't find any better. The target machine is a windows 2003. \n\nSo, ...
[ { "msg_contents": "> > I have a postgresql 7.4.8-server with 4 GB ram.\n> > #effective_cache_size = 1000 # typically 8KB each\n> >\n> > This is computed by sysctl -n vfs.hibufspace / 8192 (on FreeBSD). So I\n> > changed it to:\n> >\n> > effective_cache_size = 27462 # typically 8KB each\n>\n> Apparently th...
[ { "msg_contents": "KC wrote:\n> \n> So I guess it all comes back to the basic question:\n> \n> For the query select distinct on (PlayerID) * from Player a where\n> PlayerID='22220' order by PlayerId Desc, AtDate Desc;\n> can the optimizer recognise the fact the query is selecting by the\nprimary\n> key (PlayerI...
[ { "msg_contents": "Hi all,\n\nAfter a long time of reading the general list it's time to subscribe to\nthis one...\n\nWe have adapted our application (originally written for oracle) to\npostgres, and switched part of our business to a postgres data base.\n\nThe data base has in the main tables around 150 millio...
[ { "msg_contents": "> The disk used for the data is an external raid array, I don't know\nmuch\n> about that right now except I think is some relatively fast IDE stuff.\n> In any case the operations should be cache friendly, we don't scan\nover\n> and over the big tables...\n\nMaybe you are I/O bound. Do you kn...
[ { "msg_contents": "> \n> Would it not be faster to do a dump/reload of the table than reindex\nor\n> is it about the same?\n> \nreindex is probably faster, but that's not the point. you can reindex a\nrunning system whereas dump/restore requires downtime unless you work\neverything into a transaction, which is ...
[ { "msg_contents": "All,\n\nI can see why the query below is slow. The lead table is 34 million rows,\nand a sequential scan always takes 3+ minutes. Mailing_id is the PK for\nmailing and is constrained as a foreign key (NULLS allowed) in lead. \nThere is an index on lead.mailing_id. I've just run VACUUM ANAL...
[ { "msg_contents": "Hello, \n\nI have a strange effect on upcoming structure :\n\n\nDEX_OBJ ---< DEX_STRUCT >--- DEX_LIT\n\nDEX_OBJ : 100 records (#DOO_ID, DOO_NAME)\nDEX_STRUCT : 2,5 million records (#(DST_SEQ, FK_DOO_ID, FK_LIT_ID))\nDEX_LIT : 150K records (#LIT_ID, LIT_TEXT)\n\n(# marks primary key)\n\ni'd...
[ { "msg_contents": "pgsql-performance-owner@postgresql.org wrote:\n\n>>> Have you tried reindexing your active tables?\n\n> It will cause some performance hit while you are doing it. It\n> sounds like something is bloating rapidly on your system and\n> the indexes is one possible place that could be happening.\n...
[ { "msg_contents": "pgsql-performance-owner@postgresql.org wrote:\n\n> Next we'll upgrade the postgres hardware, and then I'll come\n> back to report if it's working better... sorry for the noise for now.\n\nThere have been some discussions about which hardware suits PostgreSQL's\nneeds best under certain load-c...
[ { "msg_contents": "\nPg 7.4.5\nRH 7.3\nQuad Xeon 3Gz\n12G ram\n\nTrying to do a update of fields on 23M row database.\nIs it normal for this process to take 16hrs and still clocking? Both join\nfields are indexed and I have removed any indexes on the updated columns.\nAlso both tables are vacuumed regularly.\n...
[ { "msg_contents": "Hi,\n\nmeanwhile I have received the hint to make postgres use the index via\n\nSET ENABLE_SEQSCAN=FALSE;\n\nwhich fits perfectly. The execution plan now indicates full use of index.\n\nNevertheless this is merely a workaround. Maybe the io-costs are configured to cheap.\n\nthanks :-)\n\n\n--...
[ { "msg_contents": "Ok, since my question got no answer on the general list, I'm reposting\nit here since this list seems in fact better suited to it.\n \nDoes anyone here know what is the most efficient way to list all\ndifferent values of a given column with low cardinality ? For instance\nI have a table w...
[ { "msg_contents": "We are indexing about 5 million small documents using tsearch2/GIST. Each \"document\" contains 2 to 50 words. This is a \"write once, read many\" situation. Write performance is unimportant, and the database contents are static. (We build it offline.)\n\nWe're having problems with incons...
[ { "msg_contents": "Hello,\n\n I am trying to select form table with bytea field. And queries runs very\nslow.\nMy table:\nCREATE TABLE files (file bytea, nr serial NOT NULL) WITH OIDS;\n\nQuery:\nselect * from files where nr > 1450\n\n(I have total 1500 records in it, every holds picture of 23kB size)\nQuery ru...
[ { "msg_contents": "We are indexing about 5 million small documents using tsearch2/GIST. Each \"document\" contains 2 to 50 words. This is a \"write once, read many\" situation. Write performance is unimportant, and the database contents are static. (We build it offline.)\n\nWe're having problems with incons...
[ { "msg_contents": "Hello there,\n\nThis is my first post in the list. I have a deep low-level background on\ncomputer programming, but I am totally newbie to sql databases. I am using\npostgres because of its commercial license.\n\nMy problem is with storing large values. I have a database that stores large\nam...
[ { "msg_contents": "I want to correlate two index rows of different tables to find an\noffset so that\n\ntable1.value = table2.value AND table1.id = table2.id + offset\n\nis true for a maximum number of rows.\n\nTo achieve this, I have the two tables and a table with possible\noffset values and execute a query:\...
[ { "msg_contents": "Rodrigo wrote:\n$$\nAs I understand it, the client needs to put the data into the server\nusing a textual-based command. This makes the 5MB data grow up-to 5x,\nmaking it 25MB in the worst case. (Example: 0x01 -> \\\\001).\n\nMy question is:\n\n1) Is there any way for me to send the binary fi...
[ { "msg_contents": "Hi,\n\nI'm using PostgreSQL 8.1 beta 3 (packages from Debian experimental), and I\nhave a (rather complex) query that seems to take forever -- when the database\nwas just installed, it took about 1200ms (which is quite good, considering\nthat the 7.4 system this runs on today uses about the s...
[ { "msg_contents": "I guess, You should check, if a blob field and large object access is suitable for you - no escaping etc, just raw binary large objects.\n\nAFAIK, PQExecParams is not the right solution for You. Refer the \"Large object\" section:\n\n\"28.3.5. Writing Data to a Large Object\nThe function\nint...
[ { "msg_contents": "\nwhat about firing a \n\nDELETE FROM qc_session S \n WHERE EXISTS (SELECT * \n FROM item_qc_doer i\n WHERE i.item_id = s.item_id);\n\nand \n\nDELETE FROM item_qc_doer S \n WHERE EXISTS (SELECT * \n FROM item_qc_doer...
[ { "msg_contents": "Hi,\n\nis there an easy way to flush all cached query plans in pl/pgsql \nfunctions? I've long running sessions where data are changing and the \nplans become inaccurate after a while. I can imagine something like \nrecreating all pl/pgsql functions. I can recreate them from sql source \nfile...
[ { "msg_contents": "Kuba wrote:\n\n> is there an easy way to flush all cached query plans in pl/pgsql\n> functions? I've long running sessions where data are changing and the\n> plans become inaccurate after a while. I can imagine something like\n> recreating all pl/pgsql functions. I can recreate them from sql ...
[ { "msg_contents": "If I turn on stats_command_string, how much impact would it have on\nPostgreSQL server's performance during a period of massive data\nINSERTs? I know that the answer to the question I'm asking will\nlargely depend upon different factors so I would like to know in which\nsituations it would b...
[ { "msg_contents": "I was reading a comment in another posting and it started me thinking\nabout this. Let's say I startup an Oracle server. All my queries are a\nlittle bit (sometimes a lot bit) slow until it gets its \"normal\" things in\nmemory, then it's up to speed. The \"normal\" things would include so...