threads listlengths 1 275 |
|---|
[
{
"msg_contents": "Hi again!\n\nI have finally got my Ubuntu VirtualBox VM running PostgreSQL with PL/Python\nand am now looking at performance.\n\nSo here's the scenario:\n\nWe have a great big table:\n\ncse=# \\d nlpg.match_data\n Table \"nlpg.match_data\"\n Column... |
[
{
"msg_contents": "Hi,\n\nat the moment we encounter some performance problems with our database server.\n\nWe have a 12 GB RAM machine with intel i7-975 and using\n3 disks \"Seagate Barracuda 7200.11, ST31500341AS (1.5 GB)\" \nOne disk for the system and WAL etc. and one SW RAID-0 with two disks for \npostgre... |
[
{
"msg_contents": "A scary phenomenon is being exhibited by the server , which is the server\nis slurping all the swap suddenly , some of the relevant sar -r output are:\n\n\n\n10:30:01 AM kbmemfree kbmemused %memused kbbuffers kbcached\nkbswpfree kbswpused %swpused kbswpcad\n10:40:01 AM 979068 31892208... |
[
{
"msg_contents": "I'm trying to find someone who has a system with an AMD \"Magny Cours\" \n6100 series processor in it, like the Opteron 6174 or 6176 SE, who'd be \nwilling to run a short test for me during an idle period to collect some \nperformance data about it. Can't be running Windows, probably easiest... |
[
{
"msg_contents": "I am in the process of moving a system that has been built around FoxPro\ntables for the last 18 years into a PostgreSQL based system.\n\nOver time I came up with decent strategies for making the FoxPro tables\nwork well with the workload that was placed on them, but we are getting to\nthe po... |
[
{
"msg_contents": "Hello,\n\nWhen I run an SQL to create new tables and indexes is when Postgres consumes all CPU and impacts other users on the server.\n\nWe are running Postgres 8.3.7 on a Sun M5000 with 2 x quad core CPUs (16 threads) running Solaris 10.\n\nI've attached the sar data at the time of the run- ... |
[
{
"msg_contents": "<tony@exquisiteimages.com> wrote:\n \n> With the dBase and ISAM tables I have a good idea of how to handle\n> them since I have been working with them since dBASE originally\n> came out.\n \nAh, someone with whom I can reminisce about CP/M and WordStar? :-)\n \n> With the PostgreSQL type tab... |
[
{
"msg_contents": "Dear List,\n\njust by removing the order by co_name reduces the query time dramatically\nfrom ~ 9 sec to 63 ms. Can anyone please help.\n\nRegds\nRajesh Kumar Mallah.\n\n\nexplain analyze SELECT * from ( SELECT\na.profile_id,a.userid,a.amount,a.category_id,a.catalog_id,a.keywords,b.co_nam... |
[
{
"msg_contents": "Hi,\n\n \n\nWe are using postgresql-8.4.0 on 64-bit Linux machine (open-SUSE 11.x).\nIt's a master/slave deployment & slony-2.0.4.rc2 is used for DB\nreplication on the slave box.\n\n \n\nAt times we have observed that postgres stops responding for several\nminutes, even couldn't fetch the nu... |
[
{
"msg_contents": "I've been reading this list for a couple of weeks, so I've got some\nsense of what you folks are likely to recommend, but I'm curious what\nis considered an ideal storage solution if building a database system\nfrom scratch. I just got an exploratory call from my boss, asking\nwhat my prefer... |
[
{
"msg_contents": "\nPlease tell me What is the best way to optimize this query\n\nselect\ns.*,a.actid,a.phone,d.domid,d.domname,d.domno,a.actno,a.actname,p.descr\nas svcdescr from vwsubsmin s inner join packages p on s.svcno=p.pkgno inner\njoin\naccount a on a.actno=s.actno inner join ssgdom d on a.domno=d.dom... |
[
{
"msg_contents": "Hi,\n\nthis is not really a performance question , sorry if its bit irrelevant\nto be posted here. We have a development environment and we want\nto optimize the non-database parts of the application. The problem is\nthat subsequent run of queries are execute very fast and makes the\nperform... |
[
{
"msg_contents": "Greetings,\n\nwe are running a few databases of currently 200GB (growing) in total for \ndata warehousing:\n- new data via INSERTs for (up to) millions of rows per day; sometimes \nwith UPDATEs\n- most data in a single table (=> 10 to 100s of millions of rows)\n- queries SELECT subsets of thi... |
[
{
"msg_contents": "Hi,\n\nI have quite a simple query but a lot of data and the SELECT query is\ntoo slow. I will be really grateful for any advice on this.\n\n--------------------------------------------------\nThe background info:\n\nI work on a speech search engine which differs from text search in\nhaving m... |
[
{
"msg_contents": "I have a long stored procedure (over 3,000 lines). Originally, it would take\nabout 44ms to run the whole query. After lots and lots of tweaking, Postgres\nnow runs the entire thing and gathers my results in just 15.2ms, which is\nvery impressive given the hardware this is running on. Now, I ... |
[
{
"msg_contents": "Hi,\n\n \n\nWe are using postgresql-8.4.0 on 64-bit Linux machine (open-SUSE 11.x).\nIt's a master/slave deployment & slony-2.0.4.rc2 is used for DB\nreplication (from master to slave). \n\n \n\nAt times we have observed that postgres stops responding for several\nminutes, even couldn't fetch... |
[
{
"msg_contents": "Hello,\n\nI try to make a query run quicker but I don't really know how to give \nhints to the planner.\n\nWe are using postgresql 8.4.3 64bit on ubuntu 9.10 server. The hardware \nis a 10 SAS drive (15k) on a single RAID 10 array with 8Go RAM.\nQueries come from J2EE application (OLAP cube),... |
[
{
"msg_contents": "Hi,\n\nWe are using dbt2 to check performance of postgresql 8.4 on Linux64 machine. When we increase \"TERMINALS PER WAREHOUSE\" TPM value increase rapidly but rampup time increase too , dbt2 estimated rampup time calculation do not work properly that’s why it run the test for wrong duration ... |
[
{
"msg_contents": "Hi,\n\nMy question is regarding ORDER BY / LIMIT query behavior when using partitioning.\n\nI have a large table (about 100 columns, several million rows) partitioned by a column called day (which is the date stored as yyyymmdd - say 20100502 for May 2nd 2010 etc.). Say the main table is cal... |
[
{
"msg_contents": "Hello.\n\nI have a tree-like table with a three-field PK (name, date, id) and one \nparent field.\nIt has 5k to 6k records as of now, but it will hold about 1 million \nrecords.\n\nI am trying the following WITH RECURSIVE query:\n\nWITH RECURSIVE t AS (\n SELECT par.id AS t... |
[
{
"msg_contents": "Hello everyone,\n\nWe've recently finished developing a bigger webapplication, and we are\nabout to put it online.\n\nI ran some load tests yesterday, and configured 'slow query' logging\nbeforehand, so I could see if there might be a performance bottleneck\nin the PG. While I discovered no r... |
[
{
"msg_contents": "Hi,\n\nIt seems that this is an issue faced by others as well - Please see this link: http://stackoverflow.com/questions/2236776/efficient-querying-of-multi-partition-postgres-table\n\nIs this a known bug? Is this something that someone is working on or is there a known work around?\n\nThanks... |
[
{
"msg_contents": "Hi everyone,\n\nI'm running 8.4.2 on a CentOS machine, and postgres recently died with signal 6 because the pg_xlog partition filled up (33GB) on 7/4/10 10:34:23 (perfect timing, as I was hiking in the mountains in the remotest parts of our country). I did some digging and found the followin... |
[
{
"msg_contents": "LinkedIn\n------------Gourish Singbal requested to add you as a connection on LinkedIn:\n------------------------------------------\n\nDimi,\n\nI'd like to add you to my professional network on LinkedIn.\n\n- Gourish\n\nAccept invitation from Gourish Singbal\nhttp://www.linkedin.com/e/-w2td3k... |
[
{
"msg_contents": "\n\n\n\nHi,\n\nI've trouble with some SQL request which have different execution plans\nwhen ran on two different servers. One server is the development\nenvironment, the othe rone is th pre-production env.\nBoth servers run postgreSQL 8.3.0 on Linux and :\n - both databases contains the same... |
[
{
"msg_contents": "Richard Yen wrote:\n \n> the pg_xlog partition filled up (33GB)\n \n> checkpoint_segments=16\n \n> a sudden flurry of write activity\n \nWas this database bulk-loaded in some way (like by restoring the\noutput of pg_dump, for example)? If so, all rows inserted into all\ntables would have the... |
[
{
"msg_contents": "On 8.1, I have a very interesting database where the distributions of \nsome values in a multi-million rows table is logarithmic (i.e. the most \nfrequent value is an order of magnitude more frequent than the next \nones). If I analyze the table, the statistics become extremely skewed \ntowar... |
[
{
"msg_contents": "Postgresql was previously running on a single cpu linux machine with 2 gigs\nof memory and a single sata drive (v8.3). Basically a desktop with linux on\nit. I experienced slow performance.\n\nSo, I finally moved it to a real server. A dually zeon centos machine with\n6 gigs of memory and ... |
[
{
"msg_contents": "Hi,\n\n\nI want to fine tune my postgresql to increase number of connects it\ncan handle in a minutes time.\nDecrease the response time per request etc.\nThe exact case will be to handle around 100 concurrent requests.\n\nCan any one please help me in this.\nAny hardware suggestions are also ... |
[
{
"msg_contents": "Harpreet singh Wadhwa <harpreetsingh.wadhwa@gmail.com> wrote:\n \n> I want to fine tune my postgresql to increase number of connects\n> it can handle in a minutes time.\n> Decrease the response time per request etc.\n> The exact case will be to handle around 100 concurrent requests.\n \nI hav... |
[
{
"msg_contents": "Hello all,\n\nI am learning PostgreSQL PITR. I have PostgreSQL running with the \nfollowing parameters \nset up for archiving/log switching:\n\narchive_mode = on \narchive_command = 'cp -i %p /home/postgres/archive/%f </dev/null' \narchive_timeout = 300\n\nI checked the archival process. It w... |
[
{
"msg_contents": "I'm having trouble getting the query planner to use indexes. The situation occurs when writing a query that uses functions for defining the parameters for the conditions on the indexed columns. The system I'm running is Windows Server 2003, using version 8.4.2 of PostgreSQL.\n\nThis is the fo... |
[
{
"msg_contents": "-- \nHOSTIN Damien - Equipe R&D\nTel:+33(0)4 63 05 95 40\nSoci�t� Ax�ge\n23 rue Saint Simon\n63000 Clermont Ferrand\nwww.axege.com\n\n\nRobert Haas a �crit :\n> On Wed, Jul 7, 2010 at 10:39 AM, damien hostin <damien.hostin@axege.com> wrote:\n> \n>> Hello again,\n>>\n>> At last, I ch... |
[
{
"msg_contents": "Hi,\n\nI need to log the start and end time of the procedures in a table. But the start and end time are same. This is how I recreated the issue.\n\ncreate table test_time (time timestamp);\ndelete from test_time;\ninsert into test_time select now();\nSELECT pg_sleep(10);\ninsert into test_t... |
[
{
"msg_contents": "Hello.\n\nToday I've found out strange results for query below.\nselect version();\n version\n\n----------------------------------------------------------------------------------------------------------\n PostgreSQL 8.4.2 on amd64-portbld-freebs... |
[
{
"msg_contents": "\n\n\nGreen Peace - Climate\n\n\n\n\n\n\n\n\n\nDear Eco-warrior,\n\nYour friend Angayarkanni requests your support for a few environmental causes. \n\nThanks to the use and throw culture, the Earth is reeling from the effect of mounting waste. The need of the hour is to reduce, reuse and recy... |
[
{
"msg_contents": "Hi,\nI have table \"ARTICLE\" containing a String a field \"STATUS\" that \nrepresents a number in binary format (for ex: 10011101).\nMy application issues queries with where conditions that uses BITAND \noperator on this field (for ex: select * from article where status & 4 = 4).\nThus i'm f... |
[
{
"msg_contents": "Here's a query and its EXPLAIN ANALYZE output:\n\ncms=> select count(*) from forum;\n count\n-------\n 90675\n(1 row)\n\ncms=> explain analyze select id,title from forum where _fts_ @@\n'fer'::tsquery;\n QUERY PLAN\n\n----------------------... |
[
{
"msg_contents": "Ivan Voras < ivoras@freebsd.org > wrote:\n> On 07/14/10 15:49, Stephen Frost wrote:\n \n>> Regarding the statistics, it's entirely possible that the index\n>> is *not* the fastest way to pull this data (it's nearly 10% of\n>> the table..)\n> \n> I think that what I'm asking here is: is it r... |
[
{
"msg_contents": "I have a query:\n\n SELECT d1.ID, d2.ID\n FROM DocPrimary d1\n JOIN DocPrimary d2 ON d2.BasedOn=d1.ID\n WHERE (d1.ID=234409763) or (d2.ID=234409763)\n\ni think what QO(Query Optimizer) can make it faster (now it seq scan and on\nmillion records works 7 sec)\n\n SELECT d1.ID, d2.ID\n F... |
[
{
"msg_contents": "I have two servers with equal specs, one of them running 8.3.7 and the new server running 8.4.4. The only tweak I have made from the default install (from Ubuntu repositories) is increasing shared_buffers to 768MB. Both servers are running 64-bit, but are different releases of Ubuntu. \n\nThi... |
[
{
"msg_contents": "First of all, a little background.\n\nWe have a table which is used as a trigger table for entering and\nprocessing data for a network monitoring system.\n\nEssentially, we insert a set of columns into a table, and each row fires\na trigger function which calls a very large stored procedure w... |
[
{
"msg_contents": "I am sending u the query along with execution plan. Please help\n\nexplain analyze select \ns.*,a.actid,a.phone,d.domid,d.domname,d.domno,a.actno,a.actname,p.descr \nas svcdescr\nfrom vwsubsmin s\ninner join packages p on s.svcno=p.pkgno\ninner join account a on a.actno=s.actno\ninner join ss... |
[
{
"msg_contents": "Hi,\n\nI have a situation to handle a log table which would accumulate a\nlarge amount of logs. This table only involves insert and query\noperations. To limit the table size, I tried to split this table by\ndate. However, the number of the logs is still large (46 million\nrecords per day). T... |
[
{
"msg_contents": "Hi people,\n\nI have a particular performance problem under a system installed.\n\nIn the lab I have an old Microside + Dual Core machine 1GB RAM with 40gb HD\nIDE and\na newer machine HP DL 380 G5 4GB RAM and 500GB SAS under RAID 0 (4 disks)\nP400i Smart Array Controller.\n\n**Both with Linu... |
[
{
"msg_contents": "Hello,\n\nI don't think this is generally solvable but maybe it is so here goes.\nThe original situation was this:\n\nSELECT something, big_field, complex_function(big_field), rank FROM t1\nUNION ALL SELECT something, big_field, complex_function(big_field), rank\nfrom t2 ORDER BY rank LIMIT s... |
[
{
"msg_contents": "Hi All;\n\nwe have a table partitioned by day, the check constraint on the child tables \nlooks like this (this is the may 31st partition):\n\nCHECK \n(stime >= '2010-05-30 00:00:00+00'::timestamp with time zone \n AND stime <= '2010-05-30 23:59:59+00'::timestamp with time zone)\n\n\nWe have... |
[
{
"msg_contents": "Hi there.\n\nI think I found a potential performance gain if the query planner would be optimized. All Tests has been performed with 8.4.1 (and earlier versions) on CentOS 5.3 (x64)\n\nThe following query will run on my database (~250 GB) for ca. 1600 seconds and the sort will result in a dis... |
[
{
"msg_contents": "Hi,\nI have a question concerning the uses of indexes in Postgresql.\nI red that in PG a query can not use more than one index per table: \"a \nquery or data manipulation command can use at most one index per table\".\nActually I found this a little weird and unfortunately I could not find \n... |
[
{
"msg_contents": "Hi\nI need to configure for high performance and memory usage my postgres 8.4 clusters.\n\nDescription:\nThe database is partitioned in regions. Every region has master and slave db. The application write:read=1:50.\nAt the moment i had delpoyed the app on 3 servers as follows:\nNode1: db mas... |
[
{
"msg_contents": "\nHi all,\n\nI'm using Postgresql 8.4.4 on Debian.\nIn postgresql.conf, constraint_exclusion is set to \"on\"\n\nI have partitioned tables with check constraints.\nMy primary table :\n CREATE TABLE documents\n (\n id serial NOT NULL,\n id_source smallint,\n nod... |
[
{
"msg_contents": "I have a table.\n\n\\d email_track\nTable \"public.email_track\"\n Column | Type | Modifiers\n--------+---------+--------------------\n crmid | integer | not null default 0\n mailid | integer | not null default 0\n count | integer |\nIndexes:\n \"email_track_pkey\" PRIMARY KEY, bt... |
[
{
"msg_contents": "Hi all..\nCan any one help me?\nI'd like to know how can we get the following information in\nPostgreSQL:\nExecution plan\nThe I/O physical reads and logical reads, CPU consumption, number of\nDB block used, and any other information relevant to performance.\nTaking into consideration that th... |
[
{
"msg_contents": "Hello list,\n\nProbably like many other's I've wondered why no SSD manufacturer puts a \nsmall BBU on a SSD drive. Triggered by Greg Smith's mail \nhttp://archives.postgresql.org/pgsql-performance/2010-02/msg00291.php \nhere, and also anandtech's review at \nhttp://www.anandtech.com/show/2899... |
[
{
"msg_contents": " Hello,\n\nI have a simple table which has a cube column and a cube GiST index. The \ncolumn contains 3-dimensional points (not cubes or intervals). The \nproblem is that I'm getting very slow queries when I'm using the index. \nThe table has about 130,000 rows and is full-vacuumed after any... |
[
{
"msg_contents": "Hello,\n\nI've found strange problem in my database (8.4.4, but also 9.0beta3,\ndefault postgresql.conf, shared_buffers raised to 256MB).\n\nEXPLAIN ANALYZE SELECT ...\nTotal runtime: 4.782 ms\nTime: 25,970 ms\n\nSELECT ...\n...\n(21 rows)\n\nTime: 23,042 ms\n\nTest done in psql connected by ... |
[
{
"msg_contents": "There is a partitioned table with 2 partitions:\n\ndrop table if exists p cascade;\n\ncreate table p (\n id bigint not null primary key,\n ts timestamp);\n\ncreate table p_actual ( check (ts is null) ) inherits (p);\ncreate table p_historical ( check (ts is not null) ) inherits (p);\n\n--... |
[
{
"msg_contents": "I'm involved with the setup of replacement hardware for one of our \nsystems. It is going to be using Ubuntu Lucid Server (kernel 2.6.32 I \nbelieve). The issue of filesystems has raised its head again.\n\nI note that ext4 is now the default for Lucid, what do folks think about \nusing it: st... |
[
{
"msg_contents": "I have spent the last couple of weeks digging into a Postgres performance\nproblem that ultimately boiled down to this: the planner was choosing to\nuse hash joins on a set of join keys that were much larger than the\nconfigured work_mem. We found we could make the performance much better ... |
[
{
"msg_contents": "Hi,\n\nOn a hunch I removed two (legacy) WHERE conditions from the following\nquery I obtained a 158x speed improvement. Yet these condiditions do not\nfilter anything. Does that make any sense?\n\nThe EXPLAIN ANALYSE output is attached with, first the fast version and\nthen the slow one.\n\n... |
[
{
"msg_contents": "Hi there,\n\nI have a simple query where I don't understand the planner's choice to \nuse a particular index.\n\nThe main table looks like this:\n\n# \\d sq_ast_attr_val\n Table \"public.sq_ast_attr_val\"\n Column | Type | Modifiers\n--------... |
[
{
"msg_contents": "Hi all.\nI'm wondering about PGSQL scalability.\nIn particular I have two main topics in my mind:\n\n1. What'd be the behavior of the query planner in the case I have\na single huge table with hundreds or thousands of partial indexes\n(just differing by the WHERE clause).\nThis is an idea of ... |
[
{
"msg_contents": "Dear postgresql list,\n\n\n\nI have some troubles generating data\nfor a analysis task at hand.\n\n\n\nI have a table (table A) containing 5\nmillion records and 28 number of attributes. This table is 461MB big\nif I copy it to a csv file.\n\n\n\nI want to create another table (table\nB) base... |
[
{
"msg_contents": "I'm wondering whether columns, in the select list of a view that is used \nin a join, which are not used either as join criteria or in the select \nlist of the overall query, effect the performance of the query.\n\nIn other words supposed I define a view something like\n\nCREATE view MyView A... |
[
{
"msg_contents": "We are running 8.3.10 64bit.\n\nCompare the plans below.\n\nThey all do the same thing and delete from a table named work_active (about 500rows), which is a subset of work_unit (about 50m rows).\n\nI want to introduce range-partitions on work_unit.id column (serial pk), and I want constraint... |
[
{
"msg_contents": "We are running 8.3.10 64bit.\n\nThis message is a request for information about the \"initplan\" operation in explain plan.\nI want to know if I can take advantage of it, and use it to initialize query-bounds for the purpose of enforcing constraint exclusion on a table which has been range-pa... |
[
{
"msg_contents": "Hi,\n\nI'm running PostgreSQL 8.3 and I have a query with a couple of NOT IN\nsubqueries:\n\nDELETE FROM foo WHERE type = 'o' AND b NOT IN (SELECT cqc.b FROM bar\ncqc) AND b NOT IN (SELECT car.b FROM foo car WHERE car.type != 'o');\n\nThe plan produced for this is:\n\n ... |
[
{
"msg_contents": "Hallo,\n\nIm running pg-8,pgpoolII on sol10-zone.\n\n\nAfter update sol10u7, queries on coltype timestamp are very slow.\nSystem: sparc, 2GB RAM\n\nThis DB is a greylist-DB to fight spam.\n500 connections should be easy.\nBut 16 connection consum 10sec/query.\nOn another system (sparc) only ... |
[
{
"msg_contents": "We have been using the C locale for everything at our site, but\nthere is occasionally talk of supporting characters outside the\nASCII7 set. In playing around with indexing, to see what the impact\nof that would be, I stumbled across something which was mildly\nsurprising.\n\nIn the C locale... |
[
{
"msg_contents": "Hi, I'm curious -- does \"vacuum analyze e.g. table1\" improve\nperformance on \"insert into table1 ...\". I understand the vacuum\nanalyze helps out the query -- select, etc., but just not quite sure\non insert.\n\nSpecifically, I'm doing the following.\n\n1, delete records ...\n2, insert re... |
[
{
"msg_contents": "I am using PostgreSQL 8.3.7 on a dedicated IBM 3660 with 24GB RAM running \nCentOS 5.4 x86_64. I have a ServeRAID 8k controller with 6 SATA 7500RPM \ndisks in RAID 6, and for the OLAP workload it feels* slow. I have 6 more \ndisks to add, and the RAID has to be rebuilt in any case, but f... |
[
{
"msg_contents": "If anyone is interested I just completed a series of benchmarks of stock\nPostgresql running on a normal HDD vs a SSD.\n\nIf you don't want to read the post, the summary is that SSDs are 5 to 7\ntimes faster than a 7200RPM HDD drive under a pgbench load.\n\nhttp://it-blog.5amsolutions.com/201... |
[
{
"msg_contents": "\nI'm trying to eke a little bit more performance out of an application, and \nI was wondering if there was a better way to do the following:\n\nI am trying to retrieve, for many sets of rows grouped on a couple of \nfields, the value of an ungrouped field where the row has the highest \nvalu... |
[
{
"msg_contents": "With a 16 CPU, 32 GB Solaris Sparc server, is there any conceivable\nreason to use a 32 bit build rather than a 64 bit build? Apparently the\nSun PostgreSQL package includes a README that indicates you might want\nto think twice about using 64 bit because it is slower -- this seems\nlike outd... |
[
{
"msg_contents": "A number of amusing aspects to this discussion.\n\n- I've carried out similar tests using the Intel X-25M with both PG and DB2 (both on linux). While it is a simple matter to build parallel databases on DB2, on HDD and SSD, with buffers and tablespaces and logging and on and on set to recrea... |
[
{
"msg_contents": "Ref these two queries against a view:\n\n-- QUERY 1, executes < 0.5 secs\nSELECT *\nFROM mdx_core.vw_provider AS p\nWHERE provider_id IN (13083101)\n\n-- QUERY 2, executes > 13.5 secs\nSELECT *\nFROM mdx_core.vw_provider AS p\nWHERE provider_id IN (SELECT 13083101)\n\nI am using the simple IN... |
[
{
"msg_contents": "List,\n\nI see benefits to using the 8.4 WINDOW clause in some cases but I'm having\ntrouble seeing if I could morph the following query using it.\n\nwxd0812=# EXPLAIN ANALYZE\nwxd0812-# SELECT * FROM\nwxd0812-# (SELECT DISTINCT ON (key1_id,key2_id) * FROM sid120.data ORDER BY\nkey1_id,key2_... |
[
{
"msg_contents": "Hi,\n\nI'm hoping someone can offer some help here. The query and explain analyze and table layout are below and attached in a text file if the formatting is bad. \n\nThe query is part of a bigger query that our front end runs. This is the part that takes forever (84 minutes in this case) to ... |
[
{
"msg_contents": "A little background - I have various multi-column indexes whenever I\nhave queries which restrict the output based on the values of the 2\nfields (for example, a client code and the date of a transaction).\n\nIs there a performance gain using this approach as opposed to using 2\nseparate inde... |
[
{
"msg_contents": "\nHi,\n\nI've database of lyrics and I'm using this query for suggest box.\nSELECT views, title, id FROM songs WHERE title ILIKE 'bey%' ORDER BY views DESC LIMIT 15;\nIn query plan is this line: -> Seq Scan on songs (cost=0.00..11473.56 rows=5055 width=23) (actual time=1.088..89.863 rows=... |
[
{
"msg_contents": "Hi,\n\nPG 8.4.4\n\nI have an strange problem:\n\ncarmen=# VACUUM FULL verbose tp93t;\nINFO: vacuuming \"public.tp93t\"\nINFO: \"tp93t\": found 0 removable, 71984 nonremovable row versions in 17996\npages\nDETAIL: 70632 dead row versions cannot be removed yet.\nNonremovable row versions ran... |
[
{
"msg_contents": "Mark Kirkwood wrote:\n \n> I'm guessing you meant to suggest setting effective_cache_size \n> to 15GB (not 15MB)....\n \nYes. Sorry about that.\n \n-Kevin\n\n",
"msg_date": "Tue, 17 Aug 2010 22:08:25 -0500",
"msg_from": "\"Kevin Grittner\" <Kevin.Grittner@wicourts.gov>",
"msg_fr... |
[
{
"msg_contents": "Hi,\n\nAre indices for columns marked with \"PRIMARY KEY\" automatically generated by\npostgresql, or do I have to do it manually?\nThe question might seem dumb, I ask because I remember from working with\nMySQL it generates indices automatically in this case.\n\nThank you in advance, Clemens... |
[
{
"msg_contents": "I am having severe COPY performance issues after adding indices. What used\nto take a few minutes (without indices) now takes several hours (with\nindices). I've tried to tweak the database configuration (based on Postgres\ndocumentation and forums), but it hasn't helped as yet. Perhaps, I ha... |
[
{
"msg_contents": "I'm just starting the process of trying to tune new hardware, which is\n2x quad core xeon, 48GB RAM, 8x300GB SAS 15K drives in RAID 1+0,\n2x72GB 15K SAS drives in RAID 1 for WAL and system. It is a PERC 6/i\ncard with BBU. Write-back cache is enabled. The system volume is\next3. The large d... |
[
{
"msg_contents": "I've got this explain: http://explain.depesz.com/s/Xh9\n\nAnd these settings:\ndefault_statistics_target = 50 # pgtune wizard 2010-08-17\nmaintenance_work_mem = 1GB # pgtune wizard 2010-08-17\nconstraint_exclusion = on # pgtune wizard 2010-08-17\ncheckpoint_completion_target = 0.9 # pgtune wi... |
[
{
"msg_contents": "Please forgive the barrage of questions. I'm just learning how to tune\nthings in postgres and I've still got a bit of learning curve to get over,\napparently. I have done a lot of reading, though, I swear.\n\nI've got two identical queries except for a change of one condition which\ncuts t... |
[
{
"msg_contents": "Hi,\n\nI'm having a strange performance result on a new database server \ncompared to my simple desktop.\n\nThe configuration of the new server :\n - OS : GNU/Linux Debian Etch x86_64\n - kernel : Linux 2.6.26-2-vserver-amd64 #1 SMP Sun Jun 20 20:40:33 \nUTC 2010 x86_64 GNU/Linux\n ... |
[
{
"msg_contents": "I have two tables:\nA: ItemID (PK), IsssueID (Indexed)\nB: ItemID (FK), IndexNumber : PK(ItemID, IndexNumber)\n\nBoth tables have several million columns, but B has much more than A.\n\nNow if I run\n\nSELECT A.ItemID FROM A, B WHERE A.ItemID = B.itemID AND A.issueID =\n<some id>\n\nThe query... |
[
{
"msg_contents": "Jann Röder wrote:\nAm 23.08.10 12:18, schrieb Scott Marlowe:\n \n>> What happens if you try\n>>\n>> set enable_seqscan=off;\n>> (your query here)\n>>\n> Tried that already. The query plan is exactly the same.\n \nExactly? Not even the cost shown for the seq scan changed?\n \nYou are almost c... |
[
{
"msg_contents": "I forgot to paste link:\n \nhttp://wiki.postgresql.org/wiki/SlowQueryQuestions\n \n-Kevin\n\n",
"msg_date": "Mon, 23 Aug 2010 07:10:30 -0500",
"msg_from": "\"Kevin Grittner\" <Kevin.Grittner@wicourts.gov>",
"msg_from_op": true,
"msg_subject": "Re: Inefficient query plan"
}
] |
[
{
"msg_contents": ">I may be a little bit over-sensitive on the topic, because I've seen\n>so many people who consider it \"wrong\" to use natural keys on any\n>table *ever*. About one out of every four or five programmers who\n>gets hired here feels compelled to argue that we should add\n>surrogate keys to al... |
[
{
"msg_contents": "Hello There,\n\nI have a table x and a history table x_hist, whats the best way to update\nthe history table.\n\nshould i need to use triggers or embed a code in my script to update the\nhistory table?\n\nwhat is the performance impact of a trigger versus embedding the code in the\nscript?\n\... |
[
{
"msg_contents": "Howdy all,\n\nWe're doing some performance testing, and when we scaled it our app up to about 250 concurrent users\nwe started seeing a bunch of processes sititng in \"PARSE WAITING\" state.\n\nCan anyone give me insite on what this means? what's the parse waiting for?\n\nThanks\n\nDave\n",
... |
[
{
"msg_contents": "Hello!\n\nWe've just installed a couple new servers that will be our new database \nservers. The basic hardware stats of each are:\n\n2 x Xeon E5620 (2.4GHz quad-core)\n32GB DDR3 1333 RAM\n6 x 600GB 15krpm SAS drives - RAID 10\nPerc 6/i RAID controller with battery backup\n\nI've lurked on t... |
[
{
"msg_contents": "Hi All,\n\nI have a poor performance SQL as following. The table has about 200M\nrecords, each employee have average 100 records. The query lasts about\n3 hours. All I want is to update the flag for highest version of each\nclient's record. Any suggestion is welcome!\n\nThanks,\n\nMike\n\n\n=... |
[
{
"msg_contents": "Hi,\n\nI have a colleague that is convinced that the website is faster if\nenable_seqscan is turned OFF.\nI'm convinced of the opposite (better to leave it ON), but i would like to\nshow it, prove it to him.\nNow the first query we tried, would do a bitmap heap scan instead of a\nseqscan when... |
[
{
"msg_contents": "-------- Original Message --------\nSubject: \tpostgres 8.4.1 number of connections\nDate: \tThu, 26 Aug 2010 14:25:47 -0500\nFrom: \tMaria L. Wilson <Maria.L.Wilson-1@nasa.gov>\nReply-To: \tWilson, Maria Louise (LARC-E301)[SCIENCE SYSTEMS \nAPPLICATIONS] <m.l.wilson@nasa.gov>\nTo: \tpgsql-pe... |
[
{
"msg_contents": "I am new to Postgres and I am trying to understand the Explain Analyze\nso I can tune the following query. I run the same query using mysql and\nit takes less than 50ms. I run it on postgres and it takes 10 seconds.\nI feel like I am missing something very obvious. (VehicleUsed is a big\nta... |
[
{
"msg_contents": "I have a query that\n\n \n\nSelect Distinct VehicleId\n\n>From Vehicle\n\nWhere VehicleMileage between 0 and 15000.\n\n \n\nI have an index on VehicleMileage. Is there another way to put an index\non a between? The index is not being picked up. It does get picked up\nwhen I run \n\n \n\nS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.