threads listlengths 1 275 |
|---|
[
{
"msg_contents": "Hi,\n\nI know there exist Bitmap Index Scan and Bitmap Heap Scan in Postgres.\nWhat about implementing a bitmap index for explicit use (CREATE INDEX ...)?\nAny use cases?\nBitmap indexes work best on values with low cardinality (categorical\ndata), would be efficient in space and ready for lo... |
[
{
"msg_contents": "Hi,\n\nSorry if this is an odd question:\nI assume that Postgres indexes don't store records but only pointers\nto the data.\nThis means, that there is always an additional access needed (real table I/O).\nWould an index containing data records make sense?\n\nStefan\n",
"msg_date": "Sun, ... |
[
{
"msg_contents": "Let's say that I want to do INSERT SELECT of 1,000 items into a table. The\ntable has some ints, varchars, TEXT and BLOB fields.\n\nWould the time that it takes, differ a great deal, depending on whether the\ntable has only 100,000 or 5,000,000 records?\n\nThanks\n\ni\n\nLet's say that I want... |
[
{
"msg_contents": "I have a lot of wasted bytes in some tables.\n\nSomewhere I read that maybe auto-vacuum can't release space due to a low\nmax_fsm_pages setting.\n\n \n\nI want to increase it, but I don't found the param in the postgres.conf.\n\n \n\nThis param exists? If not? How can I deal with bloated tabl... |
[
{
"msg_contents": "Hello Everyone,\n\nI had posted a query in \"GENERAL\" category, not sure if that was the\ncorrect category to post.\n\nPlease help me understand how to calculate free space in Tables and Indexes\neven after vacuuming and analyzing is performed.\n\nWhat i understand is that, even if we perf... |
[
{
"msg_contents": "[please CC, I'm not on the list]\n\nHi all,\n\nwe have one table that basically uses Postgres as a key-value store.\n\n Table \"public.termindex\"\nColumn | Type | Modifiers\n-------------+---------+-----------\n subject_id | integer |\n indextype | integer |\n cid | integer ... |
[
{
"msg_contents": "Hi all,\n\nIt looks like I've been hit with this well known issue. I have a complicated query that is intended to run every few minutes, I'm using JDBC's Connection.prepareStatement() mostly for nice parameterisation, but postgres produces a suboptimal plan due to its lack of information whe... |
[
{
"msg_contents": "Hi all,\n\nIt looks like I've been hit with this well known issue. I have a complicated query that is intended to run every few minutes, I'm using JDBC's Connection.prepareStatement() mostly for nice parameterisation, but postgres produces a suboptimal plan due to its lack of information whe... |
[
{
"msg_contents": "Hi all,\n\nI am trying to update / refresh one table (history) only from prod. database\nto my test environment database\nmy query as follows:\n\npg_dump -h <hostname1> -U postgres -t history DATABASENAME | psql -h\nhostname2 -U postgres -t history DATABASENAME > db.sql\n\nbut I am getting th... |
[
{
"msg_contents": "I am using Postgresql 9.0.1.\n\nUsing the query http://wiki.postgresql.org/wiki/Show_database_bloat, I got\nthe following result for a table:\n\n-[ RECORD 1 ]----+-----------------------------------------------\ncurrent_database | crm\nschemaname | public\ntablename | _attachment... |
[
{
"msg_contents": "buen dia\n\na partir de los siguientes artículos publicados en la primera edicion de\nPostgreSQL Magazine (http://pgmag.org/00/read) (Performance Tunning\nPostgreSQL y Tuning linux for PostgreSQL) me dispuse a implementar los mismo\nen mi servidor de Postgres pero cuento con la siguiente arqu... |
[
{
"msg_contents": "First of all, thank you for taking the time to review my question. After\nattending the PostgresOpen conference in Chicago last week, I've been\npouring over explain logs for hours on end and although my system is MUCH\nbetter, I still can't resolve a few issues. Luckily my data is pretty w... |
[
{
"msg_contents": "I am working on a fuzzy search of a large dataset. Basically, it is a list\nof all of the songs, albums, artists, movies, and celebrities exported from\nFreebase. Anyway, I was hoping to get a fuzzy search that was nearly as\nfast as the full-text search with the new nearest-neighbor GIST i... |
[
{
"msg_contents": "Hi everyone,\n\nI did a software upgrade, and with it came a new feature where when \nselecting a customer it queries for the sum of a few columns. This \ntakes 7 seconds for the 'Cash Sale' customer - by far the most active \ncustomer. I'd like to see if it's possible to get it down a bit b... |
[
{
"msg_contents": "Hello,\n\nIt is interesting how PostgreSQL reads the tablefiie.\nWhether its indexes store/use filesystem clusters locations containing\nrequired data (so it can issue a low level cluster read) or it just\nfseeks inside a file?\n\nThank you\n",
"msg_date": "Fri, 23 Sep 2011 23:03:57 +0300... |
[
{
"msg_contents": "Hi All,\n\nWe are currently using PostgreSQL 9.0.3 and we noticed a performance anomaly\nfrom a framework (ActiveRecord) generated query to one of our tables. The\nquery uses an in clause to check an indexed column for the presence of\neither of two values. In this particular case neither o... |
[
{
"msg_contents": "In Mammoth Replicator (PG 8.3) I have a table described as \n\n Table \"public.tevent_cdr\"\n Column | Type | Modifiers\n----------------+--------------------------+--------------------------------------... |
[
{
"msg_contents": "Hi,\nI am having problem retrieving data with % in the value. I tried a lot\nbut so far i have no luck.\n\nfor example i have first name = 'abc', middle name = 'pq%', last name\n= '123'\n\nI want to list all the entries that ends with %. Because those are\nwrong entries and i want to remove %... |
[
{
"msg_contents": "Hi all....\n\nI would like to start a dialogue and hear general feedback about the use \nof constraint triggers in postgres (8.4.5).\n\nOur overall issue is that using general triggers is causing slow inserts \n(from locking issues) in our database. Here are some details:\n\nA little backgro... |
[
{
"msg_contents": "Hi all,\n\nI have a problem with autovacuum apparently not doing the job I need it to do.\n\nI have a table named datasession that is frequently inserted, updated and deleted from. Typically the table will have a few thousand rows in it. Each row typically survives a few days and is updated... |
[
{
"msg_contents": "Hello Everyone,\n\nI am preparing a plan to track the tables undergoing Full Table Scans for\nmost number of times.\n\nIf i track seq_scan from the pg_stat_user_tables, will that help\n(considering the latest analyzed ones) ?\n\nPlease help !\n\nThanks\nVB\n\nHello Everyone,I am preparing a p... |
[
{
"msg_contents": "Hello Everyone,\n\nI am implementing a PostgreSQL performance monitoring system (to monitor the\nbelow) which would help us understand the database behavior -\n\n1. Big Full Table Scans\n2. Table with high IOs (hot tables)\n3. Highly used Indexes\n4. Tables undergoing high DMLs with index sca... |
[
{
"msg_contents": "Hello Everyone,\n\nI am back with an issue (likely).\n\nI am trying to create a table in our production database, and is taking 5\nseconds.\n\nWe have executed VACUUM FULL and yet to run ANALYZE. Can i expect the CREATE\nTABLE to be faster after ANALYZE finishes ?\n\nOr is there anything seri... |
[
{
"msg_contents": "Hello Everyone,\n\nI have been working on PostgreSQL for quite a while (2 yrs) now.\n\nI have got \"PostgreSQL 9.0 High Performance\" book today and quite excited to\ngo through it.\n\nPlease let me know any source where i can get more books on PG, I am\nespecially looking for books on PG int... |
[
{
"msg_contents": "Hola!!\n\nTengo un serio inconveniente, estoy trabajando con postgresql 8.2 y tomcat 5.5.20 en un equipo con Centos 5.3\n\nY se me presenta un problema con una consulta, si la ejecuto le toma alrededores de 2.6 segundos la ejecución.\n\npero en ocaciones se queda pegada esa consulta y luego p... |
[
{
"msg_contents": "Hey,\n\n Is there a suggested number of child tables for table partitioning, I ran a stress test on a master\ntable (with 800 thousand rows), trying to create 500,000 child tables for it, each child table has 2\nindexes and 3 constraints (Primary key and foreign key). I wrote a script to do ... |
[
{
"msg_contents": "All,\n\nHere's a case which it seems like we ought to be able to optimize for:\n\ndatamart-# ORDER BY txn_timestamp DESC\ndatamart-# LIMIT 200\ndatamart-# OFFSET 6000;\n\n QUERY PLAN\n\n---------------------------\n Limit (cost=560529.82..560529.82 rows=... |
[
{
"msg_contents": "I recently had need of an \"array_except\" function but couldn't find\nany good/existing examples. Based off the neat \"array_intersect\"\nfunction at http://www.postgres.cz/index.php/PostgreSQL_SQL_Tricks#Intersection_of_arrays,\nI put together an \"array_except\" version to return the array... |
[
{
"msg_contents": "\nI have a 710 (Lyndonville) SSD in a test server. Ultimately we'll run\ncapacity tests using our application (which in turn uses PG), but it'll\ntake a while to get those set up. In the meantime, I'd be happy to\nentertain running whatever tests folks here would like to suggest,\nspare time-... |
[
{
"msg_contents": "password-show\n\npassword-show",
"msg_date": "Sun, 2 Oct 2011 06:59:28 -0300",
"msg_from": "Eduardo Nazor <enazor@gmail.com>",
"msg_from_op": true,
"msg_subject": ""
}
] |
[
{
"msg_contents": "Since it's my first on this list, I'd like to say \"Hi guys\" :)\n\nHere is definition of my table:\na9-dev=> \\d records;\n Table \"public.records\"\n Column | Type | Modifiers \n--------------------------------... |
[
{
"msg_contents": "How can i get record by data block not by sql?\r\n \r\n I want to read and write lots of data by data blocks and write record to a appointed data block and read it.\r\n so i can form a disk-resident tree by recording the block address. But i don't know how to implement in postgresql. \r\n I... |
[
{
"msg_contents": "Hi, \n\n \n\nI need help to understand the issue on a productive database for a select\nthat takes more time than expected.\n\n \n\n1- On a development database I ran the query (select) and I can see on\nExplain Analyze pgAdmin use all the indexes and primary keys defined. Dev db\nhas al... |
[
{
"msg_contents": "I have the following setup:\n\ncreate table test(id integer, seq integer);\ninsert into test select generate_series(0, 100), generate_series(0, 1000);\ncreate unique index test_idx on test(id, seq);\nanalyze test;\n\nNow I try to fetch the latest 5 values per id, ordered by seq from the \ntab... |
[
{
"msg_contents": "Hello Everyone,\n\nGenerally when it comes to query performance, I check how the vacuuming and\nstatistics collection is performed on Tables and Indexes hit by the query.\n\nApart from the above i check the code logic ( for any bad joins ) and column\nstatistics as well.\n\nI got hold of two ... |
[
{
"msg_contents": "Hello,\n\nSorry. I should have put some more details in the email.\n\nI have got a situation where in i see the production system is loaded with\nthe checkpoints and at-least 1000+ buffers are being written for every\ncheckpoint.\n\nCheckpoint occurs every 3 to 4 minutes and every checkpoint ... |
[
{
"msg_contents": "\nI ran a test using Intel's timed workload wear indication feature on a \n100G 710 series SSD.\n\nThe test works like this : you reset the wear indication counters, then \nstart running\nsome workload (in my case pgbench at scale 100 for 4 hours). During the \ntest run\na wear indication att... |
[
{
"msg_contents": "Hello,\n\nHas any performance or evaluation done for pg9.x streaming replication\nover WAN ?\nHow adequate is the protocol to push WALs over long distance ?\nAny best practice tuning wal_* for WAN ?\n\nCheers,\nBen-\n",
"msg_date": "Wed, 5 Oct 2011 14:53:15 -0700",
"msg_from": "Ben Ci... |
[
{
"msg_contents": "Hi,\n\nI have a problem with my postgres 8.2.\n\nI Have an application that write ojbect (file, folder, ecc.) and another\ntable that have account. This to tables are likend eith another\ntablenthat have a permissions foreach objects + accounts.\n\nMy structure is:\n\nTABLE WITH USERS\n# \\d ... |
[
{
"msg_contents": "Hi,\n\nYesterday, a customer increased the server memory from 16GB to 48GB.\n\nToday, the load of the server hit 40 ~ 50 points.\nWith 16 GB, the load not surpasses 5 ~ 8 points.\n\nThe only parameter that I changed is effective_cache_size (from 14 GB to \n40GB) and shared_buffers (from 1 GB ... |
[
{
"msg_contents": "\nI have a slow query. I expect that there is either a more intelligent way \nto write it, or that one could make some indexes that would speed it up. \nI've tried various indexes, and am not getting anywhere.\n\nI'd be grateful for any suggestions. Reasonably full details are below.\n\n\nDES... |
[
{
"msg_contents": "\nI have a slow query, based on the problem of finding the set of rows which \nare maximal in some sense. I expect that there is either a more intelligent \nway to write it, or that one could make some indexes that would speed it \nup. I've tried various indexes, and am not getting anywhere.\... |
[
{
"msg_contents": "Excuse the noob question, I couldn't find any reading material on this\ntopic.\n\n \n\nLet's say my_table has two fields, pkey_id and another_id. The primary key\nis pkey_id and of course indexed.\n\n \n\nThen someone adds a composite index on btree(pkey_id, another_id).\n\n \n\nQuestion 1) I... |
[
{
"msg_contents": "Hi all ;\n\nI'm trying to tune a difficult query.\n\nI have 2 tables:\ncust_acct (9million rows)\ncust_orders (200,000 rows)\n\nHere's the query:\n\nSELECT\n a.account_id, a.customer_id, a.order_id, a.primary_contact_id,\n a.status, a.customer_location_id, a.added_date,\n o.agent... |
[
{
"msg_contents": "Hi \n\nI want to know how can i measure runtime query in postgresql if i use command line psql?\nnot explain rutime for the query such as the runtime which appear in pgadmin ?\nsuch as Total query runtime: 203 ms.\nHi I want to know how can i measure runtime query in postgresql if i use comma... |
[
{
"msg_contents": "Hi all,\nI am running 9.03 with the settings listed below. I have a prohibitively\nslow query in an application which has an overall good performance:\n\nselect\n cast (SD.detectorid as numeric),\n CAST( ( (SD.createdtime - 0 )/ 18000000000000::bigint ) AS numeric) as\ntimegroup,\n s... |
[
{
"msg_contents": "HI,\n\n \n\nI am using PostgreSQL 8.4 in windows. I have created a database and\nsome tables on it. Also created a table space and some tables in it. My\napplication inserts data into these tables in every second. The\napplication is a continuous running application. My issue is that after\... |
[
{
"msg_contents": "Hello all,\n\nI've spent some time looking through previous posts regarding\npostgres and SSD drives and have also been reading up on the\nsubject of SSDs in general elsewhere.\n\nSome quick background:\n\nWe're currently looking at changing our basic database setup as we\nmigrate away from s... |
[
{
"msg_contents": "Hi,\n\nI stumbled upon a situation where the planner comes with a bad query \nplan, but I wanted to mention upfront that I'm using a dated PG version \nand I already see an update which mentions about improving planner \nperformance. I just wanted to check if this issue is already resolved, \... |
[
{
"msg_contents": "Hi,\n\nI've a postgres 9.1 database used for map generating ( tiles ).\nThe system has 24Go RAM and 5 processors.\nI'm using geoserver to generate the tiles.\n\nMy data used 8486 MB => psql -d gis -c \"SELECT\npg_size_pretty(pg_database_size('gis'))\"\n\nI've carefully indexes the table by t... |
[
{
"msg_contents": "Dear Anybody!\n\nI use pgr to store records. But the characterisitc of the record traffic are\nspecial. For example 50 of them arrived in one sec contignously trough weeks\nand aligned interally trough tables. \nTo absorb this traffic I put the pgr database to ramdisk (fast as possible).\nBut... |
[
{
"msg_contents": "Robins Tharakan wrote:\n \n> I'll try to answer in-line.\n \nThanks; that's the preferred style on PostgreSQL lists.\n \n> On 10/17/2011 09:32 PM, Kevin Grittner wrote:\n>> First off, did you use pg_upgrade from an earlier major release?\n>> If so, be sure you've dealt with this issue:\n> Al... |
[
{
"msg_contents": "Hi everybody,\nI googled a bit around and also checked the mailing lists but I still \ncan't make an idea. We plan to use postgres 9 and the Cluster Database \nReplica.\nMy colleagues are asking how many Cluster Databases (initdb) can I \ncreate and run on a single server. I mean, supposed my... |
[
{
"msg_contents": "Hi,\n\nIn PostgreSQL, is there any performance difference between queries written\nusing \"explicit join notation\" vs \"implicit join notation\" in complex\nqueries?\n\nEXAMPLE: Simple \"explicit join notation\"\nSELECT *\nFROM employee INNER JOIN department\nON employee.DepartmentID =... |
[
{
"msg_contents": "Hi\n\nI'm a postgres novice so ....\n\nI have this fairly simple table\n-------------------------------------------------\n device integer not null,\n group integer not null,\n datum timestamp without time zone not null,\n val1 numeric(7,4) not null default 0.000,\n val2 numeric(7,4) not null... |
[
{
"msg_contents": "I recently ran a query against our production database and saw several\ndisused indexes. Is there a performance harm in having disused\nindexes out there?\n\nOf course, I will be checking our code base and with developers to\nensure that these indexes aren't being used programmatically to\np... |
[
{
"msg_contents": "For example:\n\nTable A\n\n-id (PK)\n\n-name\n\n \n\nTable B\n\n-table_a_id (PK, FK)\n\n-address \n\n \n\nWhen I do an insert on table B, the database check if value for column\n\"table_a_id\" exists in table A\n\nBut, if I do an update of column \"address\" of table B, does the database\nche... |
[
{
"msg_contents": "Hi there!\n\nWe have a dev machine running 9.0.1 (an i3 laptop, with a regular hard disk,\nwith 4GB of RAM, and a mostly untuned postgresql.conf file). The changed\nlines are:\n shared_buffers = 512MB\n temp_buffers = 48MB\n work_mem = 32MB\n maintenance_work_mem = 348MB\n checkpoint_se... |
[
{
"msg_contents": "Hi there,,\nHow can use explain to estimate workload contains more than one query in the same time.\nsuch as\nexplain (q1,q2,q3)......i want the total cost for all queries in the workload using one explain ,,??\nregards..\n\nHi there,,How can use explain to estimate workload contains more t... |
[
{
"msg_contents": "Hi all\n\nI'd like to tune the following hstore-related query which selects all\nZoos from table osm_point:\n\nSELECT osm_id, name, tags\n FROM osm_point\n WHERE tags @> hstore('tourism','zoo')\n ORDER BY name;\n\n... given the following table and indexes definition:\n\nCREATE TABLE osm_po... |
[
{
"msg_contents": "If I read the xact_commit field returned by \"Select * from pg_stat_database\"\nmultiple times, and then average the difference between consecutive values,\nwould this give an approx idea about the transactions per second in my\ndatabase?\n\nDoes this figure include the number of select state... |
[
{
"msg_contents": "Hello\n\nI need to choose between Intel 320 , Intel 510 and OCZ Vertex 3 SSD's for my\ndatabase server. From recent reading in the list and other places, I have\ncome to understand that OCZ Vertex 3 should not be used, Intel 510 uses a\nMarvel controller while Intel 320 had a nasty bug which ... |
[
{
"msg_contents": "Hi guys,\n\nI have a query that runs a lot slower (~5 minutes) when I run it with\nthe default enable_nestloop=true and enable_nestloop=false (~10 secs).\nThe actual query is available here http://pastie.org/2754424 . It is a\nreporting query with many joins as the database is mainly used for... |
[
{
"msg_contents": "\n\n-- \n____________________________________________________________________\nCezariusz Marek mob: +48 608 646 494\nhttp://www.comarch.com/ tel: +48 33 815 0734\n____________________________________________________________________\n\n\n",
"msg_date": "Tue, 25 ... |
[
{
"msg_contents": "I'm new to postgres and was wondering how to use EXPLAIN ANALYZE ....\n\nCan I use the output from ANALYZE EXPLAIN to estimate or predict the\nactual time\nit would take for a given query to return?\n\nI ask because I'm writing a typical web app that allows the user to\nbuild and submit a que... |
[
{
"msg_contents": "Hi all,\n i am having any problems with performance of queries that uses CTE, can the\njoin on a CTE use the index of the original table?, suppose two simple tables:\n\nCREATE TABLE employee\n(\n emp_id integer NOT NULL,\n name character varying NOT NULL,\n CONSTRAINT employee_pkey PRIM... |
[
{
"msg_contents": "Ive got a lengthy query, that doesn't finish in reasonable time (i.e.\n10min+). I suspect, that the query optimizer miscalculates the number of\nrows for part of the query.\n\nThe suspicious subquery:\n\nSELECT\n\t\t\t\tsv1.sid as sid\n\t\t\tFROM stud_vera sv1 \n\t\t\tLEFT JOIN stud_vera AS ... |
[
{
"msg_contents": "\nIs there any known problem with slow cursors in PostgreSQL 8.4.5?\n\nI have a following query, which is slow (on my database it takes 11 seconds to execute),\nprobably should be rewritten, but it doesn't matter here. The problem is, that in cursor,\neach fetch takes much longer (even few mi... |
[
{
"msg_contents": "We are running into a significant performance issue with\n\"PostgreSQL 9.0.4 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.4.real \n(Debian 4.4.5-8) 4.4.5, 64-bit\"\n(the version string pqAdmin displays).\n\nA fairly complex insert query on an empty destination table will run for \nan indefin... |
[
{
"msg_contents": "I've got a large mixed-used database, with the data warehouse side of things\nconsisting of several tables at hundreds of millions of rows, plus a number\nof tables with tens of millions. There is partitioning, but as the volume\nof data has risen, individual partitions have gotten quite lar... |
[
{
"msg_contents": "Hi All ;\n\nI have code that drops a table, re-create's it (based on a long set of \njoins) and then re-creates the indexes.\n\nIt runs via psql in about 10 seconds. I took the code and simply \nwrapped it into a plpgsql function and the function version takes almost \n60 seconds to run.\n\n... |
[
{
"msg_contents": "I have Quadcore server with 8GB RAM\n\nvendor_id : GenuineIntel\ncpu family : 6\nmodel : 44\nmodel name : Intel(R) Xeon(R) CPU E5607 @ 2.27GHz\nstepping : 2\ncpu MHz : 1197.000\ncache size : 8192 KB\n\n\nMemTotal: 8148636 kB\nMem... |
[
{
"msg_contents": "We selected a 30MB bytea with psql connected with\n\"-h localhost\" and found that it makes a huge\ndifference whether we have SSL encryption on or off.\n\nWithout SSL the SELECT finished in about a second,\nwith SSL it took over 23 seconds (measured with\n\\timing in psql).\nDuring that time... |
[
{
"msg_contents": "Hi list,\n\nEvery now and then I have write peaks which causes annoying delay on my \nwebsite. No particular reason it seems, just that laws of probability \ndictates that there will be peaks every now and then.\n\nAnyway, thinking of ways to make the peaks more bareable, I saw the new \n9.1 ... |
[
{
"msg_contents": "Dear all,\n\nI am new to PG but I have a solid background on tuning in Oracle and MSSQL.\nI have a query coming out from a piece of software from our SW-Stack (I can't change it) and of course it takes a large amount of time.\n\nThe table I am query are inherited (partitioned) and the query i... |
[
{
"msg_contents": "Hi there,\n\nI have the function:\nCREATE OR REPLACE FUNCTION \"Test\"( ... )\nRETURNS SETOF record AS\n$BODY$\nBEGIN\n RETURN QUERY\n SELECT ...;\nEND;\n$BODY$\nLANGUAGE 'plpgsql' STABLE\n\nThe function call takes about 5 minute to proceed, but using directly its\nquery statement, after rep... |
[
{
"msg_contents": "Hello list,\n\nA OCZ Vertex 2 PRO and Intel 710 SSD, both 100GB, in a software raid 1 \nsetup. I was pretty convinced this was the perfect solution to run \nPostgreSQL on SSDs without a IO controller with BBU. No worries for \nstrange firmware bugs because of two different drives, good write ... |
[
{
"msg_contents": "As I've come up to speed on SQL and PostgreSQL with some\nmedium-complexity queries, I've asked a few questions about what the\noptimizer will do in various situations. I'm not talking about the\nseq-scan-vs-index type of optimizing; I mean \"transforming within the\nrelational calculus (alg... |
[
{
"msg_contents": "Hi all,\n\nI've got a query that I need to squeeze as much speed out of as I can.\n\nWhen I execute this query, the average time it takes is about 190 ms. I \nincreased my work_mem from 1 MB to 50MB and it decreased the timing down \nto an average of 170 ms, but that's still not fast enough. ... |
[
{
"msg_contents": "Hi All;\n\nThe below contab2 table conmtains ~400,000 rows. This query should not \ntake this long. We've tweaked work_mem up to 50MB, ensured that the \nappropriate indexes are in place, etc...\n\nThoughts?\n\nThanks in advance\n\n\nExplain analyze:\nSELECT contab2.contacts_tab\nFROM contab... |
[
{
"msg_contents": "I basically have 3 tables. One being the core table and the other 2 depend\non the 1st. I have the requirement to add upto 70000 records in the tables.\nI do have constraints (primary & foreign keys, index, unique etc) set for\nthe tables. I can't go for bulk import (using COPY command) as th... |
[
{
"msg_contents": "I'm confused. I have a now-trivial SQL function that, unrestricted, would \nscan my whole users table. When I paste the body of the function as a \nsubquery and restrict it to one row, it only produces one row. When I paste \nthe body of the function into a view and restrict it to one row,... |
[
{
"msg_contents": "Hi list,\n\nI've been experiencing a weird performance issue lately.\n\nI have a very simple (and usually very fast) query:\n\nSELECT track_logs.id\nFROM track_logs\nWHERE track_logs.track_id = <some id> AND track_logs.track_status_id =\n1 AND track_logs.date >= now() - interval '1 hours'\nFO... |
[
{
"msg_contents": "Hi ,\n\nWhile performing full vacuum we encountered the error below:\n\n\nINFO: vacuuming \"pg_catalog.pg_index\"\nvacuumdb: vacuuming of database \"xxxx\" failed: ERROR: duplicate key value\nviolates unique constraint \"ccccc\"\nDETAIL: Key (indexrelid)=(2678) already exists.\n\nWe are us... |
[
{
"msg_contents": "Hi everybody,\n\nI'm having some issues with PostgreSQL 9.03 running on FreeBSD 8.2 on top\nof VMware ESXi 4.1 U1.\n\nThe problem is query are taking too long, and some times one query \"blocks\"\neverybody else to use the DB as well.\n\nI'm a network administrator, not a DBA, so many things ... |
[
{
"msg_contents": "When I run the following query:\n\nselect questions.id\nfrom questions\njoin (\n select u.id as user_id\n from users as u\n left join scores as s\n on s.user_id = u.id\n) as subquery\non subquery.user_id = questions.user_id;\n\nthe subquery is scanning my entire user table, ev... |
[
{
"msg_contents": "Hi Everyone,\n\nI recently saw a crash on one of our databases, and I was wondering if this\nmight be an indication of something with WAL that might be unexpectedly\ncreating more files than it needs to?\n\nNov 5 16:18:27 localhost postgres[25092]: [111-1] 2011-11-05 16:18:27.524\nPDT [user=... |
[
{
"msg_contents": "I have a question on how the analyzer works in this type of scenario.\r\n\r\nWe calculate some results and COPY INTO some partitioned tables, which we use some selects to aggregate the data back out into reports. Everyone once in a while the aggregation step picks a bad plan due to stats on ... |
[
{
"msg_contents": "Folks,\n\nAfter having some production issues, I did some testing and it seems\nthat any SQL function declared STRICT will never inline. As a result,\nit won't work with either indexes (on the underlying predicate) or\npartitioning.\n\nThis seems like a horrible gotcha for our users. At the... |
[
{
"msg_contents": "Hello Everyone,\n\nI could see the following in the production server (result of the \"top\" M\ncommand) -\n\n PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+\nCOMMAND\n25265 postgres 15 0 3329m 2.5g 1.9g S 0.0 4.0\n 542:47.83 postgres: writer p... |
[
{
"msg_contents": "Hi,\n\nI have some functions that select data from tables which are daily or monthly updated. My functions are marked as STABLE. I am wondering if they perform better if I mark they as IMMUTABLE?\n\nThank you,\nSorin\n\n\n\n\n\n\n\n\n\n\nHi,\n \nI have some functions that select data from ta... |
[
{
"msg_contents": "Hello,\n\nA table has two columns id and EffectiveId. First is primary key.\nEffectiveId is almost always equal to id (95%) unless records are\nmerged. Many queries have id = EffectiveId condition. Both columns are\nvery distinct and Pg reasonably decides that condition has very low\nselectiv... |
[
{
"msg_contents": "Hi,\n\nI have the following function:\n\n===============================\nCREATE OR REPLACE FUNCTION xxx(text)\n RETURNS SETOF vvvvv AS\n$BODY$\nselect a.x, a.y,\n CASE\n WHEN strpos($1,b.x) > 0\n THEN b.x\n ELSE NULL\n END AS mp_hm\nfrom a LEFT JOIN b ON a.id=b.id\n\n ... |
[
{
"msg_contents": "Hello, just for clarification.\n\n \n\nUnlogged tables are not memory tables don't?\n\n \n\nIf we stop postgres server (normal stop) and start again, all information in\nunlogged tables still remain?\n\n \n\nSo, can I expect a data loss just in case of crash, power failure or SO\ncrash don't?... |
[
{
"msg_contents": "Hey guys,\n\nI've been running some tests while setting up some tiered storage, and I \nnoticed something. Even having an empty 'echo' as archive_command \ndrastically slows down certain operations. For instance:\n\n=> ALTER TABLE foo SET TABLESPACE slow_tier;\nALTER TABLE\nTime: 3969.962 ms\... |
[
{
"msg_contents": "I know there were a lot of performance issues with ext4, but i don't know the state of it now.\nI have a private openstreetmap server installed on a ubuntu 11.10 64bit pc with both partitions (/ and /home) formated with ext4. My problem is that the server works very slow.\n\nI know there were... |
[
{
"msg_contents": "Hi, running Postgres 9.1.1 on an EC2 m1.xlarge instance. Machine is a\ndedicated master with 2 streaming replication nodes.\n\nThe machine has 16GB of RAM and 4 cores.\n\nWe're starting to see some slow queries, especially COMMITs that are\nhappening more frequently. The slow queries are agai... |
[
{
"msg_contents": "Hi all. Been using postgres for years, and lurking on this newsgroup for a\nshort while now to help me gain the benefit of your expertise and\nexperience and learn how to get most out of postgresql possible.\n\nI do a fair bit of work on tables using composite keys. I have discovered\na cou... |
[
{
"msg_contents": "We have anywhere from 60-80 background worker processes connecting to\nPostgres, performing a short task and then disconnecting. The lifetime\nof these tasks averages 1-3 seconds.\n\nI know that there is some connection overhead to Postgres, but I dont\nknow what would be the best way to meas... |
[
{
"msg_contents": "Linux F12 64bit\nPostgres 8.4.4\n16 proc / 32GB\n8 disk 15KRPM SAS/Raid 5 (I know!)\n\n\nshared_buffers = 6000MB\t\t\t\n#temp_buffers = 8MB\t\t\t\nmax_prepared_transactions = 0\t\t\nwork_mem = 250MB\t\t\t\t\nmaintenance_work_mem = 1000MB\t\t\n\t\n\n\n\n\nWe now have about 180mill records in t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.