threads listlengths 1 275 |
|---|
[
{
"msg_contents": "Hi,\n\nAnother \"funny\" thing: I have a query which runs\non (Linux) PostgreSQL 7.4.x under 10 sec. I tried\nto run it on (Windows) PostgreSQL 8.0 yesterday.\nIt didn't finished at all! (I shoot it down after 10 minutes)\nI made various tests and I figured out something interesting:\nThe sam... |
[
{
"msg_contents": "-huh-\n\nA lot of High-Tech ideas. But there is another way:\nSimply measure the current IO load (pro DB if you must), \nmake an estimation how it could change in the future \n(max. 3 years) and make a worst case scenario.\n\nThan you should make a new array each time the\nworst case scenario... |
[
{
"msg_contents": "Given some recent posts / irc issues with dead tuple bloat..\n\nAnd given that a lot of these people have at least been smart enough to \nexplain analyze would it be A. possible B. useful C. None of the above \nto have various \"scan\" nodes of explain analyze also report how many \ninvisible... |
[
{
"msg_contents": "Hello,\n\nI'm experiencing performance problems with 7.4.3 on OpenBSD 3.6, at\nleast I think so. It is running on a Xeon 3 GHz with 2 GB RAM.\n\nI have a table with 22 columns, all integer, timestamp or varchar and\n10 indizes on integer, timestamp and varchar columns.\n\nThe table got 8500 r... |
[
{
"msg_contents": "Hi, All\n\nI'm trying to tune a software RAID 0 (striped) on a solaris 9, sparc box. Currently I'm using a raid 1 (mirrored) array on two discs for the data area,\nand I put in 4 new drives last night (all are f-cal). On the new array I have a width of 4, and used the default interleave fac... |
[
{
"msg_contents": "Hi *,\n\nI am looking for the fastest wal_sync_method (postgres 8, Linux (Redhat) 2.4.29, ext3, SCSI HW-Raid 5).\n\nAny experiences and/or tips?.\n\nThanks in advance\n\nStefan\n\n\n\n\n\n\nHi *,\n \nI am looking for the fastest wal_sync_method \n(postgres 8, Linux (Redhat) 2.4.29, ext3, SCSI... |
[
{
"msg_contents": "Trying to determine the best overall approach for the following\nscenario:\n\nEach month our primary table accumulates some 30 million rows (which\ncould very well hit 60+ million rows per month by year's end). Basically\nthere will end up being a lot of historical data with little value\nbey... |
[
{
"msg_contents": "Hi all,\n\nI am doing research for a project of mine where I need to store several \nbillion values for a monitoring and historical tracking system for a big \ncomputer system. My currect estimate is that I have to store (somehow) \naround 1 billion values each month (possibly more).\n\nI was... |
[
{
"msg_contents": "385 transaction/sec? \n\nfsync = false\n\nrisky but fast.\n\n-----Original Message-----\nFrom: pgsql-performance-owner@postgresql.org\n[mailto:pgsql-performance-owner@postgresql.org]On Behalf Of John Arbash\nMeinel\nSent: Tuesday, March 01, 2005 4:19 PM\nTo: Ramon Bastiaans\nCc: pgsql-perform... |
[
{
"msg_contents": "I would like to know whether there is any command which the server will give the\nrecord ID back to the client when client puts the data and the server generates\nan autoincrement ID for that record.\nFor example if many clients try to put the money data to the server and each\nrecord from ea... |
[
{
"msg_contents": "Greetings,\n\nI have been beating myself up today trying to optimize indices for a \nquery that uses LIKE. In my research I have read that the locale \nsetting may affect PostgreSQL's choice of seq scan vs index scan. I am \nrunning Fedora Core 2 and it appears when I run \"locale\" that it... |
[
{
"msg_contents": "I've tried to use Dan Tow's tuning method and created all the right indexes from his diagraming method, but the query still performs quite slow both inside the application and just inside pgadmin III. Can anyone be kind enough to help me tune it so that it performs better in postgres? I don... |
[
{
"msg_contents": "Hi All,\n\nI am wondering about the relative performance of \"insert into table1 select distinct a,b from ...\" and \"insert into table1 select a,b from ... group by a,b\" when querying tables of different sizes (10K, 100K, 1s, 10s, 100s of millions of rows). \n\nThe distinct way tends to s... |
[
{
"msg_contents": "> -----Original Message-----\n> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]\n> Sent: Wednesday, March 02, 2005 4:30 PM\n> To: Ken Egervari\n> Cc: pgsql-performance@postgresql.org; \n> pgsql-hackers-win32@postgresql.org\n> Subject: Re: [PERFORM] Help with tuning this query (with \n> explain anal... |
[
{
"msg_contents": "I have about 5M names stored on my DB. Currently the searches are very\nquick unless, they are on a very common last name ie. SMITH. The Index\nis always used, but I still hit 10-20 seconds on a SMITH or Jones\nsearch, and I average about 6 searches a second and max out at about\n30/s. Any su... |
[
{
"msg_contents": "> -----Original Message-----\n> From: Jeremiah Jahn [mailto:jeremiah@cs.earlham.edu]\n> Sent: Thursday, March 03, 2005 2:15 PM\n> To: John A Meinel\n> Cc: postgres performance\n> Subject: Re: [PERFORM] name search query speed\n> \n> [...]\n> So the count for this is generated on the fly neede... |
[
{
"msg_contents": "\nI have a query that runs quite quickly using a hash join when run\nstandalone.\n\nWhen I use this query as a subquery the planner always seems to\npick a differnt plan with an order of magnitude worse performance.\n\nThis bad plan is chosen even when the outer sql statement is\na trivial ex... |
[
{
"msg_contents": " I face problem when running the following pgplsql\nfunction. The problem is it takes more than 24hours to\ncomplete\n the calculation. The EMP table has about 200,000\nrecords. I execute the function through psql \"select\ncalculate()\";\n (There is no cyclic link inside the data).... |
[
{
"msg_contents": "I notice that by default, postgres sets numeric fields to\nstorage MAIN. What exactly does that mean? Does that mean\nit stores it in some type of compressed BCD format? If so,\nhow much performance gain can I expect by setting the storage\nto PLAIN? Also, the docs say that char(n) is imp... |
[
{
"msg_contents": "Hi,\n\nI have performance problems with the postmaster-process. The CPU usage is permanently \naround 90 %.\n\nMy DB:\n\n 3,5 GB Size\n largest table ca. 700 000 rows\n\nMost access:\n\n Finde a row - Update if exist Insert else\n\nAverage access:\n\n 10 times a second\n\n ever... |
[
{
"msg_contents": "Hello!\n \nFirst off, I'm a real newbie at trying to read the output of explain\nanalyze.\n \nI have several similar queries in my application that I've got\nincorporated into views. When they run sub 300ms, the users don't\nseem to mind. However, one of them (query is below along with some... |
[
{
"msg_contents": "Hi,\nI have been doing a project that modify the original codes for pg.\nNow I feel very interesting in table or index partition.\nAnd I have paid great attention to the discussion about that before, and \ngot so much information. \nNow I have some ideas about how to partition on pg. I want t... |
[
{
"msg_contents": "> >> What platform is this on? It seems very strange/fishy \n> that all the \n> >> actual-time values are exact integral milliseconds.\n> \n> > My machine is WinXP professional, athon xp 2100, but I get similar \n> > results on my Intel P4 3.0Ghz as well (which is also \n> running WinXP). \... |
[
{
"msg_contents": "> > Do we need actual high precision time, or do we just need \n> to be able \n> > to get high precision differences? Getting the differences \n> is fairly \n> > easy, but if you need to \"sync up\" any drif then it becomes \n> a bit more \n> > difficult.\n> \n> You're right, we only care abo... |
[
{
"msg_contents": "Env: Sun E4500 with 8 gig of RAM in total. Database is stored\nlocally (not on a network storage devise). A copy of the\npostgresql.conf file is attached.\n\nWhen running queries we are experiencing much bigger result times than\nanticipated.\n\nAttached is a copy of our postgresql.conf fi... |
[
{
"msg_contents": "The recompile was done by the sysadmin, but I believe the flags are -pg \n-DLINUX_PROFILING for profiling, and -g for debug symbols.\nThis leaves gmon.out files around, which you can then do a \"gprof \n/usr/bin/postmaster gmon.out\" to see whats going on.\n\nMy problem is that this gives me... |
[
{
"msg_contents": "> -----Original Message-----\n> From: Greg Stark [mailto:gsstark@mit.edu]\n> Sent: Monday, March 07, 2005 12:06 PM\n> To: John A Meinel\n> Cc: Tom Lane; Magnus Hagander; Ken Egervari;\n> pgsql-performance@postgresql.org; pgsql-hackers-win32@postgresql.org\n> Subject: Re: [pgsql-hackers-win32]... |
[
{
"msg_contents": "> -----Original Message-----\n> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]\n> Sent: Monday, March 07, 2005 10:39 AM\n> To: John A Meinel\n> Cc: Magnus Hagander; Ken Egervari; pgsql-performance@postgresql.org;\n> pgsql-hackers-win32@postgresql.org\n> Subject: Re: [pgsql-hackers-win32] [PERFORM]... |
[
{
"msg_contents": " \n\n> -----Original Message-----\n> From: pgsql-hackers-win32-owner@postgresql.org \n> [mailto:pgsql-hackers-win32-owner@postgresql.org] On Behalf \n> Of Tom Lane\n> Sent: 07 March 2005 22:57\n> To: John A Meinel\n> Cc: Dave Held; pgsql-performance@postgresql.org; \n> pgsql-hackers-win32@pos... |
[
{
"msg_contents": " I'm trying to understand why a particular query is slow, and it seems \nlike the optimizer is choosing a strange plan. See this summary:\n\n\n* I have a large table, with an index on the primary key 'id' and on a \nfield 'foo'.\n> select count(*) from foo;\n1,000,000\n> select count(*) ... |
[
{
"msg_contents": "The following query takes approx. 3-5+ minutes\nto complete. I would like to get this down to around\n2-3 seconds. Other RDBMS complete it in <1 second.\n\nI am running 8.0.1 on XP P4 2.6 1GB for dev work. \n\nselect i.internalid, c.code\nfrom local.internal i\ninner join country.ip c on\n(i.... |
[
{
"msg_contents": "> -----Original Message-----\n> From: Greg Stark [mailto:gsstark@mit.edu]\n> Sent: Monday, March 07, 2005 5:15 PM\n> To: Dave Held\n> Cc: Greg Stark; John A Meinel; Tom Lane; Magnus Hagander; Ken \n> Egervari;\n> pgsql-performance@postgresql.org; pgsql-hackers-win32@postgresql.org\n> Subject:... |
[
{
"msg_contents": "> -----Original Message-----\n> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]\n> Sent: Monday, March 07, 2005 4:57 PM\n> To: John A Meinel\n> Cc: Dave Held; pgsql-performance@postgresql.org;\n> pgsql-hackers-win32@postgresql.org\n> Subject: Re: [pgsql-hackers-win32] [PERFORM] Help with tuning \n>... |
[
{
"msg_contents": "> > RDTSC is a bad source of information for this kind of thing, as the \n> > CPU frequency might vary.\n> \n> One thought that was bothering me was that if the CPU goes \n> idle while waiting for disk I/O, its clock might stop or slow \n> down dramatically.\n> If we believed such a counter f... |
[
{
"msg_contents": "I posted this on hackers, but I had to post it here.\n\n===================================================================================================================================\nHi all,\nrunning a 7.4.5 engine, I'm facing this bad plan:\n\n\nempdb=# explain analyze SELECT name,url,... |
[
{
"msg_contents": "Hi, I have the following strange situation:\n\noocms=# vacuum full analyze;\nVACUUM\noocms=# \\df+ class_get_number_of_objects\n Список функций\n Схема | Имя | Тип дан... |
[
{
"msg_contents": "I have two index questions. The first is about an issue that has been\nrecently discussed,\n\nand I just wanted to be sure of my understanding. Functions like count(),\nmax(), etc. will\n\nuse sequential scans instead of index scans because the index doesn't know\nwhich rows\n\nare actually... |
[
{
"msg_contents": "PG Hackers,\n\nWhat follows is iostat output from a TPC-H test on Solaris 10. The machine \nis creating indexes on a table which is 50G in size, so it needs to use \npgsql_tmp for internal swapping:\n\n tty md15 sd1 sd2 sd3 cpu\n tin tout kp... |
[
{
"msg_contents": "All,\n\nI hope that this is the right place to post. I am relatively new to\nPostgreSQL (i.e., < 1 year in coding) and am just starting to\ndelve into the issues of query optimization. I have hunted around\nthe web for the basics of query optimization, but I have not had\nmuch success in in... |
[
{
"msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHi all,\nthis is the third email that I post but I do not see it in archives,\nthe email was too long I believe so this time I will limit the rows.\nBasically I'm noticing that a simple vacuum full is not enough to\nshrink completelly the tabl... |
[
{
"msg_contents": "Hi folks,\n\nI'm about to start testing PGv8 on an Opteron 64bit box with 12GB Ram\nrunning RedHat.\nA bunch of raided drives in the backend.\n\nExpecting 50GB of data per month (100GB+ initial load).\n\nI do not see any example config settings. Have some MySql experience\nand and for it ther... |
[
{
"msg_contents": "All,\n\nI have a table with ~ 3 million records. I'm indexing a field holding\nnames, no more than 200 bytes each. Indexing the resulting tsvector\ntakes forever. It's been running now for more than 40 hours on a Linux\nwith PG 8.01, a single Xeon & 4GB RAM. My work_mem postgresql.conf\npara... |
[
{
"msg_contents": "I'm using a 7.4.6 Perl app that bulk-loads a table, \nby executing a \"COPY TMP_Message FROM STDIN\", then letting\n$dbh->func($message_text.\"\\n\", \"putline\")\n\nSpeculation made me try catenating Several \\n-terminated lines\ntogether, and making a single putline() call with that.\nLo an... |
[
{
"msg_contents": "From rom http://www.powerpostgresql.com/PerfList/\n\n\"even in a two-disk server, you can put the transaction log onto the\noperating system disk and reap some benefits.\"\n\nContext: I have a two disk server that is about to become dedicated to\npostgresql (it's a sun v40z running gentoo lin... |
[
{
"msg_contents": "Hi there!\n\nI think I may have a problem with the statistics in my postgresql 8.0\nrunning under Windowx XP. When I view both pg_stat_all_tables and\npg_stat_all_indexes, all the numeric columns that should hold the\nstatistics are 0 (zero). My configuration file has the following:\n\nstats_... |
[
{
"msg_contents": "why this query needs more time? Its very slow\n\nthx\n\n//////////////////////////////////QUERY\nselect\n coalesce(personaldetails.masterid::numeric,personaldetails.id) +\n(coalesce(personaldetails.id::numeric,0)/1000000) as sorting,\n floor(coalesce(personaldetails.masterid::numer... |
[
{
"msg_contents": "Hi all,\n\nIs the number of rows in explain the number of rows that is expected to be visited or retrieved?\n\nGroeten,\n\nJoost Kraaijeveld\nAskesis B.V.\nMolukkenstraat 14\n6524NB Nijmegen\ntel: 024-3888063 / 06-51855277\nfax: 024-3608416\ne-mail: J.Kraaijeveld@Askesis.nl\nweb: www.askesis.... |
[
{
"msg_contents": "Hi List,\n\ni have a query plan who is bad with standard cpu_tuple_costs and good if \nI raise cpu_tuple_costs. Is it is a good practice to raise them if i \nwant to force postgres to use indexes more often? Or is it is better to \ndisable sequence scans?\n\nCIMSOFT=# ANALYSE mitpln;\nANALYZE... |
[
{
"msg_contents": "Hi all,\n\nI'm preparing a set of servers which will eventually need to handle a high \nvolume of queries (both reads and writes, but most reads are very simple \nindex-based queries returning a limited set of rows, when not just one), \nand I would like to optimize things as much as possible... |
[
{
"msg_contents": "As a test, I ran a query in the pgAdmin query tool, which returns about 15K records from a PostgreSQL v8.01 table on my Win2K server.\n\nI ran the same query from the local server, from another PC on the same 100 mbit local network, and from a PC on a different network, over the internet. \n\... |
[
{
"msg_contents": "Hi Tom. I referenced the status line of pgAdmin. Per the pgAdmin help file:\n \n\"The status line will show how long the last query took to complete. If a dataset was returned, not only the elapsed time for server execution is displayed, but also the time to retrieve the data from the serve... |
[
{
"msg_contents": "Hi,\n\nI have a RAID5 array (mdadm) with 14 disks + 1 spare. This partition has \nan Ext3 filesystem which is used by Postgres. Currently we are loading a \n50G database on this server from a Postgres dump (copy, not insert) and \nare experiencing very slow write performance (35 records per s... |
[
{
"msg_contents": "I'll post there concerning how they determine the query execution time vs. data retrieval time.\n \nI did think about the processor/memory when choosing the machines - all three of the processors are similar. All are Pentium P4s with 512 MB memory.\nthe server is Win2K, P4, 2.3 gHz\nthe loca... |
[
{
"msg_contents": "> this seems\n> like a dead waste of effort :-(. The work to put the data into the main\n> database isn't lessened at all; you've just added extra work to manage\n> the buffer database.\n\nTrue from the view point of the server, but not from the throughput in the\nclient session (client view... |
[
{
"msg_contents": "Hi,\n\nI have a RAID5 array (mdadm) with 14 disks + 1 spare. This partition has\nan Ext3 filesystem which is used by Postgres. Currently we are loading a\n50G database on this server from a Postgres dump (copy, not insert) and\nare experiencing very slow write performance (35 records per seco... |
[
{
"msg_contents": "Hi Arshavir Grigorian,\n\n0. If possible move to 8.0.1 - bgwriter help you\n\n1. Create RAID1 for redo and place drives on separate\nSCSI channel\n\n2. Update postgresql.conf:\nshared_buffers = 10000-50000\nwork_mem = 100000-300000\nmaintenance_work_mem = 100000-300000\nmax_fsm_pa... |
[
{
"msg_contents": "Hi!\n\nIn one of our applications we have a database function, which\nrecalculates COGS (cost of good sold) for certain period. This involves\ndeleting bunch of rows from one table, inserting them again in correct\norder and updating them one-by-one (sometimes one row twice) to reflect\ncurre... |
[
{
"msg_contents": "\n\n\n\n\n\nHello,\nMy version of Postgresql is 7.4.3.\nI have a simple table with 2 indexes:\n Table \"public.tst\"\n Column | Type | Modifiers\n--------+-----------------------------+-------------------------------------\n tst_... |
[
{
"msg_contents": "Hi all,\n\nI am new to PostgreSQL and query optimizations. We have recently moved \nour project from MySQL to PostgreSQL and we are having performance \nproblem with one of our most often used queries. On MySQL the speed was \nsufficient but PostgreSQL chooses time expensive query plan. I wou... |
[
{
"msg_contents": "\n\n> -----Original Message-----\n> From: Josh Berkus [mailto:josh@agliodbs.com] \n> Sent: Sunday, March 13, 2005 12:05 AM\n> To: Tambet Matiisen\n> Cc: pgsql-performance@postgresql.org\n> Subject: Re: [PERFORM] One tuple per transaction\n> \n> \n> Tambet,\n> \n> > In one of our applications ... |
[
{
"msg_contents": "Guys,\n\nI am having a problem firing queries on one of the tables which is\nhaving \"limit\" as the column name.\n\nIf a run an insert/select/update command on that table i get the below error.\n\nERROR: syntax error at or near \"limit\" at character 71\n\nAny Help would be realyl great to ... |
[
{
"msg_contents": "Hi,\n\nI'm using PostgreSQL 8 for a mmorpg.\nThe part of each operation is : select: 50%, update: 40%, insert: 10%.\nI have no more than 4-5 concurrent connections to the database, but each \nof them does A LOT of queries (several per second).\nThe database size is about 1GB, but it'll probab... |
[
{
"msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHi all,\nrunning 7.4.x I still have problem\nwith the select but I do not find any solution apart to rise to 0.7 the\ncpu_tuple_cost, I'm reposting it in the hope to discover a glitch in\nthe planner.\n\n\n# explain analyze select * from v_sc_... |
[
{
"msg_contents": "Alex Turner wrote: \n> 35 Trans/sec is pretty slow, particularly if they are only one row at\n> a time. I typicaly get 200-400/sec on our DB server on a bad day. Up\n> to 1100 on a fresh database.\n\nWell, don't rule out that his raid controller is not caching his writes.\nHis WAL sync meth... |
[
{
"msg_contents": "\nBruce Momjian <pgman@candle.pha.pa.us> wrote:\n\n> Agreed. I think we should reduce it at least to 3.\n\nNote that changing it from 4 to 3 or even 2 is unlikely to really change much.\nMany of the plans people complain about turn out to have critical points\ncloser to 1.2 or 1.1. \n\nThe o... |
[
{
"msg_contents": "> ------------------------------\n> \n> Date: Mon, 14 Mar 2005 09:41:30 +0800\n> From: \"Qingqing Zhou\" <zhouqq@cs.toronto.edu>\n> To: pgsql-performance@postgresql.org\n> Subject: Re: One tuple per transaction\n> Message-ID: <d12qcr$a1r$1@news.hub.org>\n> \n> \"\"Tambet Matiisen\"\" <t.matii... |
[
{
"msg_contents": "\n\n> -----Original Message-----\n> From: Richard Huxton [mailto:dev@archonet.com] \n> Sent: Tuesday, March 15, 2005 11:38 AM\n> To: Tambet Matiisen\n> Cc: pgsql-performance@postgresql.org\n> Subject: Re: [PERFORM] One tuple per transaction\n> \n...\n> \n> > Consider the often suggested solut... |
[
{
"msg_contents": "Hello,\n\njust recently I held a short course on PG.\n\nOne course attendant, Robert Dollinger, got \ninterested in benchmarking single inserts (since\nhe currently maintains an application that does\nexactly that on Firebird and speed is an issue\nthere).\n\nHe came up with a table that I th... |
[
{
"msg_contents": "\n> One thing that stands out is how terribly bad Windows \n> performed with many small single transactions and fsync=true.\n> \n> Appearantly fsync on Windows is a very costly operation.\n\nWhat's the hardware? If you're running on disks with write cache\nenabled, fsync on windows will write... |
[
{
"msg_contents": "Hi all,\n\nI suspect this problem/bug has been dealt with already, but I couldn't\nfind anything in the mail archives.\n\nI'm using postgres 7.3, and I managed to recreate the problem using the attached \nfiles. \n\nThe database structure is in slow_structure.sql\n\nAfter creating the databas... |
[
{
"msg_contents": "Hi all,\n\n Il get this strange problem when deleting rows from a Java program. \nSometime (For what I noticed it's not all the time) the server take \nalmost forever to delete rows from table.\n\nHere It takes 20 minutes to delete the IC table.\n\nJava logs:\nINFO [Thread-386] (Dao.java:2... |
[
{
"msg_contents": "andrew@pillette.com mentioned :\n=> Try ANALYZE after loading the referenced tables, but before loading the main table\n\nI attached a new script for creating the load file...\n \nAnalyze didn't help, it actually took longer to load.\nI set autocommit to off, and put a commit after every 100\... |
[
{
"msg_contents": "> > >The \"this day and age\" argument isn't very convincing. Hard drive \n> > >capacity growth has far outstripped hard drive seek time \n> and bandwidth improvements.\n> > >Random access has more penalty than ever.\n> >\n> > In point of fact, there haven't been noticeable seek time \n> impr... |
[
{
"msg_contents": "Hi,\n\nWhich one is faster: one way reading =\"single pass reading\"\nAssumption :\na. Need to have 3 millions records\nb. Need to have call 10 or 20 records repeatly\n (so for database it will be 10 times connection, each connection with one\nrecord.\n or can be fancy 1 connection call r... |
[
{
"msg_contents": "Hello.\n\nI have a problem concerning multi-column indexes.\n\nI have a table containing some 250k lines.\n\nTable \"public.descriptionprodftdiclnk\"\n Column | Type | Modifiers\n-------------+---------+-----------\n idword | integer | not null\n idqualifier | integer | not null\... |
[
{
"msg_contents": "Consider this query:\n\nSELECT distinct owner from pictures; \n\n Unique (cost=361.18..382.53 rows=21 width=4) (actual time=14.197..17.639 rows=21 loops=1)\n -> Sort (cost=361.18..371.86 rows=4270 width=4) (actual time=14.188..15.450 rows=4270 loops=1)\n Sort Key: \"owner\"\n ... |
[
{
"msg_contents": "> Consider this query:\n> \n> SELECT distinct owner from pictures;\n\n[...]\n> Any ideas, apart from more or less manually maintaining a list of\n> distinct owners in another table ?\n\nyou answered your own question. With a 20 row owners table, you should\nbe directing your efforts there gr... |
[
{
"msg_contents": "> I just wished there was a means to fully automate all this and render\n> it transparent to the user, just like an index.\n> \n> Merlin> Voila! Merlin p.s. normalize your data always!\n> \n> I have this:\n> \n> pictures(\n> PictureID serial PRIMARY KEY,\n> Owner integer NOT NULL R... |
[
{
"msg_contents": "Hi all,\n\nCould someone explain me when I joined tree tables the querys that took\nabout 1sec to finish, takes 17secs to complete when I put tree tables joined\n?\n\nIf I join movest/natope, it's fast, if I join movest/produt, it's fast too,\nbut when I put a third joined table, forget, it's... |
[
{
"msg_contents": "This apparently didn't go through the first time; so, I'm reposting...\n-------------------------------------------------------------------------------------\nHello! \n \nFirst off, I'm running 8.0.1 on Win2000 Server. Vacuum analyze is done\nevery night. Query cost parameters are standard... |
[
{
"msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nHi all,\nI'm running a 7.4.x engine and I'm seeing in a explain analyze:\n\n- -> Hash (cost=4.00..4.00 rows=2 width=16) (actual time=30.542..30.542 rows=0 loops=1)\n -> Index Scan using user_login_login_key on user_login ul (cost=0.00... |
[
{
"msg_contents": "Hi,\n is there some utilities for PG for tunnig database performance. To see \ntop 10 sql commands and so?\nThank you a lot.\n",
"msg_date": "Thu, 17 Mar 2005 14:17:52 +0100",
"msg_from": "Ales Vojacek <alesv@fbl.cz>",
"msg_from_op": true,
"msg_subject": "TOP 10 SQL commands a... |
[
{
"msg_contents": "Hello all.\n \nI am having a couple of tables with couple of hundre millions records in\nthem. The tables contains a timestamp column. \nI am almost always interested in getting datas from a specific day or month.\nEach day contains aprox. 400.000 entries.\n \nWhen I do such queries as \" sel... |
[
{
"msg_contents": "Greetings everyone,\n\nI am about to migrate to Postgres from MySQL. My DB isn't enormous (<\n1gb), consists mostly of just text, but is accessed quite heavily.\nBecause size isn't a huge issue, but performance is, I am willing to\nnormalize as necessary.\n\nCurrently I have a table \"Entries... |
[
{
"msg_contents": "\nThe following bug has been logged online:\n\nBug reference: 1552\nLogged by: Brian O'Reilly\nEmail address: fade@deepsky.com\nPostgreSQL version: 8.0.1\nOperating system: Linux 2.6.11\nDescription: massive performance hit between 7.4 and 8.0.1\nDetails: \n\nWhen ... |
[
{
"msg_contents": "Folks,\n\nI may (or may not) soon have funding for implementing full table partitioning \nin PostgreSQL. I thought it would be a good idea to discuss with people here \nwho are already using pseudo-partitioning what things need to be added to \nPostgresql in order to make full paritioning a ... |
[
{
"msg_contents": "Hi All,\n\nI have been reading about set returning functions. What I would like to \nknow is is there a performance advantage in using SRFs versus querying a \nview. Assuming the underlying SQL is the same for the view vs the \nfunction except for the WHERE clause which of these would you e... |
[
{
"msg_contents": "\nI was following the cpu_tuple_cost thread and wondering, if it could be\npossible to make PQA style utility to calculate configuration-specific\nvalues for planner cost constants. It could make use of output of\nlog_(statement|parser|planner|executor)_stats, tough I'm not sure if the\noutpu... |
[
{
"msg_contents": "Hi everyone,\nI hope it is the correct newsletter for this question.\n\nCan I use an index on a varchar column to optimize the SELECT queries that \nuse \" column LIKE 'header%' \"?\nIf yes what is the best tree algotithm to use ?\n\nI don't care about optimising INSERT, DELETE and UPDATE qu... |
[
{
"msg_contents": "Hi,\n\nI'm looking for a *fast* solution to search thru ~ 4 million records of \nbook descriptions. I've installed PostgreSQL 8.0.1 on a dual opteron \nserver with 8G of memory, running Linux 2.6. I haven't done a lot of \ntuning on PostgreSQL itself, but here's the settings I have changed so... |
[
{
"msg_contents": "How can I improve speed on my queries. For example this query takes one \nday executing itself and it has not finalized !!!\n\"create table tmp_partes as select * from partes where identificacion \nnot in (select cedula from sujetos)\"\n\npartes have 1888000 rows, an index on identificacion\n... |
[
{
"msg_contents": "I get the following output from explain analyze on a certain subset of\na large query I'm doing.\n\n From the looks of it, I need to increase how often postgres uses an\nindex over a seq scan, but I'm not sure how to do that. I looked\nthrough the run-time configuration docs on the website, ... |
[
{
"msg_contents": "Hi everyone,\n\nI'm developping a web decisonnal application based on \n-Red Hat 3 ES\n-Postgresql 8.0.1 \n-Dell poweredge 2850, Ram 2Gb, 2 procs, 3 Ghz, 1Mb cache and 4 disks ext3 10,000 r/mn\nI am alone in the box and there is not any crontab.\n\nI have 2 databases (A and B) with exactly th... |
[
{
"msg_contents": "We've recently moved our pgsql installation and DBs to a Solaris 8\nmachine with striped and mirrored ufs filesystem that houses the DB\ndata. We are now seeing terrible performance and the bottleneck is no\ndoubt disk I/O.\n\nWe've tried modifying a tunables related to ufs, but it doesn't s... |
[
{
"msg_contents": "> -----Original Message-----\n> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]\n> Sent: Tuesday, March 22, 2005 3:48 PM\n> To: Greg Stark\n> Cc: Christopher Browne; pgsql-performance@postgresql.org\n> Subject: Re: [PERFORM] What about utility to calculate planner cost\n> constants?\n> [...]\n> The... |
[
{
"msg_contents": "> -----Original Message-----\n> From: Dave Held \n> Sent: Tuesday, March 22, 2005 4:16 PM\n> To: Tom Lane\n> Cc: pgsql-performance@postgresql.org\n> Subject: Re: [PERFORM] What about utility to calculate planner cost\n> constants?\n> [...]\n> Then instead of building a fixed cost model, why n... |
[
{
"msg_contents": "Hi guys,\nWe are in the process of buying a new dell server.\nHere is what we need to be able to do:\n- we need to be able to do queries on tables that has 10-20 millions\nof records (around 40-60 bytes each row) in less than 5-7 seconds.\nWe also need the hardware to be able to handle up to ... |
[
{
"msg_contents": "I observed slowdowns when I declared SQL function as strict. There were\nno slowdowns, when I implmented the same function in plpgsql, in fact it\ngot faster with strict, if parameters where NULL. Could it be\nside-effect of SQL function inlining? Is there CASE added around the\nfunction to n... |
[
{
"msg_contents": "The query and the corresponding EXPLAIN is at\n\nhttp://hannes.imos.net/query.txt\n\nI'd like to use the column q.replaced_serials for multiple calculations\nin the SELECT clause, but every time it is referenced there in some way\nthe whole query in the FROM clause returning q is executed aga... |
[
{
"msg_contents": "Hello !\n\nI'm running pg_autovacuum on a 1GHz, 80Gig, 512Mhz machine. The database is\nabout 30MB tarred. We have about 50000 Updates/Inserts/Deletes per day. It\nruns beautifully for ~4 days. Then the HDD activity and the Postmaster CPU\nusage goes up ALOT. Even though I have plenty (?) of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.