threads listlengths 1 275 |
|---|
[
{
"msg_contents": "I'm aware you already know that information_schema is slow [1] [2], so I\njust want to expose/document another case and tests I did.\n\nI'm using the following view to check what tables depend on what other\ntables.\n\nCREATE VIEW raw_relation_tree AS\nSELECT\n tc_p.table_catalog AS parent_... |
[
{
"msg_contents": "This dinky little query takes about 4 seconds to run:\n\n select event_occurrences.*\n from event_occurrences\n join section_items on section_items.subject_id = event_occurrences.event_id\n and section_items.subject_type = 'Event'\n and section_items.sandbox_id = 16399\n where event... |
[
{
"msg_contents": "Hi All,\n\nI have these indexes on a table:\n\n\nCREATE INDEX uidx_product_partno_producer_id\n ON product\n USING btree\n (partno, producer_id);\n\n\nCREATE INDEX idx_product_partno\n ON product\n USING btree\n (partno);\n\nCan I safely delete the second one? Will postgresql use \n(par... |
[
{
"msg_contents": "Recently I've been working on improving the performance of a system that\ndelivers files stored in postgresql as bytea data. I was surprised at\njust how much a penalty I find moving from a domain socket connection to\na TCP connection, even localhost. For one particular 40MB file (nothing\no... |
[
{
"msg_contents": "Hi,\n\nLet's say I have a table (tbl) with two columns: id1, id2.\nI have an index on (id1,id2)\nAnd I would like to query the (12;34) - (56;78) range (so it also may\ncontain (12;58), (13;10), (40;80) etc.). With the index this can be done\nquite efficiently in theory, but I cannot find a wa... |
[
{
"msg_contents": "Hi,\n\nI have a query SELECT * FROM myTable WHERE ((myCol = var1) OR (myCol = \nvar2))\n\n.. which produces the following EXLAIN output:\n\n\nIndex Scan using myIndex on myTable (cost=0.00..8.28 rows=1 width=537)\n Filter: ((myCol = $1) OR (myCol = $2))\n\n\nThe index \"myIndex\" is an inde... |
[
{
"msg_contents": "Hi,\n\nI have table containing bytea and text columns. It is my storage for\nimage files and it's labels. Labels can be 'original' and 'thumbnail'.\nI've C-function defined in *.so library and corresponding declaration in\npostgres for scaling image. This function scale image and insert it in... |
[
{
"msg_contents": "Just as a question to Tom and team,\nI saw a post a bit ago, about plans for 8.4, and Tom said it is very\nlikely that 8.4 will rewrite subselects into left joins, is it still\nin plans?\n\nI mean query like:\nselect id from foo where id not in ( select id from bar);\ninto:\n\nselect f.id fro... |
[
{
"msg_contents": "Hi,\n\nI've made a benchmark comparing PostgreSQL, MySQL and Oracle under three environments: GNU/Linux-x86, Solaris-x86 (same machine as GNU/Linux) and Solaris-SPARC. I think you might find it interesting:\n\nhttp://blogs.nologin.es/slopez/archives/17-Benchmarking-Databases-I.-Volatile-Stora... |
[
{
"msg_contents": "I have a server box that has 4GB of RAM, Quad core CPU AMD Opteron 200.152\nMhz (1024 KB cache size each) with plenty of hard drive space.\n\nI installed both postgresql 8.2.6 and 8.3.3 on it. I've created a basic\ntest db and used\npgbench -i -s 1 -U test -h localhost test\nto create a samp... |
[
{
"msg_contents": "Hi,\n\nI have a 8 GB database, and 2 GB table. In a query i use the 2 GB table and\nseveral other tables where it takes around 90 minutes for execution.\n\nIn different places, it takes drastically different time. Say everywhere i\nhave the same,\nOS - Debian.\nPrimary memory - 3 GB\nPostgreS... |
[
{
"msg_contents": "Hello,\n\nI'm experiencing a strange issue. I have a table with around 11 million \nrecords (11471762 to be exact), storing login attempts to a web site. \nThanks to the index I have created on username, looking into that table \nby username is very fast:\n\n\n\ndb=# EXPLAIN ANALYZE\nSELECT\n... |
[
{
"msg_contents": "Hello,\n\nI am doing a performance comparison between running\nJena<http://jena.sourceforge.net/>with MySQL and Postgres. I used the\n8.3-community version of Postgres and\nMySQL 5.0.67. I have run several queries to both MySQL and Postgres and all\nof them took similar amount of time to exec... |
[
{
"msg_contents": "explain select ss, ARRAY(select id from foo where ss>0 and id between\n7 and 156 order by random() limit 3) as v from\ngenerate_series(1,1000000) ss;\n QUERY PLAN\n------------------------------------------------------------------------------------\n Functi... |
[
{
"msg_contents": "Question to core developers\nif I rank() a table, grouping by foo - but only will want to get first\nX result for every rank.\nWill postgresql be able to optimize that, or is it something left over\nfor 8.5 in general?\n\n\n-- \nGJ\n",
"msg_date": "Tue, 24 Feb 2009 15:07:18 +0000",
"m... |
[
{
"msg_contents": "Hello\n\nDoes Postgres have ability to keep .dict and .affix files cached \nglobally for all client sessions?\n\nEvery time I connect to test server - it takes 3 seconds to load 4MB \ndictionary when executing first FTS query.\n\n-- \nRegards,\nTomasz Myrta\n",
"msg_date": "Wed, 25 Feb 20... |
[
{
"msg_contents": "Hi,\nI was reading a benchmark that sets out block sizes against raw IO performance for a number of different RAID configurations involving high end SSDs (the Mtron 7535) on a powerful RAID controller (the Areca 1680IX with 4GB RAM). See http://jdevelopment.nl/hardware/one-dvd-per-second/\n>F... |
[
{
"msg_contents": "Actually, they're all deadlocked. The question is why?\n\nHere's a brief background. The ts_defects table is partitioned by \noccurrence date; each partition contains the rows for 1 day. When the \ndata gets old enough, the partition is dropped. Since the correct \npartition can be determined... |
[
{
"msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> [ shrug... ] You tell us. To me it sounds a whole lot like some client\n> program sitting on an open transaction that has a nonexclusive lock on\n> the table to be dropped. That transaction wasn't necessarily doing any\n> useful work; it might have ju... |
[
{
"msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> If you hadn't left out the \"granted\" column we could be more sure,\n> but what it looks like to me is the DROP (pid 13842) is stuck behind\n> the <IDLE> transaction (pid 13833). In particular these two rows of\n> pg_locks look like a possible conflict... |
[
{
"msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> Well, that's certainly a sufficient reason, if perhaps not the only\n> reason. Dropping ts_defects_20090227 will require removal of FK triggers\n> on ts_transets, and we can't do that concurrently with transactions that\n> might be trying to fire those ... |
[
{
"msg_contents": "Hi,\n\nWe are currently running postgres 8.2 and are evaluating the upgrade to 8.3.\n\nSome of our tests are indicating that postgresql 8.3 is actually degrading\nthe\nperformance of some of our queries by a factor of 10 or more. The queries\nin\nquestion are selects that are heavy on joins ... |
[
{
"msg_contents": "\n\n\n\nHi,\n\nI have come across a weird bug (i think) in postgres 8.1.11 (possibly\nothers)\n\nWithout going into my table structure detail I will demonstrate the\nproblem by showing the select statements:\n\nThe following statement:\nSELECT count(*)\nFROM object o, object_version v, object... |
[
{
"msg_contents": "Hey,\n\nI have a table that links content together and it currently holds\nabout 17 mio records. Typical query is a join with a content table and\nlink table:\n\nnoovo-new=# explain analyze SELECT \"core_accessor\".\"id\",\n\"core_accessor\".\"content_type_id\",\n\"core_accessor\".\"object_id... |
[
{
"msg_contents": "Hello all \n\nIn a dedicated server with 16 cores and 16GB of RAM running PostgreSQL 8.2.5 we have a database with basically two kinds of transactions: \n- short transactions with a couple of updates and inserts that runs all the day; \n- batch data loads with hundreds of inserts that runs se... |
[
{
"msg_contents": "----- \"Scott Marlowe\" <scott.marlowe@gmail.com> escreveu: \n> Oh my lord, that is a foot gun waiting to go off. Assuming 2k \n> connections, and somehow a fair number of them went active with big \n> sorts, you'd be able to exhaust all physical memory with about 8 to \n> 16 connections. Low... |
[
{
"msg_contents": "Running PG 8.1.11 on AIX 5.3\n\nTrying to track down the cause of long running commits on one of our DB servers. \n\nI can rule checkpoints out (I've set log_min_messages to debug2 and the commits are not happening during checkpoints).\n\nWe have this problem over a period of ~ 35 minutes pe... |
[
{
"msg_contents": "I have a relatively simple query with a single index on (contract_id, time):\n\nvjtrade=> EXPLAIN SELECT * FROM ticks WHERE contract_id=1 ORDER BY time;\n QUERY\nPLAN\n---------------------------------------------------------------------------------... |
[
{
"msg_contents": "I have a function, looking like this:\n\nCREATE OR REPLACE FUNCTION get_memo_display_queue_size(a_service_id integer)\n RETURNS integer AS\n$BODY$\nSELECT\n\tCOUNT(*)::integer\nFROM\n\tv_messages_memo\n\tLEFT JOIN messages_memo_displayed\n\t\tON id = message_id\nWHERE\n\tservice_id = $1\n\t... |
[
{
"msg_contents": "Hi- where can I find location of the DBT presentation in Portland next week?\n\nThanks-\n\nLee\n\nHi- where can I find location of the DBT presentation in Portland next week?Thanks-Lee",
"msg_date": "Mon, 9 Mar 2009 07:28:20 -0700",
"msg_from": "Lee Hughes <lee@hughesys.com>",
"ms... |
[
{
"msg_contents": "Hi,\n\nIt is frequently said that for PostgreSQL the number 1 thing to pay attention to when increasing performance is the amount of IOPS a storage system is capable of. Now I wonder if there is any situation in which sequential IO performance comes into play. E.g. perhaps during a tablescan ... |
[
{
"msg_contents": "Hi,\n\nI'd be grateful for any advice we can get... we recently switched from MySQL\nto PostgreSQL on the basis of some trials we carried out with datasets of\nvarying sizes and varying rates of contention. For the most part we've been\npleased with performance, but one particular application... |
[
{
"msg_contents": ">\n>\n> *Scott Marlowe <scott.marlowe@gmail.com>*\n> 03/10/2009 05:19 PM\n>\n> >\n> > Nested Loop (cost=466.34..192962.24 rows=15329 width=12) (actual\n> > time=13653.238..31332.113 rows=131466 loops=1)\n>\n>\n> Both your query plans end with this nested loop join which is taking\n> up abou... |
[
{
"msg_contents": ">\n>\n>\n> *Tom Lane <tgl@sss.pgh.pa.us>*\n> Sent by: pgsql-performance-owner@postgresql.org\n> 03/10/2009 08:16 PM AST\n>\n> \"Steve McLellan\" <smclellan@mintel.com> writes:\n> > lc_messages = 'en_US.UTF-8'\n> > lc_monetary = 'en_US.UTF-8'\n> > lc_numeric = 'en_US.UTF-8'\n> > lc_time = 'en_... |
[
{
"msg_contents": ">\n>\n>\n> *\"Kevin Grittner\" <Kevin.Grittner@wicourts.gov>*\n> 03/10/2009 05:06 PM EST\n>\n> > enable_seqscan = off\n>\n> Not a good idea; some queries will optimize better with seqscans.\n> You can probably get the behavior you want using other adjustments.\n>\nThe bullet to cure the heada... |
[
{
"msg_contents": "I've got a couple x25-e's in production now and they are working like \na champ. (In fact, I've got another box being built with all x25s in \nit. its going to smoke!)\n\nAnyway, I was just reading another thread on here and that made me \nwonder about random_page_cost in the world of an ... |
[
{
"msg_contents": "Greetings. We're having trouble with full logging since we moved from\nan 8-core server with 16 GB memory to a machine with double that\nspec and I am wondering if this *should* be working or if there is a\npoint on larger machines where logging and scheduling seeks of\nbackground writes - or... |
[
{
"msg_contents": "Hello All,\n\nAs you know that one of the thing that constantly that I have been \nusing benchmark kits to see how we can scale PostgreSQL on the \nUltraSPARC T2 based 1 socket (64 threads) and 2 socket (128 threads) \nservers that Sun sells.\n\nDuring last PgCon 2008 \nhttp://www.pgcon.org/... |
[
{
"msg_contents": "Hi,\n Can you guide me, Where is the entry point to get the documentation\nfor Postgresql performance tuning, Optimization for Postgresql with\nStorage controller. \n \nYour recommendation and suggestion are welcome. \n \nRegards \nKarthikeyan.N\n \n \n\n\n\n\n\nHi,\n Can you guide me... |
[
{
"msg_contents": "From the documentation, I understand that range of actual time represents\nthe time taken for retrieving the first result and the last result\nrespectively. However, the following output of explain analyze confuses me:\n\nGroupAggregate (cost=632185.58..632525.55 rows=122884 width=57)\n(actu... |
[
{
"msg_contents": "Hi,\n we are in the process of finding the best solution for Postgresql\ndeployment with storage controller. I have some query, Please give some\nsuggestion for the below\n \n1) Can we get customer deployment scenarios for postgresql with storage\ncontroller. Any flow diagram, operation di... |
[
{
"msg_contents": "Hello List,\n\ni would like to pimp my postgres setup. To make sure i dont have a slow\nhardware, i tested it on three diffrent enviorments:\n1.) Native Debian Linux (Dom0) and 4GB of RAM\n2.) Debian Linux in Xen (DomU) 4GB of RAM\n3.) Blade with SSD Disk 8GB of RAM\n\nHere are my results: ... |
[
{
"msg_contents": "First of all, I did pose this question first on the pgsql - admin mailing\nlist.\n\nAnd I know it is not appreciated to post across multiple mailing lists so I\n\nApologize in advance. I do not make it a practice to do so but, this being\n\nA performance issue I think I should have inquired ... |
[
{
"msg_contents": "Our production database is seeing very heavy CPU utilization - anyone \nhave any ideas/input considering the following?\n\nCPU utilization gradually increases during the day until it approaches \n90%-100% at our peak time. When this happens our transactions/sec \ndrops and our site become... |
[
{
"msg_contents": "Test hardware:\nMB:GA-EP43-DS3L, CPU :intel 7400 RAM:2G HD:320G sata\n\ndebian5, freebsd7.1 are installed by default choice by cd-rom\ndebian use XFS, Freebsd use UFS+softdateup\nall software installed by app_get or pkg_add, change NOTHING configure.\nat begening of every testing, use initdb ... |
[
{
"msg_contents": "Short summary:\n * extremely slow intarray indexes with gist__int_ops\n * gist__intbig_ops seems much faster even with short arrays\n * gin seems much much faster for inserts and creation(and queries)\n\n\nI was debugging a system with a table that slowed to where individual\ninserts... |
[
{
"msg_contents": "We have a few slow queries that use sequential scans on tables that have \nplenty of indexes (for other queries), on a box with a lot of RAM and 13 \nactive cores (don't ask), so I was curious to find out how to put this \nenvironment to better use. The result is (maybe) interesting, esp. sin... |
[
{
"msg_contents": "\nHi,\n>Has anyone done similar work in the light of upcoming many-core CPUs/systems? Any better results than 2x improvement?\n\nYes, in fact I've done a very similar thing on a quad CPU box a while back. In my case the table in question had about 26 million rows. I did nothing special to the... |
[
{
"msg_contents": "Hi,\n\nI am not sure if sending this to the right place. I did try to get the\nanswer from pgpool mailing list but no luck . Would appreciate if someone\ncan help here.\n\nWe are receving the following error in the postgres database logs:\n\n2009-03-19 02:14:20 PDT [2547]: [79-1] LOG: durati... |
[
{
"msg_contents": "Hi,\nWe have the following 2 tables:\n\\d audit_change\n Table \"public.audit_change\"\n Column | Type | Modifiers\n----------------+------------------------+-----------\n id | character varying(32) | not null\naudit_entry_id | character var... |
[
{
"msg_contents": "Hello List,\n\nis there a way to find out, how many transactions my currenc productive \ndatabase is doing?\n\nI know know how much i an offer with my new database and hardware, but i \nwould also like to know what i actually _need_ on my current productive \nsystem.\n\nIs there a way to find... |
[
{
"msg_contents": "I just discovered this on a LinkedIn user group:\n\nhttp://bugzilla.kernel.org/show_bug.cgi?id=12309\n\nIs anyone here seeing evidence of this in PostgreSQL??\n--\nM. Edward (Ed) Borasky\nhttp://www.linkedin.com/in/edborasky\n\nI've never met a happy clam. In fact, most of them were pretty st... |
[
{
"msg_contents": "Hello all.\n\nTo our surprise this morning, we found a query that used to return\nit's result in about 50 ~ 100ms now take about 7.000ms to run.\n\nAfter some investigation, we found out that the PostgreSQL server\n(8.1) changed the execution plan (I'm assuming because the number of\nrows inc... |
[
{
"msg_contents": "The application log shows that 99652 rows are being inserted into \nrelation ts_stats_transet_user_daily. 5 threads are doing the inserts. \nThe schema is lengthy, but it has a synthetic primary key (ts_id int8 \nnot null) and the following constraints:\n\nalter table ts_stats_transet_user_da... |
[
{
"msg_contents": "Tom Lane [tgl@sss.pgh.pa.us] wrote:\n> pg_stat_activity says those five threads are doing nothing except\n> sitting around with open transactions. You sure you don't have a bug on\n> the application side?\n> \n> regards, tom lane\n\nThis is a java app. A thread dump r... |
[
{
"msg_contents": "Scott Marlowe [scott.marlowe@gmail.com] wrote:\n> Might you have a firewall that's killing the connections? What does\n> netstat -an on the client side say about these connections?\nI don't think so: 1) app and postgres are on the same machine and 2)\nthis has been the set up for months and ... |
[
{
"msg_contents": "David Wilson [david.t.wilson@gmail.com] wrote:\n\n> How many indexes are there on ts_stats_transset_user_daily?\n10:\ncreate index ts_stats_transet_user_daily_DayIndex on \nts_stats_transet_user_daily (ts_day);\ncreate index ts_stats_transet_user_daily_HourIndex on \nts_stats_transet_user_dai... |
[
{
"msg_contents": "\nexample:\n\nselect version();\n version\n--------------------------------------------------------------------------------------------\n PostgreSQL 8.3.6 on i486-pc-linux-gnu, compiled by GCC gcc-4.3.real (Debian 4.3.3-3) 4.3.3\n\nshow maintenance_wor... |
[
{
"msg_contents": "I hate to nag, but could anybody help me with this? We have a few\nrelated queries that are causing noticeable service delays in our\nproduction system. I've tried a number of different things, but I'm\nrunning out of ideas and don't know what to do next.\n\nThanks,\nBryan\n\nOn Mon, Mar 23... |
[
{
"msg_contents": "I'm trying to pin down some performance issues with a machine where I \nwork, we are seeing (read only) query response times blow out by an \norder of magnitude or more at busy times. Initially we blamed \nautovacuum, but after a tweak of the cost_delay it is *not* the \nproblem. Then I look... |
[
{
"msg_contents": "So far using dd I am seeing around 264MB/s on ext3, 335MB/s on ext2 write\nspeed. So the question becomes what is the best filesystem for this drive?\n\nAnyone want me to run anything on it ?\n\nDave\n\nSo far using dd I am seeing around 264MB/s on ext3, 335MB/s on ext2 write speed. So the qu... |
[
{
"msg_contents": "XFS\r\n\r\n- Luke\r\n\r\n________________________________\r\nFrom: pgsql-performance-owner@postgresql.org <pgsql-performance-owner@postgresql.org>\r\nTo: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>\r\nSent: Thu Mar 26 05:47:55 2009\r\nSubject: [PERFORM] I have a fusion... |
[
{
"msg_contents": "\nSo, I have an query that has a very great difference between the possible \nperformance and the achieved performance. I was wondering if there was a \npossibility that Postgres would approach the possible performance by some \ndevious method.\n\nThe query returns a list of overlaps between ... |
[
{
"msg_contents": "I have two tables, like this:\n\nBig table:\n\nCREATE TABLE photo_info_data\n(\n photo_id integer NOT NULL,\n field_name character varying NOT NULL,\n field_value character varying,\n CONSTRAINT photo_info_data_pk PRIMARY KEY (photo_id, field_name)\n)\nWITH (OIDS=FALSE);\n\nCREATE IND... |
[
{
"msg_contents": "I'm running a 64-bit build of Postgres 8.3.5 on AIX 5.3, and have a really\nstrange, annoying transient problem with one particular query stalling.\n\nThe symptom here is that when this query is made with X or more records in\na temp table involved in the join (where X is constant when the pr... |
[
{
"msg_contents": "Hi,\nFor performance reasons (obviously ;)) I'm experimenting with parallel restore in PG 8.4. I grabbed the latest source snapshot (of today, March 30) and compiled this with zlib support. I dumped a DB from PG 8.3.5 (using maximum compression). I got this message however:\npostgres@mymachin... |
[
{
"msg_contents": "Hi\nI have some problems with the PostgreSQL 8.3.6.\nThe client(Microsoft Access 2000) link postgresql table(via ODBC) and \nwork with this. Sometimes on the client appear:\n ODBC--call failed.\n Could not send Query(connection dead)(#26);\n\nIn PostgreSQL log appear:\n could ... |
[
{
"msg_contents": "How hard would it be to teach planer to optimize self join?\n\nWhile this query which demonstrates it is not that common\n\nSELECT count(*)\nFROM\n\tbig_table a\n\tINNER JOIN big_table b ON a.id = b.id;\n\nThis type of query (self joining large table) is very common\n(at least in our environm... |
[
{
"msg_contents": "Hannes sent this off-list, presumably via newsgroup, and it's certainly \nworth sharing. I've always been scared off of using XFS because of the \nproblems outlined at http://zork.net/~nick/mail/why-reiserfs-is-teh-sukc , \nwith more testing showing similar issues at \nhttp://pages.cs.wisc.e... |
[
{
"msg_contents": "\nSo, I have a view. The query that the view uses can be written two \ndifferent ways, to use two different indexes. Then I use the view in \nanother query, under some circumstances the first way will be quick, and \nunder other circumstances the second way will be quick.\n\nWhat I want to kn... |
[
{
"msg_contents": "\nI'm writing a plpgsql function that effectively does a merge join on the \nresults of two queries. Now, it appears that I cannot read the results of \ntwo queries as streams in plpgsql, so I need to copy the contents of one \nquery into an array first, and then iterate over the second query... |
[
{
"msg_contents": "Hello!\n\nSorry for the wall of text here.\n\nI'm working on a performance POC and I'm using pgbench and could\nuse some advice. Mostly I want to ensure that my test is valid\nand that I'm using pgbench properly.\n\nThe story behind the POC is that my developers want to pull web items\nfrom t... |
[
{
"msg_contents": "All,\n\nI've been using Bonnie++ for ages to do filesystem testing of new DB \nservers. But Josh Drake recently turned me on to IOZone.\n\nThing is, IOZone offers a huge complex series of parameters, so I'd \nreally like to have some idea of how to configure it so its results are \napplicabl... |
[
{
"msg_contents": "> I've been using Bonnie++ for ages to do filesystem testing of new DB servers. But Josh Drake recently turned me on to IOZone.\n\nPerhaps a little off-topic here, but I'm assuming you are using Linux to test your DB server (since you mention Bonnie++). But it seems to me that IOZone only has... |
[
{
"msg_contents": "I am looking to setup replication of my postgresql database, primarily \nfor performance reasons.\n\nThe searching I've done shows a lot of different options, can anyone \ngive suggestions about which one(s) are best? I've read the archives, \nbut there seems to be more replication solutions ... |
[
{
"msg_contents": "I have a somewhat large table (more than 100 million rows) that contains log\ndata with start_time and end_time columns. When I try to do queries on this\ntable I always find them slower than what I need and what I believe should\nbe possible.\n\n \n\nFor example, I limited the following quer... |
[
{
"msg_contents": "I have an issue with the add foreign key constraint which goes for waiting\nand locks other queries as well.\n\nALTER TABLE ONLY holding_positions ADD CONSTRAINT\nholding_positions_stock_id_fkey FOREIGN KEY (stock_id)\n REFERENCES stocks (stock_id) MATCH SIMPLE\n ON UPDATE NO ACTION... |
[
{
"msg_contents": "I know that EXPLAIN will show the query plan. I know that pg_locks will \nshow the locks currently held for activity transactions. Is there a way \nto determine what locks a query will hold when it is executed?\n\nThanks,\nBrian\n",
"msg_date": "Tue, 07 Apr 2009 11:05:29 -0700",
"msg_... |
[
{
"msg_contents": "It seems that ANALYZE does not really sample text column values as much \nas it could. We have some very bad query plans resulting from this:\n\n...\n -> Bitmap Index Scan on m_pkey (cost=0.00..28.61 rows=102 \nwidth=0) (actual time=171.824..171.824 rows=683923 loops=1)\n ... |
[
{
"msg_contents": "(This is related to an earlier post on -sql.)\n\nI'm querying for the N high scores for each game, with two tables:\nscores and games.\n\nCREATE TABLE game (id SERIAL NOT NULL PRIMARY KEY);\nCREATE TABLE score (id SERIAL NOT NULL PRIMARY KEY, score REAL,\ngame_id INTEGER REFERENCES game (id))... |
[
{
"msg_contents": "Hi all,\n\nHas anyone experimented with the Linux deadline parameters and have \nsome experiences to share?\n\nRegards,\nMark\n",
"msg_date": "Thu, 9 Apr 2009 07:00:54 -0700",
"msg_from": "Mark Wong <markwkm@gmail.com>",
"msg_from_op": true,
"msg_subject": "linux deadline i/o... |
[
{
"msg_contents": "All,\n\nI was looking at these IOZone results for some NAS hardware and thinking \nabout index scans:\n\nChildren see throughput for 6 readers \t\t= 72270.04 KB/sec\nParent sees throughput for 6 readers \t\t= 72269.06 KB/sec\nMin throughput per process \t\t\t= 11686.53 KB/sec\nMax thr... |
[
{
"msg_contents": "Hi all,\n\nWhat are your experiences with Postgres 8.x in production use on Windows \nServer 2003/2008? Are there any limitations, trade-offs or quirks?\n\nMy client is accustomed to Windows Server environment, but it seems hard \nto google good information about these types of installations.... |
[
{
"msg_contents": "I sent this out on 4/7 and either missed a response or didn't get one. \nIf this is the wrong forum, I'd appreciate a redirect.\n\nI know that EXPLAIN will show the query plan. I know that pg_locks will\nshow the locks currently held for activity transactions. Is there a way\nto determine wha... |
[
{
"msg_contents": "\nHi chaps,\n\nIs anyone using 2.6.26 with postgres? I was thinking about shifting my home test machine up from 2.6.18, however I recall reading a post somewhere a while back about the scheduler in more recent versions being a bit cranky...\n\nI just thought I'd ask before I go ahead, I don'... |
[
{
"msg_contents": "Hi\n\nI've been doing some testing for the Bacula project, which uses\nPostgreSQL as one of the databases in which it stores backup catalogs.\n\nInsert times are critical in this environment, as the app may insert\nmillions of records a day.\n\nI've been evaluating a schema change for Bacula ... |
[
{
"msg_contents": "ts_defect_meta_values has 460M rows. The following query, in retrospect \nnot too surprisingly, runs out of memory on a 32 bit postgres:\n\nupdate ts_defect_meta_values set ts_defect_date=(select ts_occur_date \nfrom ts_defects where ts_id=ts_defect_id)\n\nI changed the logic to update the ta... |
[
{
"msg_contents": "Hey guys,\n\n \n\nI need some information on \n\n1. What are the best features of Npgsql product as compare to other\ncommercial .net data providers?\n\n2. If you have encountered any major problems, bugs or performance issue\netc... With this product?\n\n \n\nThanks in advance,\n\nPeeyush Ja... |
[
{
"msg_contents": "\nI have a query that is executed really badly by Postgres. It is a nine \ntable join, where two of the tables are represented in a view. If I remove \none of the tables from the query, then the query runs very quickly using a \ncompletely different plan.\n\nHere is the view:\n\nrelease-16.0-... |
[
{
"msg_contents": "\nI have been doing some queries that are best answered with GiST indexes, \nhowever I have found that their performance is a little lacking. I thought \nI would do a direct comparison on a level playing field. Here are two \nEXPLAIN ANALYSE results for the same query, with two different inde... |
[
{
"msg_contents": "\nPG (8.3.7) doesn't seem to want to do a hash join across two partitioned \ntables. I have two partition hierarchies: impounds (with different \nimpound sources) and liens (with vehicle liens from different companies). \nTrying to match those up gives:\n\nEXPLAIN SELECT COUNT(*)\nFROM impou... |
[
{
"msg_contents": "I have a problem with a part of big query because of incorrect \nestimation. It's easy to emulate the case:\n\ncreate table a (id bigint, id2 bigint);\ncreate table b (id bigint, id2 bigint);\n\ninsert into a (id, id2)\nselect random() * 100000, random() * 100\nfrom generate_series(1, 100000)... |
[
{
"msg_contents": "crawler=# select * from assigments;\n jobid | timeout | workerid\n-------+---------+----------\n(0 rows)\n\nTime: 0.705 ms\ncrawler=# \\d+ assigments\n Table \"public.assigments\"\n Column | Type | Modifiers\n... |
[
{
"msg_contents": "Hello People,\n\nI have initiated a work to review the sqls of our internal software.\nLot of them he problem are about sql logic, or join with table unecessary,\nand so on.\nBut software has lot of sql with date, doing thinks like:\n[..]\n date >= '2009-04-01' AND\n date <= '2009-04-15'\n[... |
[
{
"msg_contents": "I am working with the rsyslog developers to improve it's performance in \ninserting log messages to databases.\n\ncurrently they have a postgres interface that works like all the other \nones, where rsyslog formats an insert statement, passes that the the \ninterface module, that sends it to ... |
[
{
"msg_contents": "I have a database with two tables that relate similar data, and a view\nwhich projects and combines the data from these two tables in order to\naccess them both in a consistent manner. With enough information, the\napplication can specifically choose to query from one table or the\nother, bu... |
[
{
"msg_contents": "\n",
"msg_date": "Fri, 24 Apr 2009 08:51:52 +1000",
"msg_from": "Adam Ruth <adamruth@mac.com>",
"msg_from_op": true,
"msg_subject": ""
}
] |
[
{
"msg_contents": "Hi,\n\nI'm having serious performance problems with my two plpgsql functions \n(lots of calculations inside, including distance (lat,long) using \nearthdistance etc).\n\nMy problem is: both functions are executing for hours (if not days) but \nresource consumption is low (I/O, CPU, memory), l... |
[
{
"msg_contents": "Friendly greetings !\n\nAccording to : http://developer.postgresql.org/pgdocs/postgres/storage-page-layout.html\nEvery table and index is stored as an array of pages of a fixed size\n(usually 8 kB, although a different page size can be selected when\ncompiling the server).\n\nIs there any usa... |
[
{
"msg_contents": "I have the opportunity to set up a new postgres server for our\nproduction database. I've read several times in various postgres\nlists about the importance of separating logs from the actual database\ndata to avoid disk contention.\n\nCan someone suggest a typical partitioning scheme for a ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.