threads
listlengths
1
275
[ { "msg_contents": "I understand that COUNT queries are expensive. So I'm looking for advice on \ndisplaying paginated query results.\n\nI display my query results like this:\n\n Displaying 1 to 50 of 2905.\n 1-50 | 51-100 | 101-150 | etc.\n\nI do this by executing two queries. One is of the form:\n\n SELEC...
[ { "msg_contents": "\nI have a situation that is giving me small fits, and would like to see \nif anyone can shed any light on it.\n\nI have a modest table (@1.4 million rows, and growing), that has a \nvariety of queries run against it. One is\na very straightforward one - pull a set of distinct rows out base...
[ { "msg_contents": "> If you only need the count when you've got the results, most PG client\n> interfaces will tell you how many rows you've got. What language is your app\n> in?\n\nPHP.\nBut I have only a subset of the results, retrieved via a query with a \"LIMIT \n<m>\" clause, so $pg_numrows is m.\nAnd retr...
[ { "msg_contents": "Hi There,\n\nWe are considering to use NetApp filer for a highly\nbusy 24*7 postgres database and the reason we chose\nnetapp, mostly being the \"snapshot\" functionality for\nbacking up database online. The filer would be mounted\non a rh linux server (7.3), 4g RAM, dual cpu with a\ndedicate...
[ { "msg_contents": "Dear developers,\n\nI wonder it happens to systems where inefficient update \nSQL's are used like this:\n\nUPDATE MyTable SET MyColumn=1234\n\nQuestion arises when the value of MyColumn is already 1234 \nbefore the update.\n\nIf I am right, even when the to-be-updated column values \nequal to...
[ { "msg_contents": "Hello -\nI am using postgresql to hold aliases, users, and relay_domains for postfix and courier to do lookups from. I am not storing mail in sql.\n\nI need postgresql to have fast read performance, so i setup index's on the tables. Also, the queries are basically \"select blah from table w...
[ { "msg_contents": "I am writing a website that will probably have some traffic.\nRight now I wrap every .php page in pg_connect() and pg_close().\nThen I read somewhere that Postgres only supports 100 simultaneous \nconnections (default). Is that a limitation? Should I use some other \nmethod when writing code ...
[ { "msg_contents": "I am writing a website that will probably have some traffic.\nRight now I wrap every .php page in pg_connect() and pg_close().\nThen I read somewhere that Postgres only supports 100 simultaneous\nconnections (default). Is that a limitation? Should I use some other\nmethod when writing code fo...
[ { "msg_contents": "Hi, I have to following select:\n\nset enable_seqscan = on;\nset enable_indexscan =on;\n\nselect a.levelno,a.id from (select 1 as levelno,42 as id) a, menutable b \nwhere b.site_id='21' and a.id=b.id;\n\nmenutable:\nid bigint,\nsite_id bigint\n\nIndexes: menutable_pkey primary key btree (sit...
[ { "msg_contents": "> -----Original Message-----\n> From: pgsql-performance-owner@postgresql.org\n[mailto:pgsql-performance-\n> owner@postgresql.org] On Behalf Of Jón Ragnarsson\n> Sent: 14 January 2004 13:44\n> Cc: pgsql-performance@postgresql.org\n> Subject: Re: [PERFORM] 100 simultaneous connections, critical...
[ { "msg_contents": "Hi there.\n\nI've got a database (the schema is:\nhttp://compsoc.man.ac.uk/~cez/2004/01/14/tv-schema.sql) for television\ndata. Now, one of the things I want to use this for is a now and next\ndisplay. (much like http://teletext.com/tvplus/nownext.asp ). \n\nI've got a view defined like this:...
[ { "msg_contents": "Hi,\n\nI am using pg 7.4.1 and have created a trigger over table with 3 M rows.\n\nIf I start masive update on this table, pg executes this trigger on\nevery row and dramaticaly slows the system.\n\nExists in pg any way to define the trigger execution only if I have\nchanges on some fields?\n...
[ { "msg_contents": "I've read most of the threads on insert speed in this list and wanted \nto share some interesting observations and a question.\n\nWe've been benchmarking some dbs to implement Bayesian processing on an \nemail server. This involves frequent insert and updates to the \nfollowing table:\n\ncrea...
[ { "msg_contents": "\nAlmoust identical querys are having very different exec speed (Postgresql\n7.2.4).\n\nquery: select \"NP_ID\" from a WHERE \"NP_ID\" > '0'\nIndex Scan using NP_ID_a on a (cost=0.00..13.01 rows=112 width=4) (actual\ntime=16.89..18.11 rows=93 loops=1)\nTotal runtime: 18.32 msec\n------------...
[ { "msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nI recently upgraded from 7.3.4 to 7.4. Besides the PostGreSQL change I \nupdated my schema to pull out all OIDs and 'set storage external'. \n\nWith PostGreSQL V7.3.4, a completely reindexed and vacuumed(not-full) foot \nprint was 5.2 gig. ...
[ { "msg_contents": "Gurus,\n \nI have defined the following values on a db:\n \nshared_buffers = 10240 # 10240 = 80MB \nmax_connections = 100\nsort_mem = 1024 # 1024KB is 1MB per operation\neffective_cache_size = 262144 # equals to 2GB for 8k pages\n \nRest of the values are unchanged ...
[ { "msg_contents": "Sorry I wasn't clear. We do have nightly vacuum crons defined on all pg\nservers. Apparently, this one had been taking many hours to finish\nrecently, and we did an additional vacuum during day time when there was\nlow volume, which finished quickly.\n\nThe platform I mentioned is RedHat 9, P...
[ { "msg_contents": "Folks,\n\nWhile debugging a wireless card, I came across this interesting bit:\nhttp://portal.suse.com/sdb/en/2003/10/pohletz_desktop_90.html\n\nWhat it indicates is that by default SuSE 9.0 plays with the timeslice values \nfor the Linux kernel in order to provide a \"smoother\" user experie...
[ { "msg_contents": "Here's the top item from the \"top\" listing on my Postgres machine:\n\n 10:20am up 98 days, 18:28, 3 users, load average: 1.14, 1.09, 0.85\n103 processes: 101 sleeping, 1 running, 0 zombie, 1 stopped\nCPU0 states: 38.0% user, 13.1% system, 0.0% nice, 48.3% idle\nCPU1 states: 39.0% user, ...
[ { "msg_contents": "I'm running several postgreSQL databases containing tens of millions of\nrows. While postgreSQL has proven itself amazingly scalable, I am\nfinding it difficult to properly tune/profile these databases as they\ngrow. I am not aware of any tools to profile the database outside of\nheavy use ...
[ { "msg_contents": "Hi,\n\nI must have missed something, because I get really slow performance from\nPG 7.3.4-RH. This is my situation: I have a table (jms_messages), which\ncontains 500.000 records. select count(*) from jms_messages is\nunderstandable quite slow. Then I delete all of the records and add 1000\nn...
[ { "msg_contents": "I need to get 200 sets of the most recent data from a table for further \nprocessing, ordered by payDate. My\ncurrent solution is to use subselects to:\n1 - get a list of unique data\n2 - get the 200 most recent records (first 200 rows, sorted descending)\n3 - sort them in ascending order\n\n...
[ { "msg_contents": "Hi all,\n\n I'm quite newbie in SQL and I have a performance problem. I have the\nfollowing table (with some extra fields) and without any index:\n\n CREATE TABLE STATISTICS\n (\n STATISTIC_ID NUMERIC(10) NOT NULL DEFAULT\nnextval('STATISTIC_ID_SEQ')\n ...
[ { "msg_contents": "Hi,\n\nI need to speed up the triggers that we are using and I began to make\nsome tests to compare the \"C\" and pgSQL trigger performance.\n\nI try to write two identical test triggers (sorry I do not know very\ngood the pgsql C interface and I got one of examples and werite it) and\nattach...
[ { "msg_contents": "Hi there,\n\ni m new in this board. I read a little here to find a solution for my problem. But i couldn�t find something.\n\nMy Problem ist:\nI m programming a counter in PHP with Postgres as DB. I had 6,000 visitors across all day, so everything worked fine first.\nYesterday i got 80K Use...
[ { "msg_contents": "Our database has slowed right down. We are not getting any performance from\nour biggest table \"forecastelement\".\nThe table has 93,218,671 records in it and climbing.\nThe index is on 4 columns, origianlly it was on 3. I added another to see\nif it improve performance. It did not.\nShou...
[ { "msg_contents": "\n-----Original Message-----\nFrom: Josh Berkus [mailto:josh@agliodbs.com]\nSent: Thursday, January 22, 2004 3:01 PM\nTo: Shea,Dan [CIS]; pgsql-performance@postgresql.org\nSubject: Re: [PERFORM] database performance and query performance\nquestion\n\n\nDan,\n\n> Should there be less columns i...
[ { "msg_contents": "\nSomething that I do not understand is why if you use a valid_time =\n'2004-01-22 00:00:00' the query will use the index but if you do a\nvalid_time > '2004-01-22 00:00:00' it does not use the index?\nPWFPM_DEV=# explain analyze select * from forecastelement where valid_time >\ndate '2004-0...
[ { "msg_contents": "This sure speed up the query, it is fast.\nPWFPM_DEV=# explain analyze select * from forecastelement where valid_time\nbetween '2004-01-12'::date and '2003-01-12'::date;\n \nQUERY PLAN \n-------------------------------------------------------...
[ { "msg_contents": "The end date in the previous example was actually invalid between\n'2004-01-12'::date and '2003-01-12'::date;\nThere have been multiple inserts since I recreated the index but it took\nquite some time to complete the following\nPWFPM_DEV=# explain analyze select * from forecastelement where ...
[ { "msg_contents": "Hi all,\n\n First of all thanks to Josh and Richard for their replies. What I have\ndone to test\ntheir indications is the following. I have created a new table identical to\nSTATISTICS,\nand an index over the TIMESTAMP_IN field.\n\nCREATE TABLE STATISTICS2\n(\n STATISTIC_ID NUMERIC(10) ...
[ { "msg_contents": "Hello All\r\n\r\nJust wanted to gather opinions on what file system has the best balance between performance and reliability when used on a quad processor machine running SuSE64. Thanks\r\n\r\nDAve\n\n\n\n\n\n\nHello All\n \nJust wanted to gather opinions on what \r\nfile system has the best...
[ { "msg_contents": "\n\nA few question regarding PostgreSQL handling of queries:\n\n- Is each query submitted parsed and planned even if it is identical to a\nquery submitted before? \nFor example, 10 queries \"select * from animals where id=:b1\" with possibly\ndifferent bind variable :b1 values will be fully p...
[ { "msg_contents": "I've got a table with about 10 million events in it.\n\nEach has a user_id (about 1000 users) and a event_time timestamp\ncovering a 4 year period with about 50% of the events being in the last\nyear. Some users have only dozens of events. A few have hundreds of\nthousands.\n\nThe queries u...
[ { "msg_contents": "Please tell me if this timing makes sense to you for a Celeron 433 w/\nRAM=256MB dedicated testing server. I expected some slowness, but not this\nhigh.\n\ndb_epsilon=# \\d t_active_subjects\n Table \"public.t_active_subjects\"\n Column | ...
[ { "msg_contents": "Hi,\n\nSorry for the long e-mail. Here is a summary of my questions:\n\nI am running osdl-dbt1 against pgsql-7.3.3. The result is at:\nhttp://khack.osdl.org/stp/286627/\n\n1. Based on the hardware and software configuration, does my database\nconfiguration make sense?\n2. Is 'defining a cur...
[ { "msg_contents": "Hi\n\nI have a php script and i make a pg_pconnect\nIf i want to make 4-10 pg_query in that script\nHave i to close the connection at end of the script?\n(i would say yes, is it right?)\n\nSorry I m a little bit confused about the persistent thing!!\nIs it smart to use persistent connections ...
[ { "msg_contents": "I'm conducting some benchmarking (mostly for fun and learning), and one \npart of it is benchmarking PostgreSQL (7.4.1, on FreeBSD 4.9 and 5.2). \nI'm using pgbench from the contrib directory, but I'm puzzled by the \nresults. I have little experience in benchmarking, but I don't think I \nsh...
[ { "msg_contents": "\n\nFirst of, thanks, Tom.\n\nAlthough I've been very careful on this kind of things, looks like I\nmissed one index on a referencing column. Still, I don't allow an entire\ndelete of a table if it has referencing columns with values, so at the\nmoment of the deletion, it has no rows at all.\...
[ { "msg_contents": "Hi all,\n\n First of all thanks to Josh and Richard for their replies. What I have\ndone to test\ntheir indications is the following. I have created a new table identical to\nSTATISTICS,\nand an index over the TIMESTAMP_IN field.\n\nCREATE TABLE STATISTICS2\n(\n STATISTIC_ID NUMERIC(10) ...
[ { "msg_contents": "I have an application that I'm porting from MSSQL to PostgreSQL. Part of this\napplication consists of hundreds of stored procedures that I need to convert\nto Postgres functions ... or views?\n\nAt first I was going to just convert all MSSQL procedures to Postgres functions.\nBut now that I...
[ { "msg_contents": "I'm trying to track down some performance issues where time (in \nmilliseconds) is critical. One thing that I've noticed is that it \nseems like the first insert takes an inordinate amount of time. \nInserts after the first one are acceptable. My production environment \nis like this:\n\nS...
[ { "msg_contents": "Hi,\n\nMy personal feeling on this is, that the long time taken for the first query\nis for loading all sorts of libraries, JVM startup overhead etc.\n\nWhat if you first do some SELECT (whatever), on a different table, to warm\nup the JVM and the database?\n\nregards,\n\n--Tim\n\nTHIS COMMUN...
[ { "msg_contents": "I tested this out and saw no improvement:\n\nEXPLAIN ANALYZE SELECT * FROM one;\nSeq Scan on one (cost=0.00..20.00 rows=1000 width=404) (actual time=0.04..0.50 rows=51 loops=1)\nTotal runtime: 0.75 msec\nEXPLAIN ANALYZE SELECT * FROM one;\nSeq Scan on one (cost=0.00..20.00 rows=1000 width=4...
[ { "msg_contents": "> Hello All\n> \n> Just wanted to gather opinions on what file system has the best balance between performance and \n> reliability when used on a quad processor machine running SuSE64. Thanks\n> \n> DAve\n\nI was reading the article 'Behind the ALTIX 3000' in the Feb. 2003 Linux Journal, and...
[ { "msg_contents": "Hello,\n\nWith the new preload option is there any benefit/drawback to using \npl/Python versus\npl/pgSQL? And no... I don't care that pl/Python is now considered untrusted.\n\nSincerely,\n\nJoshua D. Drake\n\n-- \nCommand Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC\nPostgres...
[ { "msg_contents": "Hi,\n\nwith the following table:\n\n Table \"public.foo\"\n Column | Type | Modifiers\n--------+------+-----------\n t | text |\nIndexes:\n \"a\" btree (t)\n\nShouldn't queries that use\n ... where t like '%something%'\n\nbenefit from \"a\" when t is NULL in almost all case...
[ { "msg_contents": "My understanding is that having NULL values in an index breaks it completely. Meaning it won't be used in any query planning. Maybe I'm wrong though...\n\n\n-----Original Message-----\nFrom:\tMarinos J. Yannikos [mailto:mjy@geizhals.at]\nSent:\tTue 1/27/2004 12:26 PM\nTo:\tpgsql-performance...
[ { "msg_contents": "Hi all ,\n\nI'm trying to find out if there is a specific setting \nto make transactions time out faster in a scenario\nwhere there's an update on a table in a transaction \nblock, and another update process tries to update\nthe same column.\n\nIt looks like the second process will wait until...
[ { "msg_contents": "Hi, \n\nPostgres choses the wrong index when I add limit 1 to the query.\nThis should not affect the index chosen.\nI read that functional indexes are sometimes not chosen correctly by \noptimizer. \nIs there anything I can do to always use the functional index in the\nfollowing queries? \n\n...
[ { "msg_contents": "do views exist fysically a separate \"table\",\nor are they generated on the fly whenever they are queried?\n\nif they exist fysically they could improve performance (..php, web),\nfor example a view being a join between two or more tables..\n\ntnx?\n\n\n", "msg_date": "Wed, 28 Jan 2004 1...
[ { "msg_contents": "Couple quick questions.\n\n1. Turning autocommit=FALSE is most useful when using COPY to load\n data to a table and could impact the performance of INSERT of\n similiar data on the same table.\n\n2. What comparison operator is the most efficient when comparing\n text or varchar? Tod...
[ { "msg_contents": "Anybody used Linux with EMC Clariions for PG databases?\n\nAny good war stories, pros, cons, performance results ?\n\nI'm wearing thin on my 6 disk 0+1 configuration and looking for\nsomething beefy, possibly for clustering, and I'm wondering what the net\nwisdom is. :)\n\nthanks!\n\n\n", ...
[ { "msg_contents": "Hi all,\n\nI've got a query that needs some help, please. Is there a way to avoid\nall the looping? I've got freedom to work with the double-indented\nsections below ) AND (, but the initial select distinct wrapper is much\nmore difficult to change. This is auto-generated code.\n\nexplain ana...
[ { "msg_contents": "I have 2 columns index.\nThe question is if optimizer can use both columns of an index or not, \ni.e. the plan should read like this: \n\n\tIndex Cond: \n\t((name)::text = 'name1'::text) \n\tAND ((date_from)::timestamp with time zone=\n('now'::text)::timestamp(6) with time zone) \n\nWhilst I ...
[ { "msg_contents": "I have a large query which I would like to place in a view. The explicit\nquery is sufficiently fast, but the same query as a view is much slower\nand uses a different plan. I would appreciate an explanation of why this\nis, and, more importantly whether/how I might coax the view to use a\ndi...
[ { "msg_contents": "\nHi,\n\nPostgres seems to estimate the cost of indexscan to be a bit too high.\nThe table has something like 500000 rows and I have run reindex and vacuum\nanalyze recently. Is there something to tune?\n\nIndex is a multicolumn index:\n \"admin_event_stamp_event_type_name_status\" btree (...
[ { "msg_contents": "\n> From: Tom Lane [mailto:tgl@sss.pgh.pa.us] \n\n\n> My guess is that the original SQL was\n> \tWHERE ... date_from = current_timestamp\n> This should be\n> \tWHERE ... date_from = localtimestamp\n> if timestamp without tz is the intended column datatype. \n\nThank you. The problem was exac...
[ { "msg_contents": "\nHi, more strange plans ...\n\nPlanner estimates an indexscan to return 240 rows although it is using a\nunique index and chooses to use hash join and seqscan instead of nested\nloop and indexscan. It's ... very slow.\n\nIdexes used:\n users: \"users_upper_nick\" unique, btree (upper((nick...
[ { "msg_contents": "Hi,\n\nits me again. As far as we tested postgresql ist fast, very fast \ncompared to the other db system we test and are using currently.\n\n We are now testing some test databases on Postgres. We use one \nfunction which simply calculates a difference between two values and \nchecks if ...
[ { "msg_contents": "Hi,\n\nI have many indexes somehow overlaping like:\n... btree (\"STATUS\", \"VISIBLE\", \"NP_ID\");\n... btree (\"STATUS\", \"VISIBLE\");\n\nis perfomance gained by \"more exact\" index worth overhead with managing\nindexes.\n\nRigmor Ukuhe\nFinestmedia Ltd\n---\nOutgoing mail is certified V...
[ { "msg_contents": "Folks,\n\nI've had requests from a couple of businesses to see results of infomal MySQL\n+InnoDB vs. PostgreSQL tests. I know that we don't have the setup to do \nfull formal benchmarking, but surely someone in our community has gone \nhead-to-head on your own application?\n\n-- \n-Josh Be...
[ { "msg_contents": "Folks,\n\nIs anyone on this list using PostgreSQL on a mini or mainframe platform? If \nso, drop me a line. Thanks!\n\n-- \n-Josh Berkus\n Aglio Database Solutions\n San Francisco\n\n", "msg_date": "Mon, 2 Feb 2004 10:06:23 -0800", "msg_from": "Josh Berkus <josh@agliodbs.com>", ...
[ { "msg_contents": "I am running a Dual Xeon hyperthreaded server with 4GB RAM RAID-5. The only \nthing running on the server is Postgres running under Fedora. I have a 700 \nconnection limit.\n\nThe DB is setup as a backend for a very high volume website. Most of the queries \nare simple, such as logging acc...
[ { "msg_contents": "Quick Question,\n\nThe full query listed in pg_stat_activity is getting truncated. Does\nanyone know how I can see the full query in progress?\n\n-- \nOrion Henry <orion@trustcommerce.com>", "msg_date": "02 Feb 2004 11:27:42 -0800", "msg_from": "Orion Henry <orion@trustcommerce.com>"...
[ { "msg_contents": "Hello\n\ni've read in the docs to use the proper indexes both types must match in\nthe where clause, to achive this the user can simply put a string into the\nside of the equation mark and pgsql will convert it automaticly. my\nquestion is, when I'm using PQexecParams, should I give all the v...
[ { "msg_contents": "Hi,\n\nwe are trying to speed up a database which has about 3 GB of data. The \nserver has 8 GB RAM and we wonder how we can ensure that the whole DB \nis read into RAM. We hope that this will speed up some queries.\n\nregards David\n\n", "msg_date": "Tue, 3 Feb 2004 13:54:17 +0100", ...
[ { "msg_contents": "Hello everyone,\n\nI am doing a massive database conversion from MySQL to Postgresql for a\ncompany I am working for. This has a few quirks to it that I haven't\nbeen able to nail down the answers I need from reading and searching\nthrough previous list info.\n\nFor starters, I am moving rou...
[ { "msg_contents": "Hello,\n \nI would like to know whether there are any significant performance\nadvantages of compiling (say, 7.4) on your platform (being RH7.3, 8, and\n9.0, and Fedora especially) versus getting the relevant binaries (rpm)\nfrom the postgresql site? Hardware is Intel XEON (various speeds, up...
[ { "msg_contents": "First just wanted to say thank you all for the quick and helpful \nanswers. With all the input I know I am on the right track. With that \nin mind I created a perl script to do my migrations and to do it based \non moving from a db name to a schema name. I had done alot of the \nreading on...
[ { "msg_contents": "We are suddenly getting slow queries on a particular table.\nExplain shows a sequential scan. We have \"vacuum analyze\" ed\nthe table.\n\nAny hints?\n\nMany TIA!\nMark\n\n\ntestdb=# \\d bigtable\n Table \"public.bigtable\"\n Column | Type | Modifiers\n---------+---------+---------...
[ { "msg_contents": "I've done some testing of 7.3.4 vs 7.4.1 and found 7.4.1 to be 20%-30%\nslower than 7.3.4. Is this common knowledge or am I just unlucky with\nmy query/data selection?\n\nThings of note that might matter: the machine is a dual Opteron 1.4GHz\nrunning Fedora Core 1 Test 1 for X86_64. The 7.3...
[ { "msg_contents": "Hi All,\n\nI've been seeing very slow read performance on a database of 1 million\nindexed subscribers, which I believe is nothing to do with the data\nitself, but delays on processing the index. \n\nIf I make a random jump into the index (say X), it can take about 50ms\nto read the subscribe...
[ { "msg_contents": "Hi!\n\n I'd like to know if this is expected behavior. These are two couples of\nqueries. In each couple, the first one has a WHERE field = function()\ncondition, just like the second one, but in the form WHERE field =\n(SELECT function()). In my opinion, both should have the same execution...
[ { "msg_contents": "Hello,\n\nDo you see a way to get better performances with this query which takes\ncurrently 655.07 msec to be done.\n\nlevure=> explain analyze SELECT distinct lower(substr(l_name, 1, 1)) AS\ninitiale FROM people\nlevure-> UNION\nlevure-> SELECT distinct lower(substr(org_name, 1, 1)) AS init...
[ { "msg_contents": "I have two tables which have related selection data; they get updated\nseparately. One contains messages, the second an \"index key\" for each\nuser's viewing history.\n\nWhen I attempt to use a select that merges the two to produce a \"true or\nfalse\" output in one of the reply rows, I get...
[ { "msg_contents": "Hi\n\nwe have a table with about 4 million rows. One column has an int value, \nthere is a btree index on it. We tried to execute the following \nstatement and it is very slow on a dual G5 2GHZ with 4 GB of RAM.\n\nexplain analyze select count(*) from job_property where int_value = 0;\n\nAggr...
[ { "msg_contents": "hello\ni have postgres 7.3.2.,linux redhat 9.0\na database,and 20 tables\na lot of fields are char(x)\nwhen i have to make update for all the fields except index\npostgres works verry hard\nwhat should i've changed in configuration to make it work faster\n\nthanks\nbogdan\n\n", "msg_date"...
[ { "msg_contents": "\n\nmy data base is very slow. The machine is a processor Xeon 2GB with\n256 MB of RAM DDR. My archive of configuration is this:\n\n================================================================\n\n#\n# PostgreSQL configuration file\n# -----------------------------\n#\n# This file consists ...
[ { "msg_contents": "Is there a way to automatically coerce an int into a bigint for\nindexing purposes?\n\nWe have a table with a bigint column that is an index.\nFor mi, there's no problem, since I now know to say\n\tselect * from foo where id = 123::bigint\nbut our casual users still say\n\tselect * from foo w...
[ { "msg_contents": "Hello all. I am in the midst of porting a large web application from a \nMS SQL Server backend to PostgreSQL. The migration work is basically \ncomplete, and we're at the testing and optimization phase of the \nproject. The results so far have been disappointing, with Postgres \nperforming qu...
[ { "msg_contents": "Hi,\n\none of our tables has to be updated frequently, but concurrently running \nSELECT-queries must also have low latency times (it's being accessed \nthrough a web interface).\n\nI'm looking for ideas that might improve the interactive performance of \nthe system, without slowing down the ...
[ { "msg_contents": "Hello again. I'm setting up a backup routine for my new db server. As \npart of my testing, I'm attempting to pg_restore a pg_dump'ed backup of \nmy database. The database is about 4.3 GB, and the dump file is about \n100 MB.\n\nI first did a schema-only restore, then started a data-only rest...
[ { "msg_contents": "\nGreetings!\n\nWhy does creation of gist indexes takes significantly more time\nthan normal btree index. Can any configuration changes lead to faster index\ncreation?\n\n\nquery:\nCREATE INDEX co_name_index_idx ON profiles USING gist (co_name_index \npublic.gist_txtidx_ops);\n\n\nregds\nmall...
[ { "msg_contents": "Hi,\n\nwe have a table with about 6.000.000 rows. There is an index on a \ncolumn with the name id which is an integer and serves as primary key.\n\nWhen we execute select max(id) from theTable; it takes about 10 \nseconds. Explain analyze returns:\n\n---------------------------------------...
[ { "msg_contents": "Hello,\n\nI m checking Postgresql and MS-SQl database server for our new development. On a very first query Postresql is out performed and I think it is very disappointing. My query consists on a single table only on both machines.\n\nTable Structure\n Table \"inv_detail\"\...
[ { "msg_contents": "I changed the conf as you wrote. But now the time is changed from 50 sec to 65 sec. :(\nI have not more 256 MB ram now.\nWhen I execute the query the \nPostmaster takes about 1.8 MB\nPostgres session takes 18 MB ram only.\n& psql takes 1.3 MB.\n\nAfter the query finishes the \nPostgres sessio...
[ { "msg_contents": "I can't get the following statement to complete with reasonable time.\nI've had it running for over ten hours without getting anywhere. I\nsuspect (hope) there may be a better way to accomplish what I'm trying\nto do (set fields containing unique values to null):\n\n UPDATE requests\n SET s...
[ { "msg_contents": "Hi,\n\nThis is not going to answer your question of course but did you already try to do this in 2 steps?\n\nYou said that the subquery itself doesn't take very long, so perhaps you can create a temporary table based on the subquery, then in the update do a join with the temporary table?\n\nT...
[ { "msg_contents": "Hi!\nDoes PostgreSQL allow to create tables and indices of a single\ndatabase on multiple disk drives with a purpose of increase\nperformance as Oracle database does? If a symbolic reference is the\nonly method then the next question is: how can it be determined what\nfile is referred to what...
[ { "msg_contents": "Hi All,\n \nI'm really like this list. Thank you for all the invaluable\ninformation! May I ask a question?\n \nI've got a table with about 8 million rows and growing. I must run\nreports daily off this table, and another smaller one. Typical query -\njoins, groupings and aggregates inclu...
[ { "msg_contents": "It seems, that if I know the type and frequency of the queries a\ndatabase will be seeing, I could split the database by hand over\nmultiple disks and get better performance that I would with a RAID array\nwith similar hardware. Most of the data is volatile\nand easily replaceable (and the r...
[ { "msg_contents": "We have a large (several million row) table with a field containing \nURLs. Now, funny thing about URLs: they mostly start with a common \nsubstring (\"http://www.\"). But not all the rows start with this, so we \ncan't just lop off the first N characters. However, we noticed some time \nago ...
[ { "msg_contents": "All three tables have the same integer key, and it's indexed.\n\nI parenthesized the joins to do the two small tables first.\n\nI'm running and INSERT INTO ... SELECT query with this join (one record added per record in join), 4 hours down and all I have to show for it is 100 recycled transac...
[ { "msg_contents": "Folks,\n\nHave an interesting issue with a complex query, where apparently I need to \ntwist the query planner's arm, and am looking for advice on how to do so.\n\nThe situation: I have a table, events, with about 300,000 records. \nIt does an outer join to a second table, cases, with about...
[ { "msg_contents": "Hi,\n\nThanks every one for helping me. I have upgraded to 7.4.1 on redhat 8 ( rh 9 require a lot of lib's) and set the configuration sent by Chris. Now the query results in 6.3 sec waooo. I m thinking that why the 7.1 process aggregate slowly. Anyway.\n\nI still have to go for 2 sec result a...
[ { "msg_contents": "Hello,\n \nHas anyone designed/implemented postgresql server on storage networks?\n \nAre there any design considerations?\n \nAre there any benchmarks for storage products (HBAs, Switches, Storage\nArrays)?\n \nAny recommendation on the design, resources, references, keeping PG in\nmind?\n \...
[ { "msg_contents": "Hi All,\n\nI have a select statement \n\nselect * from v_func_actual_costs\nwhere parent_project='10478' or proj_pk = '10478'\n\nboth the fields parent_project and proj_pk have indexes based on them, but when I ran explain plan on this statement I found that none of the indexes are being call...
[ { "msg_contents": "I'm converting a SQL application to PostgreSQL. The majority of the logic\nin this application is in the stored functions in the database.\n\nSomewhere, I saw a reference to \"WITH (iscachable)\" for stored functions,\nlooking again, I'm unable to find any reference to this directive. I hav...
[ { "msg_contents": "To all,\n\nThis is a 2 question email. First is asking about general tuning of the \nApple hardware/postgres combination. The second is whether is is \npossible to speed up a particular query.\n\nPART 1\n\nHardware: Apple G5 dual 2.0 with 8GB memory attached via dual fibre \nchannel to a f...