threads listlengths 1 275 |
|---|
[
{
"msg_contents": "Hi,\n\nBelow are two query plan for same SQL with and without an index. I noticed the Hash join order has changed since index has been created and this is not what I want. As it's hashing the big table and to provoke records in a small table. in Oracle, it's simple to add hint to point the t... |
[
{
"msg_contents": "Hi,\n\nCan someone figure out why the first query runs so slow comparing to the second one? They generate the same result...\n\ndev=# explain analyze select count(distinct wid) from terms_weekly_20140503 a join port_terms b on a.term=b.terms;\n ... |
[
{
"msg_contents": "Hi All,\n\nPlease see the output from the following query analysis :\n=# explain analyze select count(1) from jbpmprocess.jbpm_taskinstance ti \njoin jbpmprocess.jbpm_task task on (ti.task_ = task.id_ ) join \njbpmprocess.jbpm_processinstance pi on ti.procinst_ = pi.id_ where \nti.isopen_ = t... |
[
{
"msg_contents": "Hi,\n\nSorry for send this email twice but it seems it fits the performance group than admin group...\n\nI was reading an article of Gregory Smith http://www.westnet.com/~gsmith/content/postgresql/chkp-bgw-83.htm and tried to do some analysis on our database.\n\npostgres=# select * from pg_s... |
[
{
"msg_contents": "Hello,\n\nI have a table of tree nodes with a tsquery column. To get a subtree's\ntsquery, I need to OR all of its nodes' tsqueries together.\n\nI defined a custom aggregate using tsquery_or:\n\n CREATE AGGREGATE tsquery_or_agg (tsquery)\n (\n sfunc = tsquery_or,\n stype =... |
[
{
"msg_contents": "Folks,\n\nJust encountered another case of critical fail for abort-early query\nplans. In this case, it will completely prevent a user from upgrading\nto 9.3; this is their most common query, and on 9.3 it takes 1000X longer.\n\nMaybe we should think about removing abort-early plans from 9.5... |
[
{
"msg_contents": "\n\nHi Folk, \n\nI am trying to investigate some performance issues which we have with postgres\n(a different topic by itself) and tried postgres.9.4beta2, with a hope that it\nperform better.\n\nTurned out that 9.4 is 2x slower than 9.3.5 on the same hardware.\n\nSome technical details:\n\n ... |
[
{
"msg_contents": "\nOn Sep 18, 2014 9:32 PM, Andrew Dunstan <andrew@dunslane.net> wrote:\n>\n>\n> On 09/18/2014 03:09 PM, Mkrtchyan, Tigran wrote: \n> > \n> > ----- Original Message ----- \n> >> From: \"Josh Berkus\" <josh@agliodbs.com> \n> >> To: pgsql-performance@postgresql.org \n> >> Sent: Thursday, Septemb... |
[
{
"msg_contents": "Hi mailing list,\n\nI am relatively new to postgres. I have a table with 500 coulmns and \nabout 40 mio rows. I call this cache table where one column is a unique \nkey (indexed) and the 499 columns (type integer) are some values \nbelonging to this key.\n\nNow I have a second (temporary) tab... |
[
{
"msg_contents": "Maybe someone can explain this. The following SQL will reproduce our issue:\nDROP TABLE IF EXISTS t1 CASCADE;\nCREATE TABLE t1 (name text,\n state text);\nCREATE INDEX t1_name ON t1(name);\nCREATE INDEX t1_state ON t1(state);\nCREATE INDEX t1_name_state ON t1(name,state);\n\n-... |
[
{
"msg_contents": "\n\n\n\n\nHello list,\n \n\n For a big table with more than 1,000,000 records, may I know\n which update is quicker please?\n \n\n (1) update t1\n \n set c1 = a.c1\n \n from a\n \n where pk and\n ... |
[
{
"msg_contents": "Help, please can anyone offer suggestions on how to speed this query up.\n\nthanks\n\n\n-- \nSent via pgsql-performance mailing list (pgsql-performance@postgresql.org)\nTo make changes to your subscription:\nhttp://www.postgresql.org/mailpref/pgsql-performance",
"msg_date": "Fri, 26 Sep 2... |
[
{
"msg_contents": "Hello,\nI am having a performance issue after upgrade from 8.4.20-1 -> 9.3.5. I am running on CentOS 2.6.32-431.29.2.el6.x86_64 #1 SMP Tue Sep 9 21:36:05 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux.\nUpgrade was without any issues, I used pg_upgrade.\n\nOne of my queries now takes cca 100x more t... |
[
{
"msg_contents": "Hello,\nat the moment, I am not able to replicate the results posted. Explain analyze results are very similar at the moment on both databases, query runtime is also almost same.\nThis has happened after re-running VACUUM ANALYZE VERBOSE. However, right after the migration, I did run the scri... |
[
{
"msg_contents": "Hello, I have a table that receives lots of updates and inserts.\nAuto vaccum is always being cancelled on that table.\nOne day the database went on standby and I had to act manually to recover.\n\nWhat should I do to avoid auto vaccum cancel?\n\nHello, I have a table that receives lots of up... |
[
{
"msg_contents": "Hi,\n\nI am using Postgresql 9.3.5 on Ubuntu and I have a sudden, unexplained \nfailure in a function that has been working for a long time.\n\n--------------- code ----------------\nCREATE OR REPLACE FUNCTION gen_random()\n RETURNS double precision AS\n$BODY$\nDECLARE\n num float8 := ... |
[
{
"msg_contents": "I ran into this oddity lately that goes against everything I thought I\nunderstood and was wondering if anyone had any insight. Version/env\ndetails at the end.\n\nThe root of it is these query times:\n\nmarcs=# select * from ccrimes offset 5140000 limit 1;\n[...data omitted...]\n(1 row)\nTi... |
[
{
"msg_contents": "Dear Pg people,\n\nI would ask for your help considering this scaling issue. We are planning to move from 3Millions of events/day instance of postgres (8 CPU, 65 gb ram) to 5 millions of items/day.\nWhat do you suggest in order to plan this switch? Add separate server? Increase RAM? Use SSD?\... |
[
{
"msg_contents": "Hi,\nI have similar problem as in\nhttp://www.postgresql.org/message-id/flat/52B311C4.1070108@gmail.com#52B311C4.1070108@gmail.com\n\nserver version is 9.3.4\n\nHere is only two quite simple tables:\n\ndb_new=# \\d activities_example\n Table \"public.activities_example\"\n Column | ... |
[
{
"msg_contents": "Hi,\nI have similar problem as in\nhttp://www.postgresql.org/message-id/flat/52B311C4.1070108@gmail.com#52B311C4.1070108@gmail.com\n\nserver version is 9.3.4\n\nHere is only two quite simple tables:\n\ndb_new=# \\d activities_example\n Table \"public.activities_example\"\n Column | ... |
[
{
"msg_contents": "\n\n\n\n\nHello List, \n\n May I know will <idle> cause any potential performance\n issues for psql8.3 please?\n version (PostgreSQL 8.3.18 on x86_64-unknown-linux-gnu, compiled\n by GCC 4.1.2)\n\n E.g., got 10 idle connections for 10 days. \n select current_que... |
[
{
"msg_contents": "I'm seeing some strange behavior running pg_basebackup on 9.3.5. It\nappears that there are long pauses - up to a couple of minutes - between\nrelatively short bursts of disk activity.\n\nI'm not noticing any lock requests outstanding. What might I be missing?\n\n___________________________... |
[
{
"msg_contents": "After upgrade from 9.3.1 to 9.3.5 we expirienced a slight performance degradation of all queries. Query time increased to some amount of ms, mostly in range of 100ms. Some actions in our application results in a lot of small queries and in such cases performance degradation is very significan... |
[
{
"msg_contents": "see\nhttp://stackoverflow.com/questions/26237463/bad-optimization-planning-on-postgres-window-based-queries-partition-by-group\nfor details\n\n\n\n--\nView this message in context: http://postgresql.1045698.n5.nabble.com/Bad-optimization-planning-on-Postgres-window-based-queries-partition-by-... |
[
{
"msg_contents": "\n\n\n\n\nGood morning, \n\n For performance point of view, are there big differences between:\n char(N), varchar(N), varchar, text? \n\nSome comments from google shows: \n No difference, under the hood it's all varlena. Check this\n article from Depesz: http://www.dep... |
[
{
"msg_contents": "I'm running Postgres 8.4 on RHEL 6 64-bit and I had a question about how\nwork_mem and partitions interact.\n\nhttps://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server#work_mem\nThe above wiki states that \"if a query involves doing merge sorts of 8\ntables, that requires 8 times work_m... |
[
{
"msg_contents": "Hi,\n\nlets imagine that we have some table, partitioned by timestamp field, and\nwe query it with SELECT with ordering by that field (DESC for example),\nwith some modest limit.\nLets further say that required amount of rows is found in the first table\nthat query encounters (say, latest one... |
[
{
"msg_contents": "Hello,\n\nTwo options for data (>1M), may I know which one better please?\n\n(1) copyOut (JDBC copyManager)\n t1 into a.csv\n delete t2 where pk.cols in t1\n copyIn t2 from a.csv\n\n(2) setautoCommit(false);\n delete t2 where pk.cols in t1;\n insert t2 select * from t... |
[
{
"msg_contents": "All,\n\nThought I'd share some pgbench runs I did on two servers, one running\n9.3 and one running 9.4.\n\nA small (512MB) pgbench test didn't show much difference between the two:\n\n9.3.5:\n\ntransaction type: TPC-B (sort of)\nscaling factor: 200\nquery mode: simple\nnumber of clients: 16\n... |
[
{
"msg_contents": "Hello there,\n\nI have a strange query plan involving an IS NOT NULL and a LEFT JOIN.\n\nI grant you that the query can be written without the JOIN on \nuser_user_info,\nbut it is generated like this by hibernate. Just changing the IS NOT \nNULL condition\nto the other side of useless JOIN ma... |
[
{
"msg_contents": "We are using Postgres for the first time after being SQLServer users for a long time so forgive for being noobs.\n\nWe are using a BI tool that generates a query with an unusually large number of joins. My understanding is that with this many joins Postgres query planner can't possibly use an... |
[
{
"msg_contents": "Hi all,I'm experimenting with table partitioning though inheritance. I'm testing a query as follows:explain (analyze, buffers)select response.idfrom claim.responsewhere response.account_id = 4766and response.expire_timestamp is nulland response.create_timestamp >= DATE '2014-08-01'order by cr... |
[
{
"msg_contents": "Hi newsgroup,\n\nI have a very huge table (70 mio rows ) with a key (text length about 30 \ncharacters each key). A select on this indexed column \"myprimkey\" (index \non column mycolumn) took more than 30 mins.\n\nHere is the explain (analyze,buffers) select mycolumn from myhugetable\n\n\"... |
[
{
"msg_contents": "I'm running postgres-9.3 on a 30GB ec2 xen instance w/ linux kernel 3.16.3.\nI receive numerous Error: out of memory messages in the log, which are\naborting client requests, even though there appears to be 23GB available in\nthe OS cache.\n\nThere is no swap on the box. Postgres is behind pg... |
[
{
"msg_contents": "I have saved data from pg_stat_bgwriter view following Greg Smith's advice\nfrom his book:\nselect now(),* from pg_stat_bgwriter; \n\nand then aggregated the data with query from his book as well.\n\ncheckpoint segments was first 30 and next day I have increased it to 200,\nand results has ch... |
[
{
"msg_contents": "Hi,\n\nThis is the Greenplum database 4.3.1.0.\n\nTables :\n\ndev=# \\d+ visits_weekly_new_3\nAppend-Only Columnar Table \"uk.visits_weekly_new_3\"\nColumn | Type | Modifiers | Storage | Compression Type | Compression Level | Block Size | Description\n------------------+----------------------... |
[
{
"msg_contents": "Hi, we have a nightly job that restores current production data to the\ndevelopment databases in a 'warm spare' database so that if the developers\nneed fresh data, it's ready during the day. When we moved from 9.0 to 9.2\nsuddenly the restores began to take from a few hours to more like 15 h... |
[
{
"msg_contents": "Hi friends!\n\nI'd love to get a sanity check on whether a fat select query I'm doing\nmakes sense given the infrastructure that we have.\n\nWe have 3 big tables that we typically join together for certain queries: a\n~40 million row photos table, a ~20 million row users table, and a ~50\nmil... |
[
{
"msg_contents": "Greetings all,\n\nI'm trying to wrap my head around updating my configuration files, which\nhave been probably fairly static since before 8.4.\n\nI've got some beefy hardware but have some tables that are over 57GB raw\nand end up at 140GB size after indexes are applied. One index creation to... |
[
{
"msg_contents": "I have two 9.3.4 PG instances that back a large internet website that has very seasonal traffic and can generate large query loads. My instances are in a master-slave streaming replication setup and are stable and in general perform very well. The only issues we have with the boxes is that... |
[
{
"msg_contents": "Hello,\n\nI am having some hard time understanding how postgresql handles null \nvalues. As much I understand null values are stored in b-tree as simple \nvalues (put as last or first depending on index). But it seems that \nthere is something really specific about them as postgresql delibera... |
[
{
"msg_contents": "\nI found out today that direct assignment to a composite type is (at \nleast in my test) about 70% faster than setting it via SELECT INTO. That \nseems like an enormous difference in speed, which I haven't really been \nable to account for.\n\nTest case:\n\n andrew=# \\d abc\n T... |
[
{
"msg_contents": "Not sure what is going on but other than upgrading to 9.3.4 from 9.2.4, i'm\nseeing major slowness in basic queries and seeing a ton of the bind and\nparse in my logs. These are standard lookups and should take micro seconds.\nI'm logging all queries that take over a second and this seems to ... |
[
{
"msg_contents": "I recently sourced a 300gb intel s3500 ssd to do some performance\ntesting. I didn't see a lot of results on the web so I thought I'd\npost some numbers. Testing machine is my workstation crapbox with 4\ncores and 8GB ram (of which about 4 is usable by the ~ 50gb database).\nThe drive cos... |
[
{
"msg_contents": "log_temp_files (integer)\nControls logging of temporary file names and sizes. Temporary files can be\ncreated for sorts, hashes, and temporary query results. A log entry is made\nfor each temporary file when it is deleted. A value of zero logs all\ntemporary file information\n\nso I've set th... |
[
{
"msg_contents": "Hello,\n\nI am having some hard time understanding how postgresql handles null \nvalues. As much I understand null values are stored in b-tree as simple \nvalues (put as last or first depending on index). But it seems that \nthere is something really specific about them as postgresql delibera... |
[
{
"msg_contents": "Hello,\n\nI have just came across interesting Postgres behaviour with \nOR-conditions. Are there any chances that the optimizer will handle this \nsituation in the future?\n\nselect *\nfrom commons.financial_documents fd\nwhere fd.creation_time <= '2011-11-07 10:39:07.285022+08'\norder by fd.... |
[
{
"msg_contents": "Hello,\n\nI have built up a hot-standby between a master running 9.2.4 and a slave running 9.2.9. I did the initial copy using \"pg_basebackup\" . My recovery.conf looks like:\n\nstandby_mode = 'on'\nprimary_conninfo = 'host=pXXXXXXXX port=XXXX user=replicator'\ntrigger_file = 'failover.now'\... |
[
{
"msg_contents": "Hi,\nI have created a sample database with test data to help benchmark our\napplication. The database has ten million records, and is running on a\ndedicated server(postgres 9.3) with 8GB of RAM. Our queries are pretty\nslow with this amount of data and is my job to get them to run to at\nac... |
[
{
"msg_contents": "All,\n\npg version: 9.3.5\nRHEL 6.5\n128GB/32 cores\nConfigured with shared_buffers=16GB\nJava/Tomcat/JDBC application\n\nServer has an issue that whenever we get lock waits (transaction lock\nwaits, usually on an FK dependancy) lasting over a minute or more than\n10 at once, *all* queries on... |
[
{
"msg_contents": "hi,\n\nin the pgsql documentation\n(http://www.postgresql.org/docs/9.1/static/sql-createtrigger.html)\n\ni haven't seen anything referring to: how is affected the data inserted in\nthe new table by a trigger Before Insert compared with a trigger After\nInsert? and anything related to performa... |
[
{
"msg_contents": "Hi\n\nAfter upgrading our 9.0 database server\n\nfrom:\nopenSUSE 11.4, kernel 2.6.37.6-24-default, Pg 9.0.13\n\nto:\nopenSUSE 13.1, kernel v 3.11.10-21-default, Pg 9.0.15\n\n... and overall server load is +1 after that.\n\nWe did not add any new services/daemons.\n\nIt's hard to track down t... |
[
{
"msg_contents": "All;\n\nWe have a large db server with 128GB of ram running complex functions.\n\nwith the server set to have the following we were seeing a somewhat low \nhit ratio and lots of temp buffers\n\nshared_buffers = 18GB\nwork_mem = 75MB\neffective_cache_size = 105GB\ncheckpoint_segments = 128\n\n... |
[
{
"msg_contents": "Hi all,\n\nExcuse me if I made any mistakes, as this is my first time posting to a\nmailing list.\n\nI'm a user of Quassel, a IRC client that uses postgres a backing store\nfor IRC logs and am running into heavy intermittent performance\nproblems. I've tracked it down to a query that takes a ... |
[
{
"msg_contents": "Looks like my client mangled (reflowed) the command outputs, so I\nrequoted them in this message sent as plain text. In case it happens\nagain I also posted them to a pastebin here:\nhttps://gist.github.com/yuriks/e86fb0c3cefb8d348c34\n\n--yuriks\n\n\nOn Sat, Nov 15, 2014, at 09:16 PM, Yuri K... |
[
{
"msg_contents": "Another day, another timing out query rewritten to force a more stable\nquery plan.\n\nWhile I know that the planner almost always chooses a good plan, I\ntend to think it is trying too hard. While 99% of the queries might be\n10% faster, 1% might be timing out which makes my users cross and ... |
[
{
"msg_contents": "Hello,\n\nI wonder why Postgres does not use index in the query below? It is a \nquite common use-case when you want to sort records by an arbitrary set \nof columns but do not want to create a lot of compound indexes for all \npossible combinations of them. It seems that if, for instance, y... |
[
{
"msg_contents": "OK so there's a simple set of tree functions we use at work. They're\nquite fast in 8.4 and they've gotten about 40% slower in 9.2. They're\na simple mix of sql and plpgsql functions which are at\nhttp://pastebin.com/SXTnNhd5 and which I've attached.\n\nHere's a test query:\n\nselect tree_anc... |
[
{
"msg_contents": "Hi all,\n\nWe are facing following issue in postgresql 9.1.3 in using arrow key in Solaris platform.\nCan you please help us to resolve it or any new release has fix for this or any workaround for this?\n\nissue: psql client generates a core when up arrow is used twice.\n============\nPlatfro... |
[
{
"msg_contents": "Hi all -- I am trying to do a better job of understanding why the\nplanner chooses some plans over others, and I ran into this issue this\nmorning where the planner ends up choosing a query that's 15000x\nslower. I have a table that represents nodes (here called\n\"components\") in a tree. Ea... |
[
{
"msg_contents": "Hi,\n\nApologies if this is the wrong list for this time of query (first time\nposting).\n\nI'm currently experimenting with hstore on Posgtres 9.4rc1. I've created a\ntable with an hstore column, with and index on that column (tried both gin\nand btree indexes) and the explain plan says tha... |
[
{
"msg_contents": "I was doing some performance profiling regarding querying against jsonb \ncolumns and found something I can't explain.\nI created json version and standard column versions of some data, and \nindexed the json 'fields' and the normal columns and executed equivalent \nqueries against both.\nI f... |
[
{
"msg_contents": "Hi Team,\n\n\n\nWe are thinking of shifting our data warehouse solution from Netezza to\nPostgreSQL. I am reading a lot about PostgreSQL lately.\n\n\n\nCan you please let us know the minimum[overall performance should be good]\nhardware requirements for the below mentioned statistics. My ques... |
[
{
"msg_contents": "I have a beast of a Dell server with the following specifications:\n\n - 4x Xeon E5-4657LV2 (48 cores total)\n - 196GB RAM\n - 2x SCSI 900GB in RAID1 (for the OS)\n - 8x Intel S3500 SSD 240GB in RAID10\n - H710p RAID controller, 1GB cache\n\nCentos 6.6, RAID10 SSDs uses XFS (mkfs.xf... |
[
{
"msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHello.\nI need to tune a postgres installation I've just made to get a better\nperformance. I use two identical servers with a hot replication\nconfiguration. The two servers have the following hardware:\n\nDual Processor Intel Xeon E5-2640V2 ... |
[
{
"msg_contents": "Hi everybody,\n\nDenis from SO (see his latest comment) advised me to post my question \nhere: \nhttp://stackoverflow.com/questions/27363263/when-does-postgresql-collapse-subqueries-to-joins-and-when-not \nPlease also read all the comments as they contain valuable data as well.\n\nWhat we act... |
[
{
"msg_contents": "Hi,\n\n\nSoftware and hardware running postgresql are:\n- postgresql92-9.2.3-1.1.1.x86_64\n- openSuSE 12.3 x64_86\n- 16 GB of RAM\n- 2 GB of swap\n- 8-core Intel(R) Xeon(R) CPU E5-2407 0 @ 2.20GHz\n- ext4 filesystem hold on a hardware Dell PERC H710 RAID10 with 4x4TB SATA HDs.\n- 2 GB of RAM ... |
[
{
"msg_contents": "So, for my use case I simply need to search for a case insensitive\nsubstring. It need not be super exact. It seems like there are two ways I\ncan do this:\n\nCREATE INDEX idx_users_name ON users USING GIST(lower(name) gist_trgm_ops);\nSELECT * FROM users WHERE lower(name) LIKE '%john%';\n\nO... |
[
{
"msg_contents": "This may fall into the category of over-optimization but I've become\ncurious.\n\nI have a user table with about 14 columns that are all 1:1 data - so they\ncan't be normalized.\n\nWhen I insert a row all columns need to be set. But when I update, I\nsometimes only update 1-2 columns at a tim... |
[
{
"msg_contents": "Hello, I´ve installed postgresql 9.1 on ubuntu 12.04 with pgpoolII-3.3.3 and\npgPoolAdmin.\n\nI´m trying to make a test with pgbench-tools to measure the performance of\npostgresql.\n\nSo I move to the directory where is pgbench-tools and configure the config\nfile.\n\nI try to execute this o... |
[
{
"msg_contents": "I will soon be migrating to some recently acquired hardware and seek \ninput from those who have gone before.\n\nA quick overview: the dataset size is ~100GB, (~250-million tuples) with \na workload that consists of about 2/3 writes, mostly single record \ninserts into various indexed tables,... |
[
{
"msg_contents": "Hello,\n\nIf possible, I would need your help/suggestions for this problem :\n\nI'm experiencing a serious performance problem using postgresql foreign data wrapper.\nIn particular, a simple query performed via fdw lasts 80 times more than the same query performed directly on the local server... |
[
{
"msg_contents": "Hi All\n\nI thought 'shared_buffers' sets how much memory that is dedicated to\nPostgreSQL to use for caching data, therefore not available to other\napplications.\n\nHowever, as shown in the following screenshots, The server (CentOS 6.6\n64bit) has 64GB of RAM, and 'shared_buffer' is set to ... |
[
{
"msg_contents": "This is an obfuscation and mock up, but:\n\ntable files (\n\tid serial pk,\n\tfilename text not null,\n\tstate varchar(20) not null\n\t... 18 more columns\n)\n\nindex file_state on (state)\n\t(35GB in size)\nindex file_in_flight_state (state) where state in (\n'waiting','assigning', 'processi... |
[
{
"msg_contents": "Hi,\n\nWe implemented an autocompletion feature (case and accent insensitive)\nusing PostgreSQL full text search.\nThe query fetches patient ids matching the full text query that belong to a\ngiven patient base (rows contain a pg_array with patient_base_ids).\nOur table grew over time (6.2 mi... |
[
{
"msg_contents": "Hi,\nI'm trying to create datas on an initial import and i'm encountering a\nperformance issue.\nI've 2 tables, my process create a record in each table and execute a sum\nwith join on this 2 tables. (and other requests but there are very fast)\n\nMy 2 tables are empty before the import.\n\nM... |
[
{
"msg_contents": "The documentation states that \"The extent of analysis can be controlled by\nadjusting the default_statistics_target configuration variable\". It looks\nlike I can tell Postgres to create more histograms with more bins, and more\ndistinct values. This implicitly means that Postgres will use a... |
[
{
"msg_contents": "I have an events table that records page views and purchases (type =\n'viewed' or type='purchased'). I have a query that figures out \"people who\nbought/viewed this also bought/viewed that\".\n\nIt worked fine, taking about 0.1 seconds to complete, until a few hours ago\nwhen it started taki... |
[
{
"msg_contents": "Hi guys,\n\nCan I take a jab at the celebrated “why is Postgres not using my index” riddle?\n\nI’m using PostgreSQL 9.3.3 on an Amazon RDS “db.r3.xlarge” 64-bit instance. I have two tables, one with about 30M rows and two indexes (in fact a monthly partition):\n\nCREATE TABLE staging.mixpanel... |
[
{
"msg_contents": "Folks,\n\nCurrently, JSONB fields don't have statistics, and estimate a flat 1%\nselectivity. This can result in poor query plans, and I'm wondering if\nanyone has a suggested workaround for this short of hacking a new\nselectivity function. For example, take the common case of using JSONB\... |
[
{
"msg_contents": "Hi,\nI have to deal with badly written system which regularly suffers from\ntransaction wraparound issue. This issue is happenning every 10-14 days and\nforces me to take system offline and vacuum in single-user mode.\nMain causes for this are (afaik):\n1) heavy transaction traffic + 100+GB o... |
[
{
"msg_contents": "Hi all,\r\n\r\nThe pg version in question is the latest 9.4., running on Windows.\r\n\r\nFor testing out the NoSQL features of pg I have a simple table called ‘articles’ with a column called ‘data’.\r\n\r\nThere is an index on ‘data’ like this:\r\n CREATE INDEX idx_data ON articles USING gin... |
[
{
"msg_contents": "Just checked: the execution time is the same when I drop the index.\r\n\r\nExecution plan with index:\r\n---\r\n\"Bitmap Heap Scan on articles (cost=16.25..135.64 rows=33 width=427)\"\r\n\" Recheck Cond: (data @> '{\"locked\": true}'::jsonb)\"\r\n\" -> Bitmap Index Scan on idx_data (cost... |
[
{
"msg_contents": "I've created a GIN index on an INT[] column, but it slows down the selects.\nHere is my table:\n\ncreate table talent(person_id INT NOT NULL,\nskills INT[] NOT NULL);\n\ninsert into talent(person_id, skills)\nselect generate_series, array[0, 1] || generate_series\nfrom generate_series(3, 1048... |
[
{
"msg_contents": "I read that the query planner changes with every release. Was there a\nchange from 8.4 to 9.3 that would account for a major (2 orders of\nmagnitude) difference in execution time for nested views after we upgraded\nto 9.3?\n\nhttp://stackoverflow.com/questions/24067543/nested-views-much-slow... |
[
{
"msg_contents": "I made complex select using PGAdmin III Query Editor, Postgre server 9.3\n\n\nselect ... from mytable join .. join ... order by ....\n\nI get [Total query runtime: 8841 ms. 43602 rows retrieved.]\n\nbut when I use \n\ncopy ([same above select]) to '/x.txt' \nI get [Query returned successfully... |
[
{
"msg_contents": "Hi All\n\nWe are testing our Oracle compatible business applications on PostgreSQL\ndatabase,\n\nthe issue we are facing is <empty string> Vs NULL\n\nIn Oracle '' (<empty string>) and NULL are treated as NULL\n\nbut, in PostgreSQL '' <empty string> not treated as NULL\n\nI need some *implicit... |
[
{
"msg_contents": "I have a system that I am needing to convert from FoxPro files being accessed\nwith DAO to PostgreSQL.\n\nThis system serves 1,000 clients and will be expanding to 2,000 within the\nnext 18 months.\n\nThe current system has a directory with files that contain information of a\nglobal nature s... |
[
{
"msg_contents": "For a large database with lots of activity (transactions), the XIDs are very\noften re-frozen by AutoVacuum. Even when autovacuum_freeze_max_age is set to\n2 billion, the XIDs can wrap every couple of days on an active database.\nThis causes unnecessary changes to otherwise unmodified files a... |
[
{
"msg_contents": "Hi,\n\nA survay: with pgbench using TPS-B, what is the maximum TPS you're ever\nseen?\n\nFor me: 12000 TPS.\n\n-- \nLuis Antonio Dias de Sá Junior\n\nHi,A survay: with pgbench using TPS-B, what is the maximum TPS you're ever seen?For me: 12000 TPS.-- Luis Antonio Dias de Sá Junior",
"msg_... |
[
{
"msg_contents": "Hi all. Using PG-9.4.0 I'm seeing this trying to delete from an \n\"entity\"-master table: *# explain analyze delete from onp_crm_entity \nwhere entity_id IN (select tmp.delivery_id from temp_delete_delivery_id tmp);\n ... |
[
{
"msg_contents": "am connecting three tables in query. one table have 73000 records\n\nanother two tables have 138000 records.\n\nbut its take 12 sec for show 12402 rows in tables\n\nTables Structure:\n\nItems Table\n\nCREATE TABLE \"C_SAM_Master\".items\n(\n itemno integer NOT NULL,\n itemname character var... |
[
{
"msg_contents": "Hi\n\nI'm using cross join lateral with a non-trivial function in \nan attempt to limit calculation of that function, and am \nwondering about some aspects of how lateral is currently \nimplemented. \n\nNB these queries are generated by a certain ORM, and are\nusually embedded in much more co... |
[
{
"msg_contents": "Hello,\nI've been away from postgres for several years, so please forgive me if \nI forgot nearly everything:-)\n\nI've just inherited a database collecting environmental data. There's a \nbackground process continually inserting records (not so often, to say \nthe truth) and a web interface... |
[
{
"msg_contents": "Hi,\n\ndoes PostgreSQL support the concept of reverse key indexing as described \nhere? I couldn't find any documentation on this yet.\n\nhttp://www.toadworld.com/platforms/oracle/w/wiki/11075.reverse-key-index-from-the-concept-to-internals.aspx\n\nRegards,\n\n-- \nSven R. Kunze\nTBZ-PARIV Gm... |
[
{
"msg_contents": "Hello !\n\nI have a huge table, 1 bilion rows, with many indexes.\nI have many materialysed view (MV), subsets of this huge table, with same\nkind indexes.\nI have many users, querying thoses MV.\nI have a storage problem, because of MV physical memory use.\n\nI wonder :\nIf I replace MV with... |
[
{
"msg_contents": "Hello,\nHas anybody used online backup feature of postgreSQL? In fact precise postgreSQL term is called: \"Point-in-time Recovery\" (PITR)\nThis means enabling following additional options in config:\n---\narchive_command = on\narchive_command = 'cp %p /usr/local/pgsql/pgDataPITR/wals/%f' # T... |
[
{
"msg_contents": "Hi all!\n\nMay someone help me with the issue in the apply process on the replica. \nWe have a stream replication and after vacuum stops working with a big \ntable we get a \"freeze\" in applying data on the replica database. It \nlooks like this:\n\nTue Feb 24 15:04:51 MSK 2015 Stream: MASTE... |
[
{
"msg_contents": "All:\n\nThis got posted to pgsql-bugs, but got no attention there[1], so I'm\nsending it to this list.\n\nTest case:\n\ncreatedb bench\npgbench -i -s bench\n\\c bench\n\nbench=# explain select * from pgbench_accounts where aid = 2;\n QUERY PLAN\n------... |
[
{
"msg_contents": "Hi all,\n I've noticed that order by / limit are not distributed to union subqueries\nby the planner:\n\nExample:\n\nq1: (select * from t1) union all (select * from t2) order by x limit 10;\nq2: (select * from t1 order by x limit 10) union all (select * from t2\norder by x limit 10)\n or... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.