threads listlengths 1 275 |
|---|
[
{
"msg_contents": "In investigating a slow query, I distiled the code below from a larger \nquery:\n\nSELECT\n\t*\nFROM\n\t/* SUBQUERY banners */ (\n\t\tSELECT\n\t\t\t*\n\t\tFROM\n\t\t\t/* SUBQUERY banners_links */ (\n\t\t\t\tSELECT\n\t\t\t\t\t*\n\t\t\t\tFROM\n\t\t\t\t\tbanners_links\n\t\t\t\tWHERE\n\t\t\t\t\tm... |
[
{
"msg_contents": ">Since you have two redundant tests, the selectivity is being\n>double-counted, leading to a too-small rows estimate and a not very\n>appropriate choice of join plan.\n\nI see, thanks for the explanation. I did notice though that in the second \ncase, with 1 redundant test removed, the estima... |
[
{
"msg_contents": ">Well, that's darn odd. It should not be getting that so far wrong.\n>What's the datatype of the status column exactly (I'm guessing varchar\n>but maybe not)? Would you show us the pg_stats row for the status column?\n\nIt has been created as a char(1) in fact. The pg_stats row for the stat... |
[
{
"msg_contents": "Hi,\r\n\r\nI have a table in my database that is updated every minute with new acquired\r\ndata. Anyway there is a query to get latest values to be displayed on\r\nscreen. I have postgresql 7.4.2 that work very fine. The problem was that\r\nafter hdd crash I have rebuild database from the arc... |
[
{
"msg_contents": "Hi,\n\n\nI tried to create a standby system as per the steps mentioned in the\nfollowing article\n\nhttp://archives.postgresql.org/sydpug/2006-10/msg00001.php.\n\nCan anybody let me know the steps which are supposed to be followed to make\nthe standby machine for read access? and how it shoul... |
[
{
"msg_contents": "We have a table which we want to normalize and use the same SQL to\nperform selects using a view. \nThe old table had 3 columns in it's index\n(region_id,wx_element,valid_time). \nThe new table meteocode_elmts has a similar index but the region_id is a\nreference to another table region_look... |
[
{
"msg_contents": "I have this table:\n\nCREATE TABLE test_zip_assoc (\n id serial NOT NULL,\n f_id integer DEFAULT 0 NOT NULL,\n lat_radians numeric(6,5) DEFAULT 0.00000 NOT NULL,\n long_radians numeric(6,5) DEFAULT 0.00000 NOT NULL\n);\nCREATE INDEX lat_radians ON test_zip_assoc USING btree (lat_r... |
[
{
"msg_contents": "Hello!\n\nI have strange situation. I`m testing performance of PostgreSQL database \nat different filesystems (ext2,ex3,jfs) and I cant say that JFS is as \nmuch faster as it is said.\nMy test look`s like that:\n\nServer: 2 x Xeon 2,4GHz 2GB ram 8 x HDD SCSI configured in RAID arrays \nlike ... |
[
{
"msg_contents": "I was recently running defrag on my windows/parallels VM and noticed \na bunch of WAL files that defrag couldn't take care of, presumably \nbecause the database was running. What's disturbing to me is that \nthese files all had ~2000 fragments. Now, this was an EnterpriseDB \ndatabase whi... |
[
{
"msg_contents": "The outer track / inner track performance ratio is more like 40 percent. Recent example is 78MB/s outer and 44MB/s inner for the new Seagate 750MB drive (see http://www.storagereview.com for benchmark results)\n\n- Luke\n\nMsg is shrt cuz m on ma treo\n\n -----Original Message-----\nFrom: \t... |
[
{
"msg_contents": "Dear,\nWe are facing performance tuning problem while using PostgreSQL Database \nover the network on a linux OS.\nOur Database consists of more than 500 tables with an average of 10K \nrecords per table with an average of 20 users accessing the database \nsimultaneously over the network. Eac... |
[
{
"msg_contents": "Dear,\nWe are facing performance tuning problem while using PostgreSQL Database \nover the network on a linux OS.\nOur Database consists of more than 500 tables with an average of 10K \nrecords per table with an average of 20 users accessing the database \nsimultaneously over the network. Eac... |
[
{
"msg_contents": "NUMERIC operations are very slow in pgsql. Equality comparisons are somewhat faster, but other operations are very slow compared to other vendor's NUMERIC.\n\nWe've sped it up a lot here internally, but you may want to consider using FLOAT for what you are doing.\n\n- Luke\n\nMsg is shrt cuz... |
[
{
"msg_contents": "Hi,\n\nI have pg 8.1.4 running in\nWindows XP Pro\nwirh a Pentium D\n\nand I notice that I can not use more than 50% of the cpus (Pentium D has 2 \ncpus), how can I change the settings to use the 100% of it.\n\nRegards,\nAndrew Retzlaff\n\n_____________________________________________________... |
[
{
"msg_contents": "Hi!\nI read the link below and am puzzled by or curious about something.\nhttp://www.postgresql.org/docs/8.1/interactive/datatype-character.html\n\nThe Tip below is intriguing\n\n\"Tip: There are no performance differences between these three types,\napart from the increased storage size whe... |
[
{
"msg_contents": "Hi!\nI read the link below and am puzzled by or curious about something.\nhttp://www.postgresql.org/docs/8.1/interactive/datatype-character.html\n\nThe Tip below is intriguing\n\n\"Tip: There are no performance differences between these three types,\napart from the increased storage size whe... |
[
{
"msg_contents": "Hi,\n\nWe're facing some perfomance problems with the database for a web site with\nvery specific needs. First of all, we're using version 8.1 in a server with\n1GB of RAM. I know memory normally should be more, but as our tables are not\nso big (as a matter of fact, they are small) I think t... |
[
{
"msg_contents": ">Well, that's darn odd. It should not be getting that so far wrong.\n\nI've been puzzling on this for over a week now, but can't seem to find a \nsolution. Would you have some more hints of what I could possibly try next? \nAs far as I can see, the mentioned status column is just a simple co... |
[
{
"msg_contents": "Perhaps one other interesting observation; when I earlier removed the status \ncheck for which the rows got so wrongly estimated, the query got \ndramatically faster. However, once I also remove all redundant checks the \nquery gets slower again.\n\nThis is the query with both status and redu... |
[
{
"msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHi!\n\nI'm currently experimenting with PostgreSQL 8.2.4 and table\npartitioning in order to improve the performance of an\napplication I'm working on.\n\nMy application is about managing measurement values (lots of!)\nI have one table \"t_mv\... |
[
{
"msg_contents": "Hello group, I need to design and develop a web reporting system to let \nusers query/view syslog files on a unix host. For now, I am \nconcentrating on the authentication file that has user logon \n(success/failure) and logoff records. The log file is logrotated every \nweek or so. My report... |
[
{
"msg_contents": "My pg 8.1 install on an AMD-64 box (4 processors) with 9 gigs of ram\nrunning RHEL4 is acting kind of odd and I thought I would see if anybody\nhas any hints.\n\n \n\nI have Java program using postgresql-8.1-409.jdbc3.jar to connect over\nthe network. In general it works very well. I have r... |
[
{
"msg_contents": "Hi,\n\nI am using postgres 8.1.3 for this. If this has been dealt with later, please disregard. And this is not a complaint or a request, I am just curious, so I know how to best construct my queries.\n\nThere is a unique index mapping domains to domain_ids.\n\nviews_ts specifies a partitio... |
[
{
"msg_contents": "Today's survey is: just what are *you* doing to collect up the \ninformation about your system made available by the various pg_stat views? \nI have this hacked together script that dumps them into a file, imports \nthem into another database, and then queries against some of the more \ninte... |
[
{
"msg_contents": "\n\n> ------- Original Message -------\n> From: Josh Berkus <josh@agliodbs.com>\n> To: pgsql-performance@postgresql.org\n> Sent: 03/05/07, 20:21:55\n> Subject: Re: [PERFORM] Feature Request --- was: PostgreSQL Performance Tuning\n> \n> \n> And let's not even get started on Windows.\n\nWMI is ... |
[
{
"msg_contents": "This is in Postgres 8.1.5\n\nI have a table like\nCREATE TABLE x (a VARCHAR, b VARCHAR, c VARCHAR);\nCREATE INDEX y on x(a);\nCREATE INDEX z on x(b);\n\nThere are over a million rows in 'x'. Neither a nor b are unique. \nThere are probably about 20 or so distinct values of a and 30 or so \ndi... |
[
{
"msg_contents": "I hope someone can help me with this vacuum problem. I can post more \ninfo if needed.\n\nVersions: Postgresql version 8.09 on FreeBSD 6.1\nSituation: huge amounts of adds and deletes daily. Running daily vacuums\nProblem: Vacuum times jump up from 45 minutes, or 1:30 minutes to 6+ \nhours... |
[
{
"msg_contents": "Dear All,\r\n\r\nI have several tables containing data sorted by 2 keys (neither are keys in db terms (not unique), however). I would like to retrieve all rows from all tables sorted by the same keys, essentially merging the contents of the tables together. While I am completely aware of sort... |
[
{
"msg_contents": "Hi,\n\nI am about to order a new server for my Postgres cluster. I will\nprobably get a Dual Xeon Quad Core instead of my current Dual Xeon.\nWhich OS would you recommend to optimize Postgres behaviour (i/o\naccess, multithreading, etc) ?\n\nI am hesitating between Fedora Core 6, CentOS and D... |
[
{
"msg_contents": "\n\nHello to all,\n\nI have a table that is used as a spool for various events. Some processes \nwrite data into it, and another process reads the resulting rows, do some \nwork, and delete the rows that were just processed.\n\nAs you can see, with hundreds of thousands events a day, this tab... |
[
{
"msg_contents": "I'm trying to come up with a way to estimate the need for a\nVACUUM FULL and/or a REINDEX on some tables.\n\n\nAccording to documentation[1], VACUUM FULL's only benefit is\nreturning unused disk space to the operating system; am I correct\nin assuming there's also the benefit of optimizing th... |
[
{
"msg_contents": "\nHi,\n\nDespite numerous efforts, we're unable to solve a severe performance limitation between Pg 7.3.2\nand Pg 8.1.4.\n\nThe query and 'explain analyze' plan below, runs in \n\t26.20 msec on Pg 7.3.2, and \n\t2463.968 ms on Pg 8.1.4, \n\nand the Pg7.3.2 is on older hardware and OS.\n\nMult... |
[
{
"msg_contents": "Hi,\n\n>You could always try\n>\n> CREATE INDEX test_index ON dbxref (accession varchar_pattern_ops);\n\nWOW! we're now at runtime 0.367ms on Pg8\n\nNext step is to initdb w/C Locale (tonight) (Thanks Tom et al.!).\n\nThanks again - will report back soon.\n\nSusan\n",
"msg_date": "Tue, ... |
[
{
"msg_contents": "This query does some sort of analysis on an email archive:\n\n SELECT\n eh_subj.header_body AS subject,\n count(distinct eh_from.header_body)\n FROM\n email JOIN mime_part USING (email_id)\n JOIN email_header eh_subj US... |
[
{
"msg_contents": "Does using DISTINCT in a query force PG to abandon any index search it might\nhave embarked upon?\n\n-- \nYudhvir Singh Sidhu\n408 375 3134 cell\n\nDoes using DISTINCT in a query force PG to abandon any index search it might have embarked upon?-- Yudhvir Singh Sidhu408 375 3134 cell",
"ms... |
[
{
"msg_contents": "I'm building a kiosk with a 3D front end accessing PostGIS/PostgreSQL \nvia Apache/PHP. The 3D display is supposed to show smooth motion from \nlocation to location, with PostGIS giving dynamically updated \ninformation on the locations. Everything runs on the same machine, \nand it all works... |
[
{
"msg_contents": "I am trying to follow a message thread. One guy says we should be running\nvacuum analyze daily and the other says we should be running vacuum multiple\ntimes a day. I have tried looking for what a vacuum analyze is to help me\nunderstand but no luck.\n\n-- \nYudhvir Singh Sidhu\n408 375 3134... |
[
{
"msg_contents": "Hi Everybody,\n\nI was trying to see how many inserts per seconds my application could\nhandle on various machines.\n\nThose are the machines I used to run my app:\n\n \n\n1) Pentium M 1.7Ghz\n\n2) Pentium 4 2.4 Ghz\n\n3) DMP Xeon 3Ghz\n\n \n\nSure, I was expecting the dual ... |
[
{
"msg_contents": "\nYes, I did not do it in one transaction. \nAll 3 machines are configured with the same OS and same version\npostgres.\nNo kernel tweaking and no postgres tweaking done (except the fsync)...\n\n-----Original Message-----\nFrom: Scott Marlowe [mailto:smarlowe@g2switchworks.com] \nSent: Tuesda... |
[
{
"msg_contents": "\n\n-----Original Message-----\nFrom: Orhan Aglagul \nSent: Tuesday, May 08, 2007 5:37 PM\nTo: 'Scott Marlowe'\nSubject: RE: [PERFORM]\n\nBut 10,000 records in 65 sec comes to ~153 records per second. On a dual\n3.06 Xeon....\nWhat range is acceptable?\n\n-----Original Message-----\nFrom: Sco... |
[
{
"msg_contents": "\nNo, it is one transaction per insert. \n\n-----Original Message-----\nFrom: Scott Marlowe [mailto:smarlowe@g2switchworks.com] \nSent: Tuesday, May 08, 2007 5:38 PM\nTo: Orhan Aglagul\nSubject: RE: [PERFORM]\n\nOn Tue, 2007-05-08 at 19:36, Orhan Aglagul wrote:\n> But 10,000 records in 65 sec... |
[
{
"msg_contents": "There's another odd thing about this plan from yesterday.\n\nQuery:\n\n SELECT\n eh_subj.header_body AS subject,\n count(distinct eh_from.header_body)\n FROM\n email JOIN mime_part USING (email_id)\n JOIN email_header e... |
[
{
"msg_contents": "Hello all,\n\nI am trying to move from GiST intarray index to GIN intarray index, but my\nGIN index is not being used by the planner.\n\nThe normal query is like that\n\nselect *\n from sourcetablewith_int4\n where ARRAY[myint] <@ myint_array\n and some_other_filters\n\n(with GiST index ev... |
[
{
"msg_contents": "That's email from my friend.\nAny hint?\n\n-------- Original Message --------\nSubject: bug\nDate: Wed, 09 May 2007 15:03:00 +0200\nFrom: Michal Postupalski\nTo: Andrzej Zawadzki\n\nWe've just changed our database from 8.1 to 8.2 and we are\ngrief-stricken about very poor performance with que... |
[
{
"msg_contents": "How do you specify a log file for vacuum verbose to send info to? I have\nverbose turned on but cannot see any log messages.\n\nI have upped maintenance_work_mem setting from 32768 to 98304. This is on a\n4 GB, 3.2 GHz Xeon, dual core, dual cpu with HTT turned on. I hope that\nhelps with vacu... |
[
{
"msg_contents": "Hi,\n\n \n\nI have several databases. They are each about 35gb in size and have about\n10.5K relations (count from pg_stat_all_tables) in them. Pg_class is about\n26k rows and the data directory contains about 70k files. These are busy\nmachines, they run about 50 xactions per second, ( ap... |
[
{
"msg_contents": "> I have several databases. They are each about 35gb in size and have about\n> 10.5K relations (count from pg_stat_all_tables) in them. Pg_class is\n> about 26k rows and the data directory contains about 70k files. These are\n> busy machines, they run about 50 xactions per second, ( aproxx... |
[
{
"msg_contents": "Ralph Mason wrote:\n\n> I have several databases. They are each about 35gb in size and have about\n> 10.5K relations (count from pg_stat_all_tables) in them. Pg_class is about\n> 26k rows and the data directory contains about 70k files. These are busy\n> machines, they run about 50 xaction... |
[
{
"msg_contents": "Dear list,\n\nI'm running postgres on a tomcat server. The vacuum is run every hour\n(cronjob) which leads to a performance drop of the tomcat applications.\nI played around with renice command and I think it is possible to reduce\nthis effect which a renice. The problem is how can I figure o... |
[
{
"msg_contents": "\n\nHi again,\n\nVery mixed news to report...\n\nRecap:\n\n\nI'd reported:\n> Despite numerous efforts, we're unable to solve a severe performance \n>limitation between Pg 7.3.2\n> and Pg 8.1.4.\n>\n> The query and 'explain analyze' plan below, runs in \n> \t26.20 msec on Pg 7.3.2, and \n> \t... |
[
{
"msg_contents": ">Quick reminders:\n>*) Did you recreate all the indexes on the new system after the initdb?\n>*) Did you vacuum and analyze after loading your data?\n\nNo, I didn't - am reindexing db now and will run vacuum analyze afterwards. \n\n>I suggest you provide \"explain analyze\" output fo... |
[
{
"msg_contents": "Hello again - \nvacuum analyze of db did the trick, thanks!\nlonger procedure went from over 6 hours to ~11 minutes....quite dramatic.\n\nReindexing wasn't necessary (did test on one db -slog-slog-, though).\n\nRegards,\nSusan\n",
"msg_date": "Thu, 10 May 2007 22:05:01 -0400 (EDT)",
"... |
[
{
"msg_contents": "\nThe following bug has been logged online:\n\nBug reference: 3270\nLogged by: Liviu Ionescu\nEmail address: ilgb@livius.net\nPostgreSQL version: 8.2.4\nOperating system: Linux\nDescription: limit < 16 optimizer behaviour\nDetails: \n\nI have a table of about 15Mro... |
[
{
"msg_contents": "\n \tHi guys,\n\n \tI'm looking for a database+hardware solution which should be able \nto handle up to 500 requests per second. The requests will consist in:\n \t- single row updates in indexed tables (the WHERE clauses will use \nthe index(es), the updated column(s) will not be indexed);\n ... |
[
{
"msg_contents": "We're in the process of upgrading our db server's memory from 2GB to 8GB to \nimprove access performance. This is a dedicated dual Xeon db server not \nrunning any significant non-db processes. Our database size on disk is \n~11GB, although we expect it to grow to ~20GB. Much of this data ... |
[
{
"msg_contents": "On May 5, 9:44 am, CharlesBlackstone <charlesblacksto...@hotmail.com>\nwrote:\n\n> I think a lot of people are aware that an Opteron system has less\n> bandwidth restrictions with a lot of processors, but that woodcrests\n> don't have as good a memory controller and fall behind opterons after... |
[
{
"msg_contents": "Anyone know of a pg_stats howto? I'd appreciate any direction.\n\nYudhvir\n",
"msg_date": "Sun, 13 May 2007 17:43:21 -0700",
"msg_from": "Yudhvir Singh Sidhu <ysidhu@gmail.com>",
"msg_from_op": true,
"msg_subject": "pg_stats how-to?"
},
{
"msg_contents": "Can you be a ... |
[
{
"msg_contents": "Daniel,\n\n> basically we have a transactional web application. The users can browse\n> through some entries in the database and start a bunch of heavy queries\n> that take up to 15 minutes (if multiple such heavy queries run in\n> parallel the performance of the database and webinterface dr... |
[
{
"msg_contents": "I'm trying to debug a query that gets all the French translations for \nall US string values. Ultimately, my goal is to rank them all by edit \ndistance, and only pick the top N.\n\nHowever, I cannot get the basic many-to-many join to return all the \nresults in less than 3 seconds, which ... |
[
{
"msg_contents": "Hello,\n\nI'm running version 8.2 with the bitmap index patch posted on pgsql-hackers. While selection queries with equality predicates (col = value) are able to make use of the bitmap index, those with IS NULL predicates (col IS NULL) are not able to use the bitmap index. The online manuals ... |
[
{
"msg_contents": "Dear all,\n\nAfter some time spent better understanding how the VACUUM process\nworks, what problems we had in production and how to improve our\nmaintenance policy[1], I've come up with a little documentation\npatch - basically, I think the documentation under estimates (or\nsometimes misses... |
[
{
"msg_contents": "Anyone seen PG filling up a 66 GB partition from say 40-ish percentage to\n60-ish percentage in a manner of minutes. When I run a 'fsck' the disk usage\ncomes down to 40-ish percentage. That's about 10+ GB's variance.\n\nThis is a FreeBSD 6.2 RC2, 4GB memory, Xeon 3.2 GHz '4' of the '8' CPUs ... |
[
{
"msg_contents": "I turned on all the stats in the conf file (below) and restarted the server.\nQuestion is, what's the name of the database and how do I run a simple\nselect query?\n\nstats_start_collector = true\nstats_command_string = true\nstats_block_level = true\nstats_row_level = true\nstats_reset_on_se... |
[
{
"msg_contents": "I've been taking notes on what people ask about on this list, mixed that \nup with work I've been doing lately, and wrote some documentation readers \nof this mailing list may find useful. There are a series of articles now \nat http://www.westnet.com/~gsmith/content/postgresql/ about perfor... |
[
{
"msg_contents": "Hi.\nI have the following join condition in a query\n\"posttag inner join tag ON posttag.tagid = tag.id and tag.name =\n'blah'\"\ntag.id is PK, I have indexes on posttag.tagid and tag.name both\ncreated with all the options set to default.\nPG version is 8.1.\n\n\nThe query is very slow (3 m... |
[
{
"msg_contents": "I sent this to pgsql-admin but didn't receive a response. Would this be\na WAL log performance/efficiency issue?\n\nThanks,\n\nKeaton\n\n\nGiven these postgresql.conf settings:\n\n#---------------------------------------------------------------------------\n# WRITE AHEAD LOG\n#--------------... |
[
{
"msg_contents": "We have a database running on a 4 processor machine. As time goes by the IO\ngets worse and worse peeking at about 200% as the machine loads up.\n\n \n\nThe weird thing is that if we restart postgres it’s fine for hours but over\ntime it goes bad again.\n\n \n\n(CPU usage graph here HYPERLIN... |
[
{
"msg_contents": "I recently tried to upgrade to 8.2.4, but major queries I wrote for 8.1.4 are now planned differently on 8.2.4 and are no longer usable. What the 8.1.4 planned as a series of 'hash left join's and took about 2 seconds now is planned as 'nested loop left joins' and takes forever.\n\nOther requ... |
[
{
"msg_contents": "I have an interesting problem. I have the following query that ran ok on Monday and Tuesday and it has been running ok since I have been at this job. I have seen it to be IO intensive, but since Wednesday it has become CPU intensive. Database wise fresh data has been put into the tables, vacu... |
[
{
"msg_contents": "We have recently ported our application to the postgres database. For\nthe most part performance has not been an issue; however there is one\nsituation that is a problem and that is the initial read of rows\ncontaining BYTEA values that have an average size of 2 kilobytes or\ngreater. For BYT... |
[
{
"msg_contents": "I need some help on recommendations to solve a perf problem.\n\nI've got a table with ~121 million records in it. Select count on it \ncurrently takes ~45 minutes, and an update to the table to set a value on \none of the columns I finally killed after it ran 17 hours and had still \nnot com... |
[
{
"msg_contents": "I have a two column table with over 160 million rows in it. As the size\nof the table grows queries on this table get exponentially slower. I am\nusing version 8.1.5 32-bit on Red Hat Enterprise Linux 3. The hardware\nis an Intel 3 Ghz Xeon with 4GB RAM, and 6 disks in a RAID 5\nconfigurat... |
[
{
"msg_contents": "I've tried searching the documentation to answer this question but could \nnot find anything. When trying to choose the optimal fillfactor for an \nindex, what is important the number of times the row is updated or the \ncolumn indexed upon is updated? In my case each row is updated on \naver... |
[
{
"msg_contents": "This may be the wrong list to post to but I thought I'd post here\nfirst since it is a performance related problem.\n\nEssentially, I'm looking for the most efficient way to break a\ndatabase into two 'shards' based on a top level table's\nprimary key. For example, split a sales database int... |
[
{
"msg_contents": "Hi,\nI have about 6 tables that inherit from one table. They all have the\nexact same indexes but when i try to query all by a row (which is\nindexed, btree) the QP decides to do sequential scan for some of them\n(the bigger tables) rather than use the index.\nAny ideas why that may happen?\n... |
[
{
"msg_contents": "\n\tI felt the world needed a new benchmark ;)\n\tSo : Forum style benchmark with simulation of many users posting and \nviewing forums and topics on a PHP website.\n\n\thttp://home.peufeu.com/ftsbench/forum1.png\n\n\tOne of those curves is \"a very popular open-source database which claims ... |
[
{
"msg_contents": "\n>\tI'm writing a full report, but I'm having a \n> lot of problems with MySQL, \n> I'd like to give it a fair chance, but it shows \n> real obstination in NOT \n> working.\n\nWell that matches up well with my experience, better even yet, file a performance bug to the commercial support an... |
[
{
"msg_contents": "Hi all,\n\nI know we've covered this before but I'm having trouble with it today.\n\nI have some geographic data in tables that I'm working with. I have a\ncountry, state and city table. I was selecting the country_name out of the\ncountry table but discovered that some countries (like Anta... |
[
{
"msg_contents": "Hi everyone,\n\nI am testing my shared_buffers pool and am running into a problem with slow\ninserts and commits. I was reading in several places that in the\n8.XPostgreSQL engines should set the shared_buffers closer to 25% of\nthe\nsystems memory. On me development system, I have done tha... |
[
{
"msg_contents": "\n\n\tWell, CLUSTER is so slow (and it doesn't cluster the toast tables \nassociated with the table to be clustered).\n\tHowever, when people use CLUSTER they use it to speed up their queries.\n\tFor that the table does not need to be perfectly in-order.\n\n\tSo, here is a new idea for CLUST... |
[
{
"msg_contents": "I found several post about INSERT/UPDATE performance in this group,\nbut actually it was not really what I am searching an answer for...\n\nI have a simple reference table WORD_COUNTS that contains the count of\nwords that appear in a word array storage in another table.\n\nCREATE TABLE WORD_... |
[
{
"msg_contents": "Hi,\n\nI have a table with a file size of 400 MB with an index of 100 MB. Does PostgreSQL take the file sizes of both the table and the index into account when determing if it should do a table or an index scan? \n\nTIA\n\nJoost\n",
"msg_date": "Tue, 22 May 2007 11:29:46 +0200",
"msg_... |
[
{
"msg_contents": "Hi all,\n\n I have some tables where all the queries that will be executed are \ntimestamps driven, so it'd be nice to have an index over those fields.\n\n On older versions of PostgreSQL, at least in my experience, queries \non timestamps fields even having indexes where performing quite... |
[
{
"msg_contents": "Hi,\n\nOut of curiosity, can anyone share his tips & tricks to validate a \nmachine before labelling it as 'ready to use postgres - you probably \nwon't trash my data today' ?\nI'm looking for a way to stress test components especially kernel/disk \nto have confidence > 0 that I can use postg... |
[
{
"msg_contents": "Are there any performance improvements that come from using a domain \nover a check constraint (aside from the ease of management component)?\n\nthanks\n\n-- \nChander Ganesan\nOpen Technology Group, Inc.\nOne Copley Parkway, Suite 210\nMorrisville, NC 27560\nPhone: 877-258-8987/919-463-0999... |
[
{
"msg_contents": "My application has two threads, one inserts thousands of records per second into a table (t1) and the other thread periodically deletes expired records (also in thousands) from the same table (expired ones). So, we have one thread adding a row while the other thread is trying to delete a ... |
[
{
"msg_contents": "Consider table partitioning (it's described in the manual).\n\nAndreas\n\n-- Ursprüngl. Mitteil. --\nBetreff:\t[PERFORM] Drop table vs Delete record\nVon:\t\"Orhan Aglagul\" <oaglagul@cittio.com>\nDatum:\t\t22.05.2007 18:42\n\n\nMy application has two threads, one inserts thousands of record... |
[
{
"msg_contents": "You forgot pulling some RAID drives at random times to see how the hardware deals with the fact. And how it deals with the rebuild afterwards. (Many RAID solutions leave you with worst of both worlds, taking longer to rebuild than a restore from backup would take, while at the same ime provid... |
[
{
"msg_contents": "\nHi,\n\nWe're seeing these type of error messages:\n\nNOTICE: number of page slots needed (237120) exceeds max_fsm_pages (120000)\nHINT: Consider increasing the configuration parameter \"max_fsm_pages\" to a value over 237120.\nvacuumdb: vacuuming database \"fb_2007_01_17\"\n\nI've played ... |
[
{
"msg_contents": "Hi, \n \nI have a table with varchar and text columns, and I have to search through\nthese text in the whole table. \n \nAn example would be:\nSELECT * FROM table\n WHERE name like '%john%' or street like '%srt%'\n \nAnyway, the query planner always does seq scan o... |
[
{
"msg_contents": "I am a newbie, as you all know, but I am still embarassed asking this\nquestion. I started my tuning career by changing shared_buffers. Soon I\ndiscovered that I was hitting up against the available RAM on the system.\nSo, I brought the number down. Then I discovered max_fsm_pages. I could ta... |
[
{
"msg_contents": "Hi Tom,\n\n>What PG version is that? I recall we fixed a problem recently that\n>caused the requested max_fsm_pages to increase some more when you'd\n>increased it to what the message said.\n\n8.1.4 \n\nAs Vivek suggested, we are implementing more regular vacuuming.\n\nThanks!\nSusan\n",
... |
[
{
"msg_contents": "Is there any easy way to take a database and add/delete records to create\nfragmentation of the records and indexes. I am trying to recreate high\nvacuum times.\n\n-- \nYudhvir Singh Sidhu\n408 375 3134 cell\n\nIs there any easy way to take a database and add/delete records to\ncreate fragmen... |
[
{
"msg_contents": "Hi Tom - thanks for the additional/confirming info.\n\n>So you definitely have got a problem of needing more vacuuming...\n\nYes, we're going to nightly, as I said in last message, however, \nit worse than this.....\n\nI found that *1* vacuum analyze works well in many instances to \nhel... |
[
{
"msg_contents": "Hi,\n\nwith that setup you should vacuum aggressivley.\nI'd send a vacuum statement in a third thread every 15 minutes or so.\n\nThe table renaming trick doesn't sound very handy or even\nnecessary...\n\nBye,\nChris.\n\n\n\n > Date: Tue, 22 May 2007 14:38:40 -0400\n > From: \"Orhan Aglagul\" ... |
[
{
"msg_contents": "Auto-vacuum has made Postgres a much more \"friendly\" system. Is there some reason the planner can't also auto-ANALYZE in some situations?\n\nHere's an example I ran into:\n\n create table my_tmp_table (...);\n insert into my_tmp_table (select some stuff from here and there);\n select... |
[
{
"msg_contents": "Hi all,\n\n \n\nI have a 4 CPU, 4GB Ram memory box running PostgreSql 8.2.3 under Win 2003 in a very high IO intensive insert application.\n\n \n\nThe application inserts about 570 rows per minute or 9 rows per second.\n\n \n\nWe have been facing some memory problem that we cannot understand.... |
[
{
"msg_contents": "Hi *,\nfor caching large autogenerated XML files, I have created a bytea table \nin my database so that the cached files can be used by multiple servers. \nThere are about 500 rows and 10-20 Updates per minute on the table. The \nfiles stored in the bytea are anything from 10kB to 10MB. My Po... |
[
{
"msg_contents": "\nI set up pg to replace a plain gdbm database for my application. But\neven running to the same machine, via a unix socket\n\n * the pg database ran 100 times slower \n\nAcross the net it was\n\n * about 500 to 1000 times slower than local gdbm\n \nwith no cpu use to speak of.\n\nI'd hea... |
[
{
"msg_contents": "Hi all,\n\n I have a doubt/problem about how PostgreSQL handles multiple DDBB \ninstances running on a same server and how I should design the \narchitecture of an application.\n\n I have an application that works with multiple customers. Thinking in \nscalability we are thinking in apply... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.