threads
listlengths
1
275
[ { "msg_contents": "Hi,\nI have 2 questions regarding the storage optimization done by Postgres:\n1) Is a NULL value optimized for storage. If I have a timestamp (or some\nsuch) field that I set to default NULL, will it still use up the full space\nfor the data type.\n2) Similarly, if I have a text array, is an ...
[ { "msg_contents": "Hello\n\nI am testing one server and I found strange behave of 8.2.6. My\nconfiguration is:\n\nLinux Orbisek 2.6.18-xeonsmp #1 SMP Thu Jan 31 14:09:15 CET 2008 i686\nGNU/Linux, 4 x Intel(R) Xeon(R) CPU E5335 @ 2.00GHz, 6G RAM\n\npgbench on 8.3 puts 1600-1700tps without dependency on number o...
[ { "msg_contents": "Can I ask for some help with benchmarking?\n\nThere are some results here that show PostgreSQL is slower in some cases\nthan Monet and MySQL. Of course these results were published immediately\nprior to 8.2 being released, plus run out-of-the-box, so without even\nbasic performance tuning.\n\...
[ { "msg_contents": "Hi,\n\nI'm having a performance problem on a request using Tsearch2: the\nrequest strangely takes several minutes.\n\nI've tried to follow Tsearch tuning recommendations, I've searched\nthrough the archives, but I can't seem to find a solution to solve my\nproblem.\n\nThe ts_vector field was ...
[ { "msg_contents": "Hi\n \nI have discovered an issue on my Postgresql database recently installed : it seems that the optimizer can not, when possible, simplify and rewrite a simple query before running it. Here is a simple and reproducible example :\n \nmy_db=# create table test (n numeric);\nCREATE\nmy_db=# i...
[ { "msg_contents": "Many thanks for your quick reply \n\nIn fact, that issue comes from a recent migration from Oracle to Postgresql, and even if some queries were not optimized by the past (example: where n=1 and n=1), Oracle was able to rewrite them and to \"hide\" the bad queries\". But now that we have migra...
[ { "msg_contents": "Improvements are welcome, but to compete in the industry, loading will need to speed up by a factor of 100.\n\nNote that Bizgres loader already does many of these ideas and it sounds like pgloader does too.\n\n- Luke\n\nMsg is shrt cuz m on ma treo\n\n -----Original Message-----\nFrom: \tDimi...
[ { "msg_contents": "Hi,\n\n(PostgreSQL 8.3)\n\nI'm trying to optimize one of the most often used queries in our system:\n\n(Full minimized pastable schema and data below.)\n\ncreate table feeds_users (\n user_id int references users(id) not null,\n feed_id int references feeds(id) not null,\n unique(use...
[ { "msg_contents": "I am using Postgres 8.2.5. \n \nI have a table that has rows containing a variable length array with a known maximum. \nI was doing selects on the array elements using an ANY match. The performance \nwas not too good as my table got bigger. So I added an index on the array. \nThat didn't help...
[ { "msg_contents": "Hi all,\n\nWhen I'm doing an explain analyze to a query of mine I notice that the\nnumber of estimated rows by the planner is a lot smaller then the actual\nnumber of rows, I'm afraid that this make my queries slower.\n\nA query for example is:\n\nEXPLAIN ANALYZE\nSELECT product_id,product_na...
[ { "msg_contents": "Hi,\n\nAssuming two or more clients issue INSERTs and COPYs on the same table \nin the database at the same time, does PostgreSQL execute them in \nparallel (i.e. no table-level locks, etc.) assuming there are no indexes \nand constrains on the table? What about when there are indexes and/or ...
[ { "msg_contents": "We have a large datawarehouse stored in postgres and temp tables are created\nbased on user query. The process of temp table creation involves selecting\ndata from main fact table, this includes several select and update\nstatements and one of the following update statement is having performa...
[ { "msg_contents": "I have serious performance problems with the following type of queries:\n/\n/explain analyse SELECT '12.11.2007 18:04:00 UTC' AS zeit,\n 'M' AS datatyp,\n p.zs_nr AS zs_de,\n j_ges,\n de_mw_abh_j_lkw(mw_abh) A...
[ { "msg_contents": "Hello,\n\nI'm planning to cluster a few large tables in our database but I'm\nunable to find any recommendations/documentation on best practices --\nMainly, whether it's better to use an index which has a higher idx_scan\nvalue, a higher idx_tup_read value, or the higest idx_tup_fetch value.\...
[ { "msg_contents": "Hello,\n\nI've been wrestling w/ a complex query for another developer for \nawhile today. The problem consistently seems to a mis-estimation of \nthe number of rows resulting from a join. This causes the query early \non to think it's only going to be processing 1 row and so it chooses ...
[ { "msg_contents": "Hi all...\n\nIf ssl is enable in postgresql decreanse the performance of the database?\nHow much?\n\nThanks in advance\n\nHi all...If ssl is enable  in postgresql decreanse the performance of the database? How much?Thanks in advance", "msg_date": "Mon, 11 Feb 2008 16:58:35 -0700", "m...
[ { "msg_contents": "Hi,\n\n I am using Postgres 8.2.4, we have to regularly run some queries on \nsome big tables to see if we have any data for a particular request. But \nsometimes we might not have any matching rows on a particular request as \nin this case, when it cant find any matching rows it pretty muc...
[ { "msg_contents": "We have a web application for which we intend to run the database on a\ndedicated server.\n\nWe hope by the end of 2008 to have 10 companies accessing 10 instances\nof the database for this application. The dump file of each database is\nlikely to be less than 100MB at the end of the year. Th...
[ { "msg_contents": "I want to create and update two tables in a function such as below, but\nusing parameters as tablename is not allowed and gives an error. Is there\nany way I could achieve this?\n\nCREATE OR REPLACE FUNCTION test ( t1 text,t2 text ) RETURNS numeric AS $$\ndeclare temp1 text;\ndeclare temp2 ...
[ { "msg_contents": "Hi all,\n\nWe're considering setting up a SAN where I work. Is there anyone using\na SAN, for postgres or other purposes? If so I have a few questions\nfor you.\n\n- Are there any vendors to avoid or ones that are particularly good?\n\n- What performance or reliability implications exist when...
[ { "msg_contents": "Folks,\n\nDoes anyone know if HOT is compatible with pg_toast tables, or do TOASTed rows \nsimply get excluded from HOT? I can run some tests, but if someone knows \nthis off the top of their heads it would save me some time.\n\n-- \nJosh Berkus\nPostgreSQL @ Sun\nSan Francisco\n", "msg_...
[ { "msg_contents": "\nHi all,\n\nI've been reading through the performance list of the last few months, and haven't been able to find a solution to my problem yet, so I'm posting the specifics here now. If anyone can suggest what might work (or point me to where this has been covered before), that would be grea...
[ { "msg_contents": "Once per quarter, we need to load a lot of data, which causes many\nupdates across the database. We have an online transaction\nprocessing-style application, which we really want to stay up during the\nupdate job.\n\n \n\nThe programmer coded a stored procedure which does the job well ...\nl...
[ { "msg_contents": "Hello,\n\nmy impression has been that in the past, there has been a general\nsemi-consensus that upping shared_buffers to use the majority of RAM\nhas not generally been recommended, with reliance on the buffer cache\ninstead being the recommendation.\n\nGiven the changes that have gone into ...
[ { "msg_contents": "We're using PostgreSQL 8.1.11 on AIX 5.3 and we've been doing some \nplaying around\nwith various settings. So far, we've (I say we, but it's another guy \ndoing the work) found\nthat open_datasync seems better than fsync. By how much, we have not \nyet determined,\nbut initial observati...
[ { "msg_contents": "Hi members\n\nI am looking for an example of a web application (WAR) which executea a\nPostgres actions. This aims to test the performance of Postgres in Web mode.\n\nI shall be grateful if someone gives me a link where I can find a WAR file.\n\nThank you\n\nHi members\n \nI am looking for an...
[ { "msg_contents": "Hi,\n\n I want to disable Write Ahead Log (WAL) completely because\nof following reasons,\n\n \n\n1.\tI am running Linux on the Compact Flash, which has limited\nmemory; I can't afford disk space of 32MB for pg_xlog folder. (\ncheckpoints_segments = 1)\n\n \n\n2.\tCF has own limita...
[ { "msg_contents": "Is there a way I can change where postgres writes it temporary files? My\ndata directory is on a slow array, but we also have a fast array. I'm\nlooking to get all the temp file creation onto the fast array.\n\nIs there a way I can change where postgres writes it temporary files?  My data d...
[ { "msg_contents": "Hi,\n\nThis occurs on postgresql 8.2.5.\n\nI'm a bit at loss with the plan chosen for a query :\n\nThe query is this one :\n\nSELECT SULY_SAOEN.SAOEN_ID, SULY_SDCEN.SDCEN_REF, SULY_SDCEN.SDCEN_LIB, CSTD_UTI.UTI_NOM, CSTD_UTI.UTI_LIBC, SULY_SAOEN.SAOEN_DTDERNENVOI,\n SULY_SDCEN.SDCEN_DT...
[ { "msg_contents": "I spent a whopping seven hours restoring a database late Fri nite for a \nclient. We stopped the application, ran pg_dump -v -Ft -b -o $db > \n~/pre_8.3.tar on the 8.2.x db, and then upgrading the software to 8.3. I then \ndid a pg_restore -v -d $db ./pre_8.3.tar and watched it positively cra...
[ { "msg_contents": "Hi,\n \n I am using Postgresql 8.1 for handling large data.\n \n I am having One Parent Table and Child Table I.e.inherits from\nparent table.\n \n The constraint for partitioning table is date range.\n \n I have to generate monthly report, report generation query\nc...
[ { "msg_contents": "Hi\n\nI am using Postgres8.3 on 8G memory , Xeon X5355 Quad Core x 2\nprocesser RH5 machine with 10G data. (with some table which have\nabout 2,000,000~ 5,000,000 rows )\n\nI have two quesion.\n1. how to set the shared_buffers and other postgresql.conf parameter\nfor best performance?\nI onl...
[ { "msg_contents": "Given the following query:\n\nSELECT\n fi.pub_date\nFROM\n ext_feeder_item fi\nWHERE\n fi.feed_id IN (SELECT id FROM ext_feeder_feed ff\n WHERE ff.is_system)\nORDER BY\n pub_date DESC;\n\nI'm getting a plan that uses a sequential scan on ext_feeder_item instead o...
[ { "msg_contents": "Hi all,\n\nThe following query takes about 4s to run in a 16GB ram server. Any ideas\nwhy it doesn´t use index for the primary keys in the join conditions?\n\nselect i.inuid, count(*) as total\nfrom cte.instrumentounidade i\ninner join cte.pontuacao p on p.inuid = i.inuid\ninner join cte.acao...
[ { "msg_contents": "On Thu, Feb 21, 2008 at 5:40 PM, Dave Cramer <pg@fastcrypt.com> wrote:\n>\n> On 21-Feb-08, at 6:16 PM, Scott Marlowe wrote:\n>\n> > On Thu, Feb 21, 2008 at 4:59 PM, Mark Kirkwood\n> > <markir@paradise.net.nz> wrote:\n> >> The other parameter you might want to look at is\n> >> effective_c...
[ { "msg_contents": "Hi,\n\nI need to store a lot of 3-tuples of words (e.g. \"he\", \"can\", \n\"drink\"), order matters!\nThe source is about 4 GB of these 3-tuples.\nI need to store them in a table and check whether one of them is \nalready stored, and if that's the case to increment a column named \n\"coun...
[ { "msg_contents": "\nHi -\nI'm wondering if anyone has had success doing a simultaneous\nload of one Pg dump to two different servers? The load command\nis actually run from two different workstations, but reading the\nsame pgdump-file.\n\nWe use this command from the command line (Solaris-10 OS):\n\nuncompres...
[ { "msg_contents": "\nSORRY -\n\nthese are the commands (i.e. pgserver-A and pgserver-B)\n\n======\n\nHi -\nI'm wondering if anyone has had success doing a simultaneous\nload of one Pg dump to two different servers? The load command\nis actually run from two different workstations, but reading the\nsame pgdump...
[ { "msg_contents": "Hi. I'm trying to optimize the performance of a database whose main purpose\nis to support two (rather similar) kinds of queries. The first kind, which\nis expected to be the most common (I estimate it will account for about 90%\nof all the queries performed on this DB), has the following g...
[ { "msg_contents": "Hi,\n\nI'm noticing a strange increase in the amount of time it takes to \nissue a NOTIFY statement.\n\nI have an existing app that provides a producer / consumer type of \nqueue and that uses the LISTEN / NOTIFY mechanism to signal the \nconsumers of new items arriving in the queue. The con...
[ { "msg_contents": "I have a table, that in production, currently has a little over 3 \nmillion records in production. In development, the same table has \nabout 10 million records (we have cleaned production a few weeks \nago). One of my queries joins this table with another, and in \ndevelopment, the par...
[ { "msg_contents": "Hi all,\n\n i have strange problem with performance in PostgreSQL (8.1.9). My problem\nshortly:\n\n I'm using postgreSQL via JDBC driver (postgresql-8.1-404.jdbc3.jar) and\nasking the database for search on table with approximately 3 000 000\nrecords.\n I have created functional index tabl...
[ { "msg_contents": ">Also, it might be worth enabling log_lock_waits to see if the slow\n>notifies are due to having to wait on some lock or other.\n\nTurning on log_lock_waits shows that there is a lot of waiting for \nlocks on the pg_listener table ala:\n\nprocess 22791 still waiting for ExclusiveLock on relat...
[ { "msg_contents": ">Also, it might be worth enabling log_lock_waits to see if the slow\n>notifies are due to having to wait on some lock or other.\n\nTurning on log_lock_waits shows that there is a lot of waiting for \nlocks on the pg_listener table ala:\n\nprocess 22791 still waiting for ExclusiveLock on relat...
[ { "msg_contents": "I have a cascading delete trigger that is obviously using a seqscan.\n(Explain analyze shows that trigger as taking over 1000s while all\nother triggers are <1s. The value in test delete didn't even appear in\nthis child table, so an index scan would have been almost instant.)\n\nIf I do\nDEL...
[ { "msg_contents": "Hi,\n\nYou may remember some thread about data loading performances and \nmulti-threading support in pgloader:\n http://archives.postgresql.org/pgsql-performance/2008-02/msg00081.php\n\nThe pgloader code to handle this is now ready to get tested, a more structured \nproject could talk about ...
[ { "msg_contents": "Hi,\n\nI'm having some issues with this simple query:\n\nSELECT\n _comment.*,\n _article.title AS article_title,\n _article.reference AS article_reference\nFROM\n _comment\n INNER JOIN _article\n ON _article.id = _comment.parent_id\nWHERE\n _comment.path <@ '0.1.3557034'\nORDER BY\n ...
[ { "msg_contents": "This might be a weird question...is there any way to disable a\nparticular index without dropping it?\n\nThere are a few queries I run where I'd like to test out the effects\nof having (and not having) different indexes on particular query plans\nand performance. I'd really prefer not to have...
[ { "msg_contents": "I've got some long running queries, and want to tune them.\nUsing simple logic, I can understand what expensive steps in the query plan\nought to be (seq scan and index scans using much rows), but I want to\nquantify; use a somewhat more scientific approach.\n\nThe manual states: \"Actually t...
[ { "msg_contents": "After reviewing http://www.postgresql.org/docs/8.3/static/sql-cluster.html a \ncouple of times, I have some questions:\n1) it says to run analyze after doing a cluster. i'm assuming autovacuum will \ntake care of this? or should i go ahead and do the analyze 'now' instead of \nwaiting?\n2) is...
[ { "msg_contents": "I've got a lot of rows in one table and a lot of rows in another table. I\nwant to do a bunch of queries on their join column. One of these is like\nthis: t1.col like '%t2.col%'\n\n \n\nI know that always sucks. I'm wondering how I can make it better. First, I\nshould let you know that I ...
[ { "msg_contents": "I've got a lot of rows in one table and a lot of rows in another table. I\nwant to do a bunch of queries on their join column. One of these is like\nthis: t1.col like '%t2.col%'\n\n \n\nI know that always sucks. I'm wondering how I can make it better. First, I\nshould let you know that I ...
[ { "msg_contents": "Hi,\n\nWhile designing a complex database structure I wanted to ask a basic\nquestion about views.\n\nIf I give an ORDER BY clause in a VIEW and then use it in another query\nwhere the VIEW's ORDER BY is immaterial, would the planner be able to\ndiscard this ORDER BY clause ?\n\nAny pointers ...
[ { "msg_contents": "Hi,\n\nI am in the process of setting up a postgresql server with 12 SAS disks.\n\nI am considering two options:\n\n1) set up a 12 disks raid 10 array to get maximum raw performance from\nthe system and put everything on it (it the whole pg cluster, including\nWAL, and every tablespcace)\n\n2...
[ { "msg_contents": "I am moving our small business application\ndatabase application supporting\na 24/7 animal hospital to use 8.0.15 from\n7.4.19 (it will not support 8.1, 8.2. or 8.3).\n\nNow, we can choose a new a disc array. SATA\nseems cheaper and you can get more discs but\nI want to stay with SCSI. Any g...
[ { "msg_contents": "The Dell MD1000 is good. The most trouble you will have will be with the raid adapter - to get the best support I suggest trying to buy the dell perc 5e (also an LSI) - that way you'll get drivers that work and are supported.\r\n\r\nLatest seq scan performance I've seen on redhat 5 is 400 MB...
[ { "msg_contents": "Subject about says it all. Should I be more concerned about checkpoints \nhappening 'frequently' or lasting 'longer'? In other words, is it ok to \ncheckpoint say, every 5 minutes, if it only last a second or three or better \nto have checkpoints every 10 minutes that last half a minute? Stup...
[ { "msg_contents": "Hello\n\n---------------------------\nPostgresql version: 8.1.10\n4GB RAM\n2x HP 72GB 10K SAS RAID1/smartarray\n---------------------------\n\nI have a colleague that is having som performance problems from time to\ntime when deleting some rows from a table.\n\nWe found out that the database ...
[ { "msg_contents": "I've got a new server and am myself new to tuning postgres.\n\nServer is an 8 core Xeon 2.33GHz, 8GB RAM, RAID 10 on a 3ware 9550SX-4LP w/ BBU.\n\nIt's serving as the DB for a fairly write intensive (maybe 25-30%) Web\napplication in PHP. We are not using persistent connections, thus the\nhi...
[ { "msg_contents": "Hello Everyone,\n\nI had posted an issue previously that we've been unable to resolve. \nAn early mis-estimation in one or more subqueries causes the remainder \nof the query to choose nested loops instead of a more efficient method \nand runs very slowly (CPU Bound). I don't think there...
[ { "msg_contents": "Hi\n\nWe are thinking of running a PostgreSQL instance on a virtual host under\nXen.\n\nAny thoughts for/against running PostgreSQL on a virtual host would be\nmuch appreciated.\n\n-- \nRegards\nTheo\n\n", "msg_date": "Tue, 04 Mar 2008 17:43:00 +0200", "msg_from": "Theo Kramer <theo@f...
[ { "msg_contents": "On Tuesday 04 March 2008, dforums <dforums@vieonet.com> wrote:\n> Hello\n>\n>\n> We hace a Quad Xeon server, with 8GO of ram, sata II 750Go\n>\n>\n> I suppose the main problem is from database server settings.\n\nNo, the problem is your hard drive is too slow. One drive can only do maybe \...
[ { "msg_contents": "\nDear Friends,\n I have a table with 50 lakhs records, the table has more then 10\nfields, i have primary key, i have select query with count(*) without any\ncondition, it takes 17 seconds.\n\n I have another one query which will do joins with other small tables, it\ntakes 47 seconds to...
[ { "msg_contents": "DGB87PGD\n\n-- \nWith Best Regards,\nPetchimuthulingam S\n\nDGB87PGD-- With Best Regards,Petchimuthulingam S", "msg_date": "Wed, 5 Mar 2008 16:08:00 +0530", "msg_from": "\"petchimuthu lingam\" <spmlingam@gmail.com>", "msg_from_op": true, "msg_subject": "=?ISO-8859-1?Q?Confirma...
[ { "msg_contents": "Below I have two almost identical queries. Strangely enough the one \nthat uses the index is slower ???\n\nexplain analyze select uid from user_profile where \nlower(firstname)='angie' and extract(year from age('2008-02-26 \n02:50:31.382', dob)) >= 18 and extract(year from age('2008-02-26...
[ { "msg_contents": "OI6PQO5P\n\n-- \nWith Best Regards,\nPetchimuthulingam S\n\nOI6PQO5P-- With Best Regards,Petchimuthulingam S", "msg_date": "Thu, 6 Mar 2008 10:18:48 +0530", "msg_from": "\"petchimuthu lingam\" <spmlingam@gmail.com>", "msg_from_op": true, "msg_subject": "=?ISO-8859-1?Q?Confirma...
[ { "msg_contents": "R9PKE431\n-- \nWith Best Regards,\nPetchimuthulingam S\n\nR9PKE431-- With Best Regards,Petchimuthulingam S", "msg_date": "Thu, 6 Mar 2008 10:24:25 +0530", "msg_from": "\"petchimuthu lingam\" <spmlingam@gmail.com>", "msg_from_op": true, "msg_subject": "=?ISO-8859-1?Q?Confirma=E...
[ { "msg_contents": "HZ5DHKQJ\n\n-- \nWith Best Regards,\nPetchimuthulingam S\n\nHZ5DHKQJ-- With Best Regards,Petchimuthulingam S", "msg_date": "Thu, 6 Mar 2008 10:38:49 +0530", "msg_from": "\"petchimuthu lingam\" <spmlingam@gmail.com>", "msg_from_op": true, "msg_subject": "=?ISO-8859-1?Q?Confirma...
[ { "msg_contents": "C5BK4513\n\n-- \nWith Best Regards,\nPetchimuthulingam S\n\nC5BK4513-- With Best Regards,Petchimuthulingam S", "msg_date": "Thu, 6 Mar 2008 10:47:39 +0530", "msg_from": "\"petchimuthu lingam\" <spmlingam@gmail.com>", "msg_from_op": true, "msg_subject": "=?ISO-8859-1?Q?Confirma...
[ { "msg_contents": "count(*) tooks much time...\n\nbut with the where clause we can make this to use indexing,... what where\nclause we can use??\n\nAm using postgres 7.4 in Debian OS with 1 GB RAM,\n\nam having a table with nearly 50 lakh records,\n\nit has more than 15 columns, i want to count how many records...
[ { "msg_contents": "P289ZUDZ\n\n-- \nWith Best Regards,\nPetchimuthulingam S\n\nP289ZUDZ-- With Best Regards,Petchimuthulingam S", "msg_date": "Thu, 6 Mar 2008 11:27:36 +0530", "msg_from": "\"petchimuthu lingam\" <spmlingam@gmail.com>", "msg_from_op": true, "msg_subject": "=?ISO-8859-1?Q?Confirma...
[ { "msg_contents": "hi,\n\n is there any generalized format for the output for the output of the\nexplain command ?. If so please send that generalized format to me.\notherwise tell me how to parse the output of explain command to\nknow where the relation name occurs,where the conditions occurs,\nwhere the j...
[ { "msg_contents": "i had a table with 50 lakh record...\n\nit has a column called oid ( obviously all the tables will have this ), but\nwhile doing any operation it is getting slow because of the number of\nrecords...\n\nif i remove the oid column will i get any benefit, what are all the other\ndefault columns ...
[ { "msg_contents": "I had 50 lakh records in my table...\n\nwhile counting that am using that row in where condition... which makes\nproblem, cpu is waiting for device...\n\nDebian OS, postresql 7.4, 50 lakh records.\n\nQuery is\n\nEXPLAIN ANALYZE select count(call_id) from call_log where call_id > 1;\n\nwhile s...
[ { "msg_contents": "Hi all,\n\nI'm running the following query to match a supplied text string to an actual\nplace name which is recorded in a table with extra info like coordinates,\netc.\n\nSELECT ts_rank_cd(textsearchable_index_col , query, 32 /* rank/(rank+1) */)\nAS rank,*\nFROM gazetteer, to_tsquery('Gunbo...
[ { "msg_contents": "Hi,\n \n I am using postgresql for application. daily i will get more\nthan 5,00,000 records.\n \n i have done the partitioning of the table for each month.\n \n while generating reports, i will do join on some other table\nwith the large table \n \n it takes too m...
[ { "msg_contents": "I've came across this issue while writing report-like query for 2 not\nvery large tables. I've tried several methods to resolve this one (see\nbelow). But now I'm really stuck...\nPostgreSQL 8.3, default configuration\n\nThere are 2 tables (structure was simplified to show only problematic\np...
[ { "msg_contents": "Hello,\n\ni have problem with following table...\n\ncreate table dataaction (\n id INT4 not null,\n log text,\n primary key (id)\n);\n\nIt is the table for storing results of long running jobs. The log attribute\ntakes approximately 5MB for one row (there is about 300 rows). My problem\...
[ { "msg_contents": "In a select query i have used the join conditions, will it affect query\nperformance.\n\nExplicitly I didn't used the join command, Will it make any difference.\n\nMy Query is:\nSELECT test_log.test_id, test_log.test_id, test_log.test_id,\nuser_details.first_name, group_details.group_name, s...
[ { "msg_contents": "VE4TQQBN\n\n-- \nWith Best Regards,\nPetchimuthulingam S\n\nVE4TQQBN-- With Best Regards,Petchimuthulingam S", "msg_date": "Sat, 8 Mar 2008 09:46:06 +0530", "msg_from": "\"petchimuthu lingam\" <spmlingam@gmail.com>", "msg_from_op": true, "msg_subject": "=?ISO-8859-1?Q?Confirma...
[ { "msg_contents": "VQQ7HE18\n\nOn Sat, Mar 8, 2008 at 9:50 AM, <postmaster@infotecnica.com.br> wrote:\n\n> A mensagem de email enviada para pgsql-performance@postgresql.orgrequer confirmação para ser entregue. Por favor, responda este e-mail\n> informando os caracteres que você vê na imagem abaixo.\n>\n> The...
[ { "msg_contents": "Hi!\n\nAs part of a data warehousing project, I need to pre-process data downloaded\nfrom an external source, in the form of several large flat files. This\npreprocessing entails checking the validity of various data items, and\ndiscarding those that fail to pass all the checks.\n\nCurrently...
[ { "msg_contents": "Hi!\n\n I'm testing an update on 66k rows on Postgresql, and it seems \nsomething is not right here.\n\n My server is a Quad-Xeon 3.2 Ghz with 2 GB RAM and a RAID 1 running \nFreeBSD 6.3 and PgSQL 8.3. My development machine is a PowerBook G4 \n1.67 Ghz with 2 GB RAM, OS X Leopard and ...
[ { "msg_contents": "Miguel Arroz <arroz@guiamac.com> wrote ..\n\n> I'm testing an update on 66k rows on Postgresql, and it seems \n> something is not right here.\n> \n> My server is a Quad-Xeon 3.2 Ghz with 2 GB RAM and a RAID 1 running\n> FreeBSD 6.3 and PgSQL 8.3. My development machine is a PowerBook G...
[ { "msg_contents": "Hi all\n\nI've just spent some time working with PostgreSQL 8.3 trying to get a 90\nminute job to run in a reasonable amount of time, and in the process\nI've come up with something that I thought others might find useful.\n\nAttached is a pair of PL/PgSQL functions that enable/disable the\nt...
[ { "msg_contents": "Hi all\n\nI'm encountering an odd issue with a bulk import query using PostgreSQL\n8.3. After a 400,000 row import into a just-truncated table `booking', a\nsequential scan run on the table in the same transaction is incredibly\nslow, taking ~ 166738.047 ms. After a:\n\t`COMMIT; BEGIN;'\nthe ...
[ { "msg_contents": "I have one table with 30 fields, i have more then 60 million records, if i\nuse more no of indexes will it affect the insertion\nperformance? and select performance?\n\nShall i have more then one partial index for same field, ????\n\n-- \nWith Best Regards,\nPetchimuthulingam S\n\nI have one ...
[ { "msg_contents": "how to find trigger names in my database ?\n\nusing psql 7.4\n\nthe following query shows system triggers, i want only to list the\ntriggers created by me\n\nselect relname, tgname, tgtype, proname, prosrc, tgisconstraint,\ntgconstrname, tgconstrrelid, tgdeferrable, tginitdeferred, tgnargs,\n...
[ { "msg_contents": "thanks...\nafter this query also it is showing default triggers ( am very much worried\nthat how the system triggers are created using my username ....\n\nok i posted this in the group you specified..\n\nOn Tue, Mar 11, 2008 at 8:03 PM, Sergey Benner <sergey.benner@gmail.com>\nwrote:\n\n> Aga...
[ { "msg_contents": "Is there any article describing the migration database from postgresql 7.4to\n8.1\n\nIs there any article describing the migration database from postgresql 7.4 to 8.1", "msg_date": "Wed, 12 Mar 2008 10:57:09 +0530", "msg_from": "\"sathiya psql\" <sathiya.psql@gmail.com>", "msg_fro...
[ { "msg_contents": "Hello,\n\n(you could receive this message twice - I have some email issues sorry)\n\nI'm setting up a new DB with Centos 5 (amd64) + postgresql 8.3\ninstalled from the pgsql yum repository. This is a host dedicated to\npostgresql. From the benchmarks I found here and there on the web, and\nha...
[ { "msg_contents": "Hello, we plan to buy a dedicated server to host our database.\nHere is the proposal I was given (with a second identical server fro \nbackup using log shipping):\n=========================\nIBM X3650 (This is a 2U server, can hold 8 Drives)\n2 x QC Xeon E5450 (3.0GHz 12MB L2 1333MHz 80W)\n8 ...
[ { "msg_contents": "Hi all,\n\nJust upgraded to 8.2.5. \n\n \n\nGiven table t with columns a, b, c, d\n\n And index on t using btree (a,b)\n\n Is this indexable:\n\n Select * from t where a || b = '124cab' (or whatever)\n\n Assume a and b are defined as char(3)\n\n \n\nI have tried various op classes an...
[ { "msg_contents": "Hi\n\nI've been wondering about postgresql's handling of repeated subqueries \nin statements for a while, and thought I'd ask here.\n\nIf the exact same subquery appears in multiple places in a complex \nquery, it seems to be executed separately each time it appears. I'm \nwondering if there'...
[ { "msg_contents": "I have created partial index on a field with conditions, if field _a > 200\nand field_a < 300.\n\nI using the select query with condition as field_a in ( 100, 250, 289, ),\n\nWill it use the index.\n\n\n\n-- \nWith Best Regards,\nPetchimuthulingam S\n\nI have created partial index on a fi...
[ { "msg_contents": "Hi chaps,\n\nI'm looking at switching out the perc5i (lsi megaraid) cards from our\nDell 2950s for something else as they're crap at raid 10.\n\nThing is I'm not entirely sure where to start, we're using 6 SAS\ndrives and also need a bbu cache. The perc5i has 256mb which I'm sure\nwould be fi...
[ { "msg_contents": "Is there any tool to draw ER diagram from SQL schema file...\n\n\nno other groups are replying.....\n\nIs there any tool to draw ER diagram from SQL schema file...no other groups are replying.....", "msg_date": "Thu, 13 Mar 2008 18:54:18 +0530", "msg_from": "\"sathiya psql\" <sathiya....
[ { "msg_contents": "Bonie++ benchmarks below.\n\nI believe the the Perc 5/i Raid 10 mode is actually a span of mirrors, rather than the expected stripe of mirrors we should expect from 1+0, and that this is the reason for the shitty performance.\n\n\nRAID 5\n======\nVersion 1.03 ------Sequential Output---...
[ { "msg_contents": "Do CREATE TEMP TABLE table have any special treatment regarding eliding \nsync operations\nor deferring creation of disk files in the case where memory pressure \ndoes not require a spill?\n\nJames\n\n", "msg_date": "Thu, 13 Mar 2008 22:08:39 +0000", "msg_from": "James Mansion <james@...
[ { "msg_contents": "On a database (PostgreSQL 8.2.4 on 64-bit Linux 2.6.18 on 8 AMD Opterons)\r\nthat is under high load, I observe the following:\r\n\r\n- About 200 database sessions concurrently issue queries, most of them small,\r\n but I have found one that touches 38000 table and index blocks.\r\n- \"vmsta...