threads
listlengths
1
275
[ { "msg_contents": "I'm about to buy a combined web- and database server. When (if) the site \ngets sufficiently popular, we will split the database out to a separate \nserver.\n\nOur budget is limited, so how should we prioritize?\n\n* We think about buying some HP Proliant server with at least 4GB ram \nand at...
[ { "msg_contents": "Good morning,\n\nTried to compare Table1 based on Table2\n\n. update table1.col = false\n if table1.pk_cols not in table2.pk_cols\n\n\n\nFor the following two ways, (2) always performs better than (1) right,\nand I need your inputs.\n=========================================================...
[ { "msg_contents": "Hi\n\nI am working on a table which stores up to 125K rows per second and I \nfind that the inserts are a little bit slow. The insert is in reality a \nCOPY of a chunk of rows, up to 125K. A COPY og 25K rows, without an \nindex, is fast enough, about 150ms. With the index, the insert takes \n...
[ { "msg_contents": "Hi, there.\n\nI have encountered an issue that there are too many \nclog file under the .../pg_clog/ directory. Some of them \nwere even produced one month ago.\n\nMy questions:\n- Does Vacuum delete the old clog files?\n- Can we controll the maximum number of the clog files?\n- When, or in w...
[ { "msg_contents": "Hi,\n\n \n\nI have a single table with about 10 million rows, and two indexes. Index A\nis on a column A with 95% null values. Index B is on a column B with about\n10 values, ie. About a million rows of each value.\n\n \n\nWhen I do a simple query on the table (no joins) with the following\...
[ { "msg_contents": "Hello\n\nyou should partial index\n\ncreate index foo(b) on mytable where a is null;\n\nregards\nPavel Stehule\n\n2008/9/1 David West <david.west@cusppoint.com>:\n> Hi,\n>\n>\n>\n> I have a single table with about 10 million rows, and two indexes. Index A\n> is on a column A with 95% null va...
[ { "msg_contents": "for a short test purpose, I would like to see what queries are running and how long each of them takes.....by reconfiguring postgres.conf on the server level.\n\nlog_statement = 'all' is giving me the query statements.. but I don't know where I can turn \"timing\" on just like what I can run...
[ { "msg_contents": "Hi David,\n\nEarly in this thread, Pavel suggested:\n\n> you should partial index\n> \n> create index foo(b) on mytable where a is null;\n\nRather, you might try the opposite partial index (where a is NOT null) as a replacement for the original unqualified index on column A. This new index w...
[ { "msg_contents": "Hello,\n\nwe had problems with queries via dblink needing more than three times as long as without dblink on the same server. This has been tested with v8.3.3 as well. Is this still an issue?: http://cunha17.cristianoduarte.pro.br/postgresql/snapshots.en_us.php\n\n\"But the two suffer from a ...
[ { "msg_contents": "Hi !\n\nTo improve our software insert datas performance, we have decided to use\npartition architecture in our database. It works well for the following volume :\n45 main tables and 288 inherited daughter tables for each, that is a total of\n12960 partitions.\n\nI have some trouble now with ...
[ { "msg_contents": "I have the honor to be configuring Postgres to back into a NetApp FAS3020\nvia fiber.\n\nDoes anyone know if the SAN protects me from breakage due to partial page\nwrites?\n\nIf anyone has an SAN specific postgres knowledge, I'd love to hear your\nwords of wisdom.\n\nFor reference:\n[postgres...
[ { "msg_contents": "Hello,\n \n I am running a select on a large table with two where\n conditions.\n Explain analyze shows that the estimated number of rows returned\n (190760) is much more than the actual rows returned (58221),\n which is probably the underlying cause ...
[ { "msg_contents": "Hi,\nI have a virtual server with 256 MB of RAM. I am using it as a \nwebserver, mailserver and for postgres. So there is something like 150MB \nleft for postgres.\n\nHere are my configs (I haven't benchmarked...)\nmax_connections = 12 (I think, I will not have more parallel \nconnections, be...
[ { "msg_contents": "Hi everyone,\n\nsome erp software requires a change of my pgsql cluster from\n\tlocale C\t\tencoding UTF-8\nto\n\tlocale de_DE.UTF-8\tencoding UTF-8\n\nMost of my databases have only ASCII text data (8 bit UTF8 code range) \nin the text columns.\nDoes the above change influence index perform...
[ { "msg_contents": "Hi Kiran,\n\nYou gave great info on your problem.\n\nFirst, is this the query you're actually trying to speed up, or is it a simplified version? It looks like the optimizer has already chosen the best execution plan for the given query. Since the query has no joins, we only have to consider...
[ { "msg_contents": "Preliminaries:\n\npg 8.3.3 on ubuntu 7.10\n4x1.66GHz CPUs\n10G ram\ninteresting postgresql.conf settings:\n\nmax_connections = 300\nshared_buffers = 3000MB\nwork_mem = 32MB\nrandom_page_cost = 1.5\neffective_cache_size = 5000MB\ndefault_statistics_target = 30\nlc_messages = 'en_US.UTF-8'\n\nO...
[ { "msg_contents": "If like me you've been reading all the flash SSD drive reviews that come \nout, you might have also noticed that the performance on write-heavy \nworkloads hasn't been too far ahead of traditional drives. It's typically \nbeen hit or miss as to whether the SDD would really be all that much \...
[ { "msg_contents": "I've recently installed another drive in my db server and was wondering what\nthe best use of it is. Some thoughts I have are:\n\n\n1. Move some of the databases to the new drive. If this is a good idea, is\nthere a way to do this without a dump/restore? I'd prefer to move the folder\nif poss...
[ { "msg_contents": "Hi Duan,\n\nAs others have said, you should probably attempt to run pg_dump to export your database. If that doesn't work, consider restoring from backup. If the dump does work, you can create a clean PGDATA directory (using initdb like when you setup your original installation), and create...
[ { "msg_contents": "I read something from http://monetdb.cwi.nl/projects/monetdb/SQL/Benchmark/TPCH/index.html saying that PostgreSQL can't give the correct result of the some TPC-H queries, I wonder is there any official statements about this, because it will affect our plane of using PostgreSQL as an alternati...
[ { "msg_contents": "Hi out there,\n\nI've some little questions, perhaps you can help me...\n\nAt the moment, we're planning our new clustered ERP system which\nconsists of a java application server and a postgresql database. The\nhardware, which is actually used for that system isn't able to handle\nthe workloa...
[ { "msg_contents": "Hi all,\n\nI've started to display the effects of changing the Linux block device\nreadahead buffer to the sequential read performance using fio. There\nare lots of raw data buried in the page, but this is what I've\ndistilled thus far. Please have a look and let me know what you\nthink:\n\...
[ { "msg_contents": "Greetings,\n\nI'm relatively new to PostgreSQL but I've been in the IT applications \nindustry for a long time, mostly in the LAMP world.\n\nOne thing I'm experiencing some trouble with is running a COPY of a \nlarge file (20+ million records) into a table in a reasonable amount of \ntime. C...
[ { "msg_contents": "NEVERMIND!!\n\nI found it. Turns out there was still a constraint on the table. Once \nI dropped that, the time went down to 44 minutes.\n\nMaybe I am an idiot after all. :)\n\n-Ryan\n\nGreetings,\n\nI'm relatively new to PostgreSQL but I've been in the IT applications \nindustry for a long...
[ { "msg_contents": "I'm about to buy a new server. It will be a Xeon system with two \nprocessors (4 cores per processor) and 16GB RAM. Two RAID extenders \nwill be attached to an Intel s5000 series motherboard, providing 12 \nSAS/Serial ATA connectors.\n\nThe server will run FreeBSD 7.0, PostgreSQL 8, apache, ...
[ { "msg_contents": "I'm trying to optimize postgres performance on a headless solid state\nhardware platform (no fans or disks). I have the database stored on a\nUSB 2.0 flash drive (hdparm benchmarks reads at 10 MB/s). Performance is\nlimited by the 533Mhz CPU.\n\nHardware:\nIXP425 XScale (big endian) 533Mhz 64...
[ { "msg_contents": "Hi,\n\nIs it possible to put Statement timeout at User Level.\nLike If i have a user like 'guest', Can i put a statement timeout for it.\n\n-- \nRegards\nGauri\n\nHi,Is it possible to put Statement timeout at User Level.Like If i have a user like 'guest', Can i put a statement timeout for it....
[ { "msg_contents": "List,\n\nI'm a bit confused as to why this query writes to the disk:\nSELECT count(*)\nFROM bigbigtable\nWHERE customerid IN (SELECT customerid FROM\nsmallcustomertable)\nAND x !=\n'special'\n\nAND y IS NULL\n\nIt writes a whole bunch of data to the disk that has the tablespace where\nbigb...
[ { "msg_contents": "I have two identical queries except for the date range. In the first case,\nwith the wider date range, the correct (I believe) index is used. In the\nsecond case where the date range is smaller a different index is used and a\nless efficient plan is chosen. In the second query the problem see...
[ { "msg_contents": "Hi there,\n\nI am still concerned about this problem, because there is a big differences \nbetween the two cases, and I don't know how to identify the problem. Can \nanybody help me, please ?\n\nTIA,\nSabin \n\n\n", "msg_date": "Mon, 22 Sep 2008 23:40:15 +0300", "msg_from": "\"Sabin C...
[ { "msg_contents": "Hello,\n\nI'm running into performance issues with various queries on a \nPostgreSQL database (of books). I'm having trouble understanding the \nthinking behind the query planner in this scenario:\nhttp://dpaste.com/hold/80101/\n(also attached at bottom of email)\n\nRelation sizes:\ndimens...
[ { "msg_contents": "When displaying information about information about an user in our\nsite, I noticed an unreasonable slowdown. The culprit turned out to be\na trivial select, which determines the number of comments left by an\nuser:\n\nselect count(*) from comments where created_by=80 and status=1;\n\n\nThe c...
[ { "msg_contents": "Hi again,\n\nShould I use gjournal on FreeBSD 7? Or just soft updates?\n\nHere is my opinion: I suspect that gjournal would be much slower than\nsoft updates. Also gjournal is relatively new code, not very well\ntested. But gjournal is better when the system crashes. Although I have\nheard th...
[ { "msg_contents": "\nHi all. I'm having an interesting time performance-wise with a set of indexes. \nAny clues as to what is going on or tips to fix it would be appreciated.\n\nMy application runs lots of queries along the lines of:\n\nSELECT * from table where field IN (.., .., ..);\n\nThere is always an inde...
[ { "msg_contents": "Hello,\n\npostmaster heavily loads processor. The database is accessed from java\naplication (with several threads), C applications and from PHP scripts.\n\nIt seems that one php script, called periodicaly, rises the load but the\nscript is very simple, something like this:\n\n$var__base = ne...
[ { "msg_contents": "I've just had an interesting encounter with the slow full table update \nproblem that is inherent with MVCC\n\nThe system is 64 bit linux with 2.6.25 kernel feeding scsi disks.\n\nthe table is\n\nCREATE TABLE file (\n fileid integer NOT NULL,\n fileindex integer DEFAULT 0 NOT NULL,\n ...
[ { "msg_contents": "Hello\n\nI'm running pgsql 8.1.11 (from debian stable) on a server with 16GB RAM\n(Linux helios 2.6.18-6-amd64 #1 SMP Tue Aug 19 04:30:56 UTC 2008 x86_64\nGNU/Linux).\nI have a table \"tickets\" with 1 000 000 insert by month ( ~2600 each 2hours\n) (for the moment 13000000 rows for 5GB )\nand...
[ { "msg_contents": "I have two identical databases that run the same query each morning. Starting this morning, something caused the first db to start using a different execution plan for the query, resulting in much worse performance. I've have tried several things this morning, but I am currently stumped on ...
[ { "msg_contents": "Setting enable_nestloop = off did result in a hash join, so I also set enable_hashjoin = off.\n\nThe new plan from the slower db:\n QUERY PLAN \n-----------------...
[ { "msg_contents": "Tom,\n\nYou nailed it. The t1 table was using 9600 relpages versus 410 after the vacuum full. The two databases are now showing similar execution plans and times.\n\nThanks for your help. It is greatly appreciated.\n\nDoug Eck\n\n\n\n----- Original Message ----\nFrom: Tom Lane <tgl@sss.pgh...
[ { "msg_contents": "Hi,\n\nWe have a table called \"table1\" which contains around 638725448 records.\nWe created a subset of this table and named it as \"new_table1\" which has\naround 120107519 records.\n\n\"new_table1\" is 18% of the the whole \"table1\".\n\nIf we fire the below queries we are not finding any...
[ { "msg_contents": "Hi!\n\n(The question is why this simple select takes me 20 minutes to run...)\n\nI have two tables with address data and result data from two different runs\nof two different geocoding engines. I want the count of result data\ndifferences when the output address data matches.\n\nIn essence, I...
[ { "msg_contents": "I have two fairly simple tables as described below. The relationship \nbetween them is through assignment_id. The problem is when I try to \njoin these two tables the planner does a sequential scan on \nfa_assignment_detail and the query takes forever to resolve. I've run \nthe usual vacuu...
[ { "msg_contents": "Hello.\n\nI have a database with company table that have a bunch of related\n(delete=cascade) tables.\nAlso it has 1<->M relation to company_descr table.\nOnce we've found that ~half of our companies do not have any description and\nwe would like to remove them.\nFirst this I've tried was\nde...
[ { "msg_contents": "I have a problem where by an insert on a \"large\" table will sometimes\ntake longer than usual.\n\nUsually the inserts are quick then from time to time they will take a\nlong time sometimes as much as 10seconds or longer. (But usually under\n500ms which is when I start logging them)\n\nThe q...
[ { "msg_contents": "Hi,\n\nwe have a log table on one server with 1.9 million records.\n\nOne column \"event\" (type text) in that table is a string that (currently) \ntakes a small number of distinct values (~43) (hmm that could have been \nnormalised better).\n\nWe noted on querying for events of a specific ty...
[ { "msg_contents": "Hi,\n\nI have a table sct_descriptions which I have vacuumed, analyzed and\nreindexed. The index is on term_index\n\nINFO: analyzing \"public.sct_descriptions\"\nINFO: \"sct_descriptions\": scanned 3000 of 22861 pages, containing\n91877 live rows and 0 dead rows; 3000 rows in sample, 70013...
[ { "msg_contents": "\nOne of our build servers recently ran out of disc space while trying to \ncopy an entire database. This led me to investigate the database cluster, \nwhich is stored on a RAID array with a total size of 1TB. Running a query \nto list all databases and their sizes did not add up to the amoun...
[ { "msg_contents": "Hi there,\n\nI use different functions returning setof record, and they are working well. \nThe problem is the performance when I use those functions in joins, for \ninstance:\n\n SELECT *\n FROM \"Table1\" t1\n JOIN \"Function1\"( a1, a2, ... aN ) AS f1( ColA int...
[ { "msg_contents": "\nOk, I know that such an open and vague question like this one\nis... well, open and vague... But still.\n\nThe short story:\n\nJust finished an 8.3.4 installation on a new machine, to replace\nan existing one; the new machine is superior (i.e., higher\nperformance) in virtually every way...
[ { "msg_contents": "Hi there,\n\nI've been toying with using PostgreSQL for some of my Drupal sites for \nsome time, and after his session at OpenSourceDays in Copenhagen last \nweekend, Magnus Hagander told me that there a quite a few in the \nPostgreSQL community using Drupal.\n\nI have been testing it a bi...
[ { "msg_contents": "I'm running a medium-traffic Web site that has been running for a few \nyears, and which uses about four PostgreSQL databases on a regular \nbasis. I'm currently running 8.2, although I'm planning to upgrade to \n8.3 in the coming week or two, in part because of the problems that I'm \nhavin...
[ { "msg_contents": "I have an interesting performance improvement need. As part of the automatic\ntest suite we run in our development environment, we re-initialize our test\ndatabase a number of times in order to ensure it is clean before running a\ntest. We currently do this by dropping the public schema and t...
[ { "msg_contents": "Good day,\n\nSo I've been running 8.3 for a few months now and things seem good.\n\nI also note there are some bug fixes and you are up to 8.3.4 now, but\nreading it I don't see that I'm being affected by anything, but please\ntell me if i should plan upgrades to 8.3.4..\n\nThe real issue is ...
[ { "msg_contents": "Hello friends ...\n\nI'm evaluating the performance of algorithms for optimization of queries.\nI am comparing results between the algorithm of Dynamic Programming and an\nimplementation of Kruskal's algorithm. When submitting a query that makes\nreference to only 2 tables of my base, logical...
[ { "msg_contents": "Hi!!!\n\nI'm evaluating the performance of algorithms for optimization of queries.\nI am comparing results between the algorithm of Dynamic Programming and\nGEQO algorithm.\n\nI use the base and queries provided by the benchmark OSDL DBT3 with scale\nfactor = 1. The queries were submitted ran...
[ { "msg_contents": "Hello,\n\nI have to choose a dedicated server to host a big 8.3 database.\nThe global size of the database (indexes included) will grow by 40 Go every \nyear (40 millions of lines/year)\nReal data (indexes excluded) will be around 5-7 Go/year.\nI need to store 4 years of activity.\nVery few s...
[ { "msg_contents": "Hello,\n\nI have a question regarding the maintenance_work_mem and the index creation. \n\nI have a dedicated postgresql server with 16GB of RAM. \nThe shared_buffers is 4GB and the maintenance_work_mem is 2GB. \n\nI have a table with 28 mil records and 2 one-column indexes: \n1. First index ...
[ { "msg_contents": "Hi,\n\nI've got an OLTP application which occasionally suffers from slow\ncommit time. The process in question does something like this:\n\n1. Do work\n2. begin transaction\n3. insert record\n4. commit transaction\n5. Do more work\n6. begin transaction\n7. update record\n8. commit transaction...
[ { "msg_contents": "Hi there,\n\nI configured OpenSolaris on our OpenSolaris Machine. Specs:\n\n2x Quad 2.6 Ghz Xeon\n64 GB of memory\n16x 15k5 SAS\n\nThe filesystem is configured using ZFS, and I think I have found a \nconfiguration that performs fairly well.\n\nI installed the standard PostgreSQL that came wit...
[ { "msg_contents": "Hi everybody,\n\nI am running a bake/load test and I am seeing sudden, daily shifts\nfrom CPU utilization to IO wait. The load harness has been running\nfor 3 weeks and should be putting a uniform load on the application.\nThe application processes data on a daily basis and a sawtooth CPU\np...
[ { "msg_contents": "I've run across a strange problem with PG 8.3.3 not using indexes on a\nparticular table after building the table during a transaction.\n\nYou can see a transcript of the issue here:\n\nhttp://gist.github.com/21154\n\nInterestingly, if I create another temp table 'CREATE TEMP TABLE AS\nSELECT...
[ { "msg_contents": "What is the general consensus around here ... to have many smaller tables, or have a few large tables?\n\nI'm looking at a db model where a client has around 5500 spatial (PostGIS) tables, where the volume of each one varies \ngreatly ... from a few hundred rows to over 250,000.\n\nSpeed is o...
[ { "msg_contents": "Hi,\n\nI have a small problem. I have one view which sum's a another tables field and \nuses that sum for several things including filtering. Every time it uses the \nthat summarised field in other queries or views, the planner seems to duplicate \nthe SUM. Isn't it possible for the planner o...
[ { "msg_contents": "Dear All,\n\n\nRecently i have released the next version of the epqa. which is a very\nuseful tool for, gives input for optimizing psql queries, and fine tuning\nit.\n\nepqa is tool similar like, pqa. But designed and implemented to parse log\nfiles which is in GB's. Report is similar like t...
[ { "msg_contents": "Hello.\n\nFor a long time already I can see very poor OR performance in postgres.\nIf one have query like \"select something from table where condition1 or\ncondition2\" it may take ages to execute while\n\"select something from table where condition1\" and \"select something from\ntable wher...
[ { "msg_contents": "Hello,\n\nI've had the feeling for a while that the pg_stat_bgwriter statistics\ndoesn't work quite the way I have understood it (based on the\nexcellent [1] and the pg docs).\n\nI am now monitoring a database that has an lru_multiplier of 4.0, a\ndelay of 200ms and a maxpages of 1000. Curren...
[ { "msg_contents": "We recently upgraded the databases for our circuit court applications\nfrom PostgreSQL 8.2.5 to 8.3.4. The application software didn't\nchange. Most software runs fine, and our benchmarks prior to the\nupdate tended to show a measurable, if not dramatic, performance\nimprovement overall. W...
[ { "msg_contents": "So, we had a query run accidentally without going through the right checks\nto ensure that it had the right limits in a where clause for our table\npartitioning, resulting in an attempt to scan TB's of data.\n\nObviously, we fixed the query, but the curious result is this explain plan\n(short...
[ { "msg_contents": "Hi all\n \nMy database server db01 is on linux environment and size of base folder increasing very fast unexpectedly(creating renamed files of 1 GB in base folder like 1667234568.10)\ndetails as below\n \npath of the table space/base file\n \n/opt/appl/pgsql82/data/base/453447624/\n \n[postgr...
[ { "msg_contents": "Dear List,\n\nI would like to improve seq scan performance. :-)\n\nI have many cols in a table. I use only 1 col for search on it. It is \nindexed with btree with text_pattern_ops. The search method is: r like \n'%aaa%'\nWhen I make another table with only this col values, the search time i...
[ { "msg_contents": "Why is this view 9x slower than the base table?\n\ncnuapp_prod@postgres06.nut=# explain analyze select count(*) from \nloan_tasks_committed;\n \nQUERY PLAN\n----------------------------------------------------------------------...
[ { "msg_contents": "I found that simple IN query on indexed tables takes too much time.\n\ndok and rid have both indexes on int dokumnr columnr and dokumnr is not \nnull.\nPostgreSql can use index on dok or event on rid so it can executed fast.\n\nHow to make this query to run fast ?\n\nAndrus.\n\n\n\nnote: list...
[ { "msg_contents": "Hi,\n\nI have table with cca 60.000 rows and\nwhen I run query as:\n Update table SET column=0;\nafter 10 minutes i must stop query, but it still running :(\n\nI've Postgres 8.1 with all default settings in postgres.conf\n\nWhere is the problem?\n\nThak you for any tips.\n\nbest regards.\nMar...
[ { "msg_contents": "Hi All,\nThank you all in advance for your answers.\n \nMy application does bulk inserts on a table (50,000 rows concurrently by 10\nthreads), There are 3 indexes on the table whose update takes a lot of time.\n(Deleting those indexes speeds up inserts).\nOne thing I have noticed in my task m...
[ { "msg_contents": "Index is not used for\n\n is null\n\ncondition:\n\ncreate index makse_dokumnr_idx on makse(dokumnr);\nexplain select\n sum( summa)\n from MAKSE\n where dokumnr is null\n\n\"Aggregate (cost=131927.95..131927.96 rows=1 width=10)\"\n\" -> Seq Scan on makse (cost=0.00..131927.94 row...
[ { "msg_contents": "I've been searching for performance metrics and tweaks for a few weeks now. I'm trying to determine if the length of time to process my queries is accurate or not and I'm having a difficult time determining that. I know postgres performance is very dependent on hardware and settings and I und...
[ { "msg_contents": "There are columns\n kuupaev date, cr char(10), db char(10)\n and regular indexes for all those fields.\nbilkaib table contains large number of rows.\n\nThe following query takes too much time.\nHow to make it faster ?\nI think PostgreSql should use multiple indexes as bitmaps to speed it.\n...
[ { "msg_contents": "Hi,\n\nI have to manage a database that is getting way too big for us.\nCurrently db size is 304 GB.\n\nOne table is accounting for a third of this space.\nThe table itself has 68.800.000 tuples, taking 28GB.\n\nThere are 39 indices on the table, and many of them use multiple\ncolumns. A lot ...
[ { "msg_contents": "Hello !\n\nSorry for the subject, I didn't found a better one ! :-/\n\nI'm having a problem with this query (below) that takes betweend 14 and \n15 seconds to run, which is too long for the end-user.\n\nI've done a EXPLAIN ANALYZE (below below) but I'm having difficulties to \nsee which part ...
[ { "msg_contents": "ok, I have an application that I am trying to speed up. Its a reporting\napplication that makes heavy use of the crosstab function.\n\nHere is some of the setup / configuration details:\nPostgres 8.3.3\nRedHat Enterprise 5.2 (2.6.18 kernel)\nsun x4600, 8 dual core opteron 8218 processors, 32...
[ { "msg_contents": "I have a database in a production server (8.1.9) with to schema \ncontaining the sames table same index, same every thing, but with \ndifferent data. When I execute a query in one schema, it take much more \ntime to execute then the other schema. I've issue the query plan and \nit's different...
[ { "msg_contents": "Thanks,\n\nI'm already doing a vacuum full every night on all database, but the REINDEX fix it and now it's working fine\n\nBut this raise a question\n\n1) This table is cleared every night and recomputed, does this mean that I should REINDEX every night also\n\n2) Why this thing didn't happe...
[ { "msg_contents": "Hi folks,\n\nI have a simple table that keeps track of a user's access history.\nIt has a a few fields, but the important ones are:\n - ownerId: the user's ID, a int8\n - accessTS: the timestamp of the record\n\nThe table right now is small, only 1942 records.\nThe user I test with (10015) ...
[ { "msg_contents": "Hi. I have a Perl script whose main loop generates thousands of SQL updates\nof the form\nUPDATE edge SET keep = true WHERE node1 IN ( $node_list ) AND node2 =\n$node_id;\n\n...where here $node_list stands for a comma-separated list of integers, and\n$node_id stands for some integer.\n\nThe ...
[ { "msg_contents": "Hello.\n\nIt's second query rewrite postgresql seems not to handle - making EXCEPT\nfrom NOT IT.\nHere is an example:\nPreparation:\n\ndrop table if exists t1;\ndrop table if exists t2;\ncreate temporary table t1(id) as\nselect\n(random()*100000)::int from generate_series(1,200000) a(id);\n\n...
[ { "msg_contents": "Hi,\n\nI have defined sequence on a table something like this\n\n\nCREATE SEQUENCE items_unqid_seq\n INCREMENT 1\n MINVALUE 0\n MAXVALUE 9223372036854775807\n START 7659\n CACHE 1;\n\nthis is on a table called items. where i have currently the max(unq_id) as\n7659.\n\nand in the stored p...
[ { "msg_contents": "Query below seems to use indexes everywhere in most optimal way.\ndokumnr column is of type int\n\nSpeed of this query varies rapidly:\n\nIn live db fastest response I have got is 8 seconds.\nRe-running same query after 10 seconds may take 60 seconds.\nRe-running it again after 10 seconds ma...
[ { "msg_contents": "Hi chaps,\n\nI've had this old card sitting on my desk for a while. It appears to be a U160 card with 128Mb BBU so I thought I'd wang it in my test machine (denian etch) and give it a bash.\n\nI set up 4 36Gb drives in raid 0+1, but I don't seem to be able to get more than 20MB/s write speed ...
[ { "msg_contents": "Both queries return same result (19) and return same data.\nPattern query is a much slower (93 sec) than equality check (13 sec).\nHow to fix this ?\nUsing 8.1.4, utf-8 encoding, et-EE locale.\n\nAndrus.\n\nSELECT sum(1)\n FROM dok JOIN rid USING (dokumnr)\n JOIN toode USING (toode)\n ...
[ { "msg_contents": "There are indexes on rid(dokumnr) and dok(dokumnr) and dokumnr is int.\nInstead of using single key index, 8.1.4 scans over whole rid table.\nSometimes idtelluued can contain more than single row so replacing join with \nequality is not possible.\n\nHow to fix ?\n\nAndrus.\n\nCREATE TEMP T...
[ { "msg_contents": "Adding limit clause causes very slow query:\n\nexplain analyze select * from firma2.dok where doktyyp='J' order by dokumnr\nlimit 100\n\"Limit (cost=0.00..4371.71 rows=100 width=1107) (actual\ntime=33189.971..33189.971 rows=0 loops=1)\"\n\" -> Index Scan using dok_dokumnr_idx on dok (cost...
[ { "msg_contents": "Hi All;\n\nI've installed pg_buffercache and I want to use it to help define the optimal \nshared_buffers size. \n\nCurrently I run this each 15min via cron:\ninsert into buffercache_stats select now(), isdirty, count(*) as buffers, \n(count(*) * 8192) as memory from pg_buffercache group by 1...
[ { "msg_contents": "Hi,\n\nI have a problem with large objects in postgresql 8.1: The performance of\nloading large objects into a database goes way down after a few days of\noperation.\n\nI have a cron job kicking in twice a day, which generates and loads around\n6000 large objects of 3.7MB each. Each night, ol...
[ { "msg_contents": "I have a problem with partitioning and I'm wondering if anyone can provide\nsome insight. I'm trying to find the max value of a column across multiple\npartitions. The query against the partition set is quite slow while queries\nagainst child partitions is very fast!\n\n\nI setup a basic R...
[ { "msg_contents": "Hello,\n\nI have following common situation:\n\nCategory IDs: about 50 000\nDocument IDs: about 3 000 000\nMany to many relationship.\nA document id have a relation with 10 up to 1000 category ids\nOne query, with input set of document ids, resulting set of category ids, having relation with ...
[ { "msg_contents": "Hello,\n\nI have following common situation:\n\nCategory IDs: about 50 000\nDocument IDs: about 3 000 000\nMany to many relationship.\nA document id have a relation with 10 up to 1000 category ids\nOne query, with input set of document ids, resulting set of category ids, having relation with ...
[ { "msg_contents": "Hey all,\n\n \n\nThis may be more of a Linux question than a PG question, but I'm wondering\nif any of you have successfully allocated more than 8 GB of memory to PG\nbefore.\n\n \n\nI have a fairly robust server running Ubuntu Hardy Heron, 24 GB of memory,\nand I've tried to commit half the ...
[ { "msg_contents": "Hi All;\n\nI'm looking for tips / ideas per performance tuning some specific queries. \nThese are generally large tables on a highly active OLTP system \n(100,000 - 200,000 plus queries per day)\n\nFirst off, any thoughts per tuning inserts into large tables. I have a large \ntable with an in...
[ { "msg_contents": "Hi Craig,\n\nThank you for your answer.\n\nHere are my test table and indecies definitions:\n\n-- document id to category id\ncreate table doc_to_cat (\n doc_id integer not null,\n cat_id integer not null\n) with (oids=false);\n\n-- Total 1m rows. 500k unique document ids. 20k unique catego...