threads listlengths 1 275 |
|---|
[
{
"msg_contents": "> 2/ Batch-inserts using jdbc (maybe this should go to the jdbc-mailing\nlist - \n> but it is also performance related ...):\n> Performing many inserts using a PreparedStatement and batch execution\nmakes a \n> significant performance improvement in Oracle. In postgres, I did not\nobserve \n>... |
[
{
"msg_contents": "Hello,\nI've seen a couple references to using ipcs to help properly size \nshared_buffers.\n\nI don't claim to be a SA guru, so could someone help explain how to \ninterpret the output of ipcs and how that relates to shared_buffers? How \ndoes one determine the size of the segment arrays? I ... |
[
{
"msg_contents": "> Thanks Magnus,\n> \n> So are we correct to rely on\n> - 8 being slower than 7.x in general and\n> - 8 on Win32 being a little faster than 8 on Cygwin?\n> \n> Will the final release of 8 be faster than the beta?\n\nI'm pretty certain that previous to 8.0 no win32 based postgesql\nproperly sy... |
[
{
"msg_contents": "My basic question to the community is \"is PostgreSQL approximately as fast\nas Oracle?\"\n\nI don't want benchmarks, they're BS. I want a gut feel from this community\nbecause I know many of you are in mixed shops that run both products, or\nhave had experience with both.\n\nI fully intend ... |
[
{
"msg_contents": "Neil wrote:\n\n>. In any case, the \"futex patch\"\n>uses the Linux 2.6 futex API to implement PostgreSQL spinlocks. \n>\nHas anyone tried to replace the whole lwlock implementation with \npthread_rwlock? At least for Linux with recent glibcs, pthread_rwlock is \nimplemented with futexes, i.e... |
[
{
"msg_contents": "\nSeeing as I've missed the last N messages... I'll just reply to this\none, rather than each of them in turn...\n\nTom Lane <tgl@sss.pgh.pa.us> wrote on 16.10.2004, 18:54:17:\n> I wrote:\n> > Josh Berkus writes:\n> >> First off, two test runs with OProfile are available at:\n> >> http://kha... |
[
{
"msg_contents": "Hello !\nWe have difficulties with the use of indexes. For example, we have two \ntables :\n\n * table lnk : \n \nTable \"public.lnk\"\n Column | Type | Modifiers\n--------+-----------------------+-----------\n index | integer | not null\n sgaccn | char... |
[
{
"msg_contents": "Hi,\n \nI have a problem where a query inside a function is up to 100 times slower\ninside a function than as a stand alone query run in psql.\n \nThe column 'botnumber' is a character(10), is indexed and there are 125000\nrows in the table.\n \nHelp please!\n \nThis query is fast:-\n \nexpla... |
[
{
"msg_contents": "nd02tsk@student.hig.se wrote:\n\n>Hello\n>\n>I posted this on the general list but think it would be more appropriate\n>here. Sorry.\n>\n>I know it is possible to time isolated queries through the settting of the\n>\\timing option in psql. This makes PgSQL report the time it took to\n>perform... |
[
{
"msg_contents": "The following is from a database of several hundred million rows of real\ndata that has been VACUUM ANALYZEd.\n\n \n\nWhy isn't the index being used for a query that seems tailor-made for\nit? The results (6,300 rows) take about ten minutes to retrieve with a\nsequential scan.\n\n \n\nA copy ... |
[
{
"msg_contents": "(Why don't replies automatically go to the list?)\n\nSure enough, quoting the constants fixes the problem.\n\nIs it a best practice to always quote constants?\n\n> -----Original Message-----\n> From: Doug Y [mailto:dylists@ptd.net]\n> Sent: Tuesday, October 19, 2004 11:28 AM\n> To: Knutsen, M... |
[
{
"msg_contents": "Hi Folks,\n\nThis is my _4th_ time trying to post this, me and the mailing list software\nare fighting. I think it's because of the attachments so I'll just put\nlinks to them instead. All apologies if this gets duplicated.\n\nI've been having problems maintaining the speed of the database ... |
[
{
"msg_contents": "Hi to all! I have the following query. The execution time is very big, it\ndoesn't use the indexes and I don't understand why...\n\n\nSELECT count(o.id) FROM orders o\n\n INNER JOIN report r ON o.id=r.id_order\n\n INNER JOIN... |
[
{
"msg_contents": "Hello, I've thought it would be nice to index certain aspects of my\napache log files for analysis. I've used several different techniques\nand have something usable now, but I'd like to tweak it one step\nfurther.\n\nMy first performance optimization was to change the logformat into a\nCSV f... |
[
{
"msg_contents": "I'm trying to figure out what I need to do to get my postgres server\nmoving faster. It's just crawling right now. It's on a p4 HT with 2\ngigs of mem.\n\nI was thinking I need to increase the amount of shared buffers, but\nI've been told \"the sweet spot for shared_buffers is usually on the\... |
[
{
"msg_contents": "Hi, \n\nI've after some opinions about insert performance.\n\nI'm importing a file with 13,002 lines to a database that ends up with\n75,703 records across 6 tables. This is a partial file – the real data\nis 4 files with total lines 95174. I'll be loading these files each\nmorning, and then ... |
[
{
"msg_contents": "It doesn't seem to work. I want a time summary at the end. I am inserting\ninsert queries from a file with the \\i option.\n\nThis is the outcome:\n\n[7259] LOG: statement: INSERT INTO weather VALUES ('San Francisco', 46,\n50, 0.25, '1994-11-27');\n[7259] LOG: duration: 1.672 ms\n[7259] LOG... |
[
{
"msg_contents": "Hi List,\n\nI have a Dual-Xeon 3Ghz System with with GB RAM and an Adaptec 212ß SCSI\nRAID with 4 SCA Harddiscs. Our customer wants to have the Machine tuned\nfor best Database performance. Which OS should we used? We are tending\nbetween Linux 2.6 or FreeBSD. The Database Size is 5GB and asc... |
[
{
"msg_contents": "\nHello All,\n\nI have an iostat question in that one of the raid arrays seems to act \ndifferently than the other 3. Is this reasonable behavior for the \ndatabase or should I suspect a hardware or configuration problem? \n\nBut first some background: \nPostgresql 7.4.2 \nLinux 2.4.20, 2GB R... |
[
{
"msg_contents": "Hi All,\n\nI have a table in my postgres:\nTable: doc\n Column | Type | Modifiers \n ---------------+-----------------------------+-----------\n doc_id | bigint | not null\n comp_grp_id | bigint | not null\n... |
[
{
"msg_contents": "I suppose I'm just idly wondering really. Clearly it's against PG\nphilosophy to build an FS or direct IO management into PG, but now it's so\nrelatively easy to plug filesystems into the main open-source Oses, It\nstruck me that there might be some useful changes to, say, XFS or ext3, that\... |
[
{
"msg_contents": "Hiya,\n\nLooking at that list, I got the feeling that you'd want to push that PG-awareness down into the block-io layer as well, then, so as to be able to optimise for (perhaps) conflicting goals depending on what the app does; for the IO system to be able to read the apps mind it needs to ha... |
[
{
"msg_contents": "Hi,\n\nI guess the difference is in 'severe hacking inside PG' vs. 'some unknown amount of hacking that doesn't touch PG code'.\n\nHacking PG internally to handle raw devices will meet with strong resistance from large portions of the development team. I don't expect (m)any core devs of PG wi... |
[
{
"msg_contents": "Hi all,\n\nI'm writing this because I've reached the limit of my imagination and\npatience! So here is it...\n\n2 tables:\n1 containing 27 million variable lenght, alpha-numeric records\n(strings) in 1 (one) field. (10 - 145 char lenght per record)\n1 containing 2.5 million variable lenght, a... |
[
{
"msg_contents": "I'm seeing some weird behavior on a repurposed server that was wiped \nclean and set up to run as a database and application server with \npostgres and Apache, as well as some command-line PHP scripts.\n\nThe box itself is a quad processor (2.4 GHz Intel Xeons) Debian woody \nGNU/Linux (2.... |
[
{
"msg_contents": "Hello everyone,\n\nI am currently working on a data project that uses PostgreSQL\nextensively to store, manage and maintain the data. We haven't had\nany problems regarding database size until recently. The three major\ntables we use never get bigger than 10 million records. With this\nsiz... |
[
{
"msg_contents": "I've been using the ARC debug options to analyse memory usage on the\nPostgreSQL 8.0 server. This is a precursor to more complex performance\nanalysis work on the OSDL test suite.\n\nI've simplified some of the ARC reporting into a single log line, which\nis enclosed here as a patch on freeli... |
[
{
"msg_contents": "The following query has never finished. I have let it run for over 24 \nhours. This is a one time update that is part of a conversion script \nfrom MSSQL data. All of the tables are freshly built and inserted \ninto. I have not run explain analyze because it does not return in a \nreasona... |
[
{
"msg_contents": "I haven't read much FAQs but has anyone done some benchmarks with\ndifferent io schedulers in linux with postgresql?\n\nLook at these:\nhttp://kerneltrap.org/node/view/843\nhttp://simonraven.nuit.ca/blog/archives/2004/05/20/quikconf/\n\n\nMaybe its well known knowledge but i just found this i... |
[
{
"msg_contents": "Hi, \n \nHas anybody got any ideas on my recent posting ? (thanks in advance) :-\n \n \nI have a problem where a query inside a function is up to 100 times slower\ninside a function than as a stand alone query run in psql.\n \nThe column 'botnumber' is a character(10), is indexed and there ar... |
[
{
"msg_contents": "Rod Dutton wrote:\n> Thank John,\n> \n> I am running Postgres 7.3.7 on a Dell PowerEdge 6600 Server with Quad Xeon\n> 2.7GHz processors with 16GB RAM and 12 x 146GB drives in Raid 10 (OS, WAL,\n> Data all on separate arrays).\n> \n\nYou might want think about upgraded to 7.4, as I know it is ... |
[
{
"msg_contents": "Rod Dutton wrote:\n> I also should add that the sp is only slow when the table is big (probably\n> obvious!).\n> \n> Rod \n\nSure, the problem is it is switching to a sequential search, with a lot \nof rows, versus doing an indexed search.\n\nIt's all about trying to figure out how to fix tha... |
[
{
"msg_contents": "I was looking into another problem, and I found something that surprised \nme. If I'm doing \"SELECT * FROM mytable WHERE col = 'myval' LIMIT 1.\".\nNow \"col\" is indexed, by mytable has 500,000 rows, and 'myval' occurs \nmaybe 100,000 times. Without the LIMIT, this query should definitely d... |
[
{
"msg_contents": "Hi,\n \nI have had some performance problems recently on very large tables (10s of\nmillions of rows). A vacuum full did make a large improvement and then\ndropping & re-creating the indexes also was very beneficial. My performance\nproblem has now been solved.\n \nMy question is: will usin... |
[
{
"msg_contents": "Hi,\n\n \n\nI am dealing with an app here that uses pg to handle a few thousand\nconcurrent web users. It seems that under heavy load, the INSERT and\nUPDATE statements to one or two specific tables keep queuing up, to the\ncount of 150+ (one table has about 432K rows, other has about 2.6Mill... |
[
{
"msg_contents": ">>Eliminate that contention point, and you will have solved your problem.\n\nI agree, If your updates are slow then you will get a queue building up. \n\nMake sure that:-\n1) all your indexing is optimised.\n2) you are doing regular vacuuming (bloated tables will cause a slow down\ndue to s... |
[
{
"msg_contents": "Hi all,\n\nI am (stilll) converting a database from a Clarion Topspeed database to Postgresql 7.4.5 on Debian Linux 2.6.6-1. The program that uses the database uses a query like \"select * from table\" to show the user the contents of a table. This query cannot be changed (it is generated by ... |
[
{
"msg_contents": "It probably is locking issue. I got a long list of locks held when we ran select * from pg_locks during a peak time.\n\nrelation | database | transaction | pid | mode | granted \n----------+----------+-------------+-------+------------------+---------\n 17239 | 17142 | ... |
[
{
"msg_contents": "None of the locks are in state false actually.\n\nI don't have iostat on that machine, but vmstat shows a lot of writes to\nthe drives, and the runnable processes are more than 1:\n\nprocs memory swap io system\ncpu\n r b swpd free buff cache s... |
[
{
"msg_contents": "Andrew/Josh,\n\nJosh also suggested to check for any FK/referential integrity checks,\nbut I am told that we don't have any foreign key constraints.\n\nThanks,\nanjan\n\n-----Original Message-----\nFrom: Andrew McMillan [mailto:andrew@catalyst.net.nz] \nSent: Tuesday, October 26, 2004 4:51 PM... |
[
{
"msg_contents": "That is 1 or maybe 2 second interval.\n\nOne thing I am not sure is why 'bi' (disk writes) stays at 0 mostly,\nit's the 'bo' column that shows high numbers (reads from disk). With so\nmany INSERT/UPDATEs, I would expect it the other way around...\n\n-anjan\n\n\n\n-----Original Message-----\nF... |
[
{
"msg_contents": "It just seems that the more activity there is (that is when there's a\nlot of disk activity) the checkpoints happen quicker too.\n\nHere's a snapshot from the /var/log/messages - \n\nOct 26 17:21:22 vl-pe6650-003 postgres[13978]: [2-1] LOG: recycled\ntransaction\nlog file \"0000000B0000007E\... |
[
{
"msg_contents": "Ok, i was thinking from the disk perspective. Thanks!\r\n\r\n\t-----Original Message----- \r\n\tFrom: Tom Lane [mailto:tgl@sss.pgh.pa.us] \r\n\tSent: Tue 10/26/2004 6:37 PM \r\n\tTo: Anjan Dave \r\n\tCc: Matt Clark; Rod Taylor; Postgresql Performance \r\n\tSubject: Re: [PERFORM] can't handle ... |
[
{
"msg_contents": "Josh,\r\n \r\nI have increased them to 30, will see if that helps. Space is not a concern. slightly longer recovery time could be fine too. Wonder what people use (examples) for this value for high volume databases (except for dump/restore)...?\r\n \r\nI don't know what is checkpoint_sibling.... |
[
{
"msg_contents": "Hello!\n\n My name is TTK, and I'm a software engineer at the Internet Archive's \nData Repository department. We have recently started using postgresql \nfor a couple of projects (we have historically been a MySQL outfit), \nand today my co-worker noticed psql eating memory like mad when i... |
[
{
"msg_contents": "I would like to thank everyone for their timely suggestions.\n\n \n\nThe problem appears to be resolved now. We verified/modified -\nlocking/indexes/vacuum/checkpoints/IO bottleneck/queries, etc.\n\n \n\nCouple significant changes were the number of checkpoint segments were\nincreased, and w... |
[
{
"msg_contents": "Pg: 7.4.5\n8G ram\n200G RAID5\n\nI have my fsm set as such:\nmax_fsm_pages = 300000 # min max_fsm_relations*16, 6 bytes each\nmax_fsm_relations = 500 # min 100, ~50 bytes each\n\n\nI just did a vacuum full on one table and saw this result:\nINFO: analyzing \"cdm.cdm_fed_agg... |
[
{
"msg_contents": "\n\nHi ,\n\nGist indexes take a long time to create as compared\nto normal indexes is there any way to speed them up ?\n\n(for example by modifying sort_mem or something temporarily )\n\nRegds\nMallah.\n",
"msg_date": "Mon, 1 Nov 2004 02:33:10 +0530 (IST)",
"msg_from": "mallah@trade-i... |
[
{
"msg_contents": "Hello,\n\n \n\nI am trying to understand the output of the 'ipcs' command during peak\nactivity and how I can use it to possibly tune the shared_buffers...\n\n \n\nHere's what I see right now: (ipcs -m) - (Host is RHAS 3.0)\n\n \n\n------ Shared Memory Segments --------\n\nkey shmid ... |
[
{
"msg_contents": "Hi,\n\nI have some views that are used to make some queries simplest. But when\nI use them there is a performance loss, because the query don't use\nindexes anymore. Below I'm sending the query with and without the view,\nits execution times, explains and the view's body. I didn't understood\... |
[
{
"msg_contents": "Is there a way to restrict how much load a PostgreSQL server can take \nbefore dropping queries in order to safeguard the server? I was \nlooking at the login.conf (5) man page and while it allows me to limit \nby processor time this seems to not fit my specific needs.\n\nEssentially, I am... |
[
{
"msg_contents": "I am working with some pretty convoluted queries that work very slowly the\nfirst time they're called but perform fine on the second call. I am fairly\ncertain that these differences are due to the caching. Can someone point me\nin a direction that would allow me to pre-cache the critical ind... |
[
{
"msg_contents": "Greetings pgsql-performance :)\n\nYesterday I posted to the pgsql-sql list about an issue with VACUUM\nwhile trying to track-down an issue with performance of a SQL SELECT\nstatement invovling a stored function. It was suggested that I bring\nthe discussion over to -performance.\n\nInstread ... |
[
{
"msg_contents": "Hello !\n\nSorry if this has been discussed before, it is just hard to find in the \narchives using the words \"or\" or \"in\" :-o\n\nI use postgres-8.0 beta4 for windows.\nI broke down my problem to a very simple table - two columns \n\"primary_key\" and \"secondary_key\". Creates and Insert... |
[
{
"msg_contents": "Hi,\n\nI have a very tricky situation here. A client bought a Dell dual-machine\nto be used as Database Server, and we have a cheaper machine used in\ndevelopment. With identical databases, configuration parameters and\nrunning the same query, our machine is almost 3x faster.\n\nI tried to in... |
[
{
"msg_contents": "Hello,\nI am seeking some advice on appropriate indexing. I think I have a rough \nidea where to place my indices but would be grateful for some tips from \nmore experienced people.\nThe following example shows what is probably the most complex query of \nthe application.\n\nA few points to g... |
[
{
"msg_contents": "Hi all,\n I have a table which have more than 200000 records. I need to get\nthe records which matches like this\n\nwhere today::date = '2004-11-05';\n\nThis is the only condition in the query. There is a btree index on the\ncolumn today.\nIs there any way to optimise it.\n\nrgds\nAntony Pa... |
[
{
"msg_contents": "To what extent would your problems be solved by having a 2nd server, a replication system (such as slony-1, but there are others), and some sort of load-balancer in front of it? The load-balancing could be as simple as round-robin DNS server, perhaps...\n\nThen when you need to do maintenance... |
[
{
"msg_contents": "Hey people, long while since I posted here, but I'm having an index\nissue that looks on the surface to be a little strange.\n\nI have a text field that I'm trying to query on in a table with\nmillions of rows. Stupid I know, but a fairly common stupid thing to\ntry to do.\n\nFor some reason... |
[
{
"msg_contents": "Does anybody have any experiences with postgresql 7.4+ running on amd-64\nin 64 bit mode? Specifically, does it run quicker and if so do the\nperformance benefits justify the extra headaches running 64 bit linux?\n\nRight now I'm building a dual Opteron 246 with 4 gig ddr400. \n\nMerlin\n",... |
[
{
"msg_contents": "To me, these three queries seem identical... why doesn't the first one\n(simplest to understand and write) go the same speed as the third one?\n\nI'll I'm trying to do is get statistics for one day (in this case,\ntoday) summarized. Table has ~25M rows. I'm using postgres 7.3.? on\nrh linux... |
[
{
"msg_contents": "Just wanted to know if there were any insights after looking at\nrequested 'explain analyze select ...'?\n\n\nThanks,\n--patrick\n\n\n\t\t\n__________________________________ \nDo you Yahoo!? \nCheck out the new Yahoo! Front Page. \nwww.yahoo.com \n \n\n",
"msg_date": "Fri, 5 Nov 2004 10:... |
[
{
"msg_contents": "Hi guys,\n\n I have been given a dual PIII with 768MB RAM and I am going to install \nPostgreSQL on it, for data warehousing reasons. I have also been given four \n160 Ultra SCSI disks (36MB each) with a RAID controller (Adaptec 2100). I \nam going to use a RAID5 architecture (this gives m... |
[
{
"msg_contents": "> I have two dual opteron 248's with 4g of ram each, 6x36G 15k rpm ultra\n> 320 scsi disks in hardware raid 5, and they are by far the fastest\n> machines I've user used. As far as this \"headache\" of using 64 bit\n> Linux, I've experienced no such thing. I'm using gentoo on both\n> machines... |
[
{
"msg_contents": "Hi everyone,\n\nSome more data I've collected, trying to best tune dbt-2 with\n8.0beta4. Was hoping for some suggestions, explanations for what I'm\nseeing, etc.\n\nA review of hardware I've got:\n\n4 x 1.5Ghz Itanium 2\n16GB memory\n84 15K RPM disks (6 controlers, 12 channels)\n\nPhysical D... |
[
{
"msg_contents": "Looking around at the pg_ tables and some PostgreSQL online\ndocs prompted by another post/reply on this list regarding\nALERT TABLE SET STATISTICS i found out that prior to a VACUUM\nthe following select (taken from the online docs) shows:\n\npkk=# select relname, relkind, reltuples, relpage... |
[
{
"msg_contents": "I have migrated a database from MS SQL to a\npostgresSQL database, but when running it, the results\nare very slow (and unusable) which is the only reason\nwe don't entirely move to postgresSQL.\nThe problem is that there are many nested views which\nnormally join tables by using two fields, ... |
[
{
"msg_contents": "Is \n\nSELECT DISTINCT foo, bar FROM baz;\n\nequivalent to\n\nSELECT foo, bar from baz GROUP BY foo, bar;\n\n?\n\nIn the former case, pgsql >= 7.4 does not use HashAgg, but uses it for\nthe latter case. In many circumstances, esp. for large amount of data\nin the table baz, the second case is... |
[
{
"msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nWe have two tables, dst_port_hour and dst_port_day, which should be \nvery similar, they both have about 50.000.000 rows. In both tables we \nhave an index for period_id.\n\nWe run postgresql 7.4.5 on a dedicated Debian server, with dual In... |
[
{
"msg_contents": "The ext3fs allows to selet type of journalling to be used with\nfilesystem. Journalling pretty much \"mirrors\" the work of WAL\nlogging by PostgreSQL... I wonder which type of journalling\nis best for PgSQL in terms of performance.\nChoices include:\n journal\n ... |
[
{
"msg_contents": "> > Good, I'll give it a shot and see what I come up with...thx.\n> >\n> Do share your experience with us.\n\nWill do. I have to ship the server on Friday, and the parts are on\norder. If they come today, I'll have time to test Gentoo, Redhat 32/64,\nand win32 by then. If I can't get it bu... |
[
{
"msg_contents": "Greetings all,\n\nThis question has probably been asked many times, but I was unable to \nuse the list archives to search, since the term \"Group\" matches \nthousands of of messages with the names of user groups in them... so \nsorry if I'm repeating!\n\nHere's the problem: I have a tabl... |
[
{
"msg_contents": "Thanks in advance for anything you can do to help.\n\n\nThe real issue is this, we have THE SAME queries taking anywhere from .001 - \n90.0 seconds... the server is using 98% of the available RAM at all times \n(because of the persistant connections via php), and I don't know what to \ndo. E... |
[
{
"msg_contents": "I'm wondering if there's any way I can tweak things so that the estimate\nfor the query is more accurate (I have run analyze):\n\n QUERY PLAN ... |
[
{
"msg_contents": "Hi all\n\nI have a table with ca. 4Mio Rows.\n\nhere is my simple select-statement:\nSELECT * FROM CUSTOMER WHERE CUSTOMER_ID=5\n\nthe result appears after about 27 sec.\n\nwhat's wrong?\n\nthe same statement on mysql takes 1 milisec.\n\nplease help\n\nhere is the structur of the table\nCREAT... |
[
{
"msg_contents": "Hi,\n\nTry using parametrized prepared statements, does that make a difference? Or does PGSQL jdbc not support them in your version?\n\n--Tim\n\n\n-----Original Message-----\nFrom: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org]On Behalf Of Michael Kleis... |
[
{
"msg_contents": "I'm looking for suggestions on tuning Solaris 9 for a SunFire 890 (Ultra\nIV chips) connected to an Hitachi 9500V running PostgreSQL 7.4.\n\nSo that I don't lead people in a direction, I'll hold off for a while\nbefore posting our configuration settings.\n\nDatabase is approx 160GB in size wi... |
[
{
"msg_contents": "I'm looking for suggestions on tuning Solaris 9 for a SunFire 890 (Ultra\nIV chips) connected to an Hitachi 9500V running PostgreSQL 7.4.\n\nDatabase is approx 160GB in size with a churn of around 4GB per day (2\nGB updated, 2GB inserted, very little removed). It's a mixture of OLTP\nand rep... |
[
{
"msg_contents": "Hello all,\n\nI am using tsearch2 to (imagine this... :) index a text field. There\nis also a, for lack of a better name, \"classification\" field called\n'field' that will be used to group certain rows together.\n\nCREATE TABLE biblio.metarecord_field_entry (\n record BIGINT... |
[
{
"msg_contents": "Mike Rylander wrote:\n\n> I want to create a multi-column index across the tsvector and classification\n> columns as that should help with selectivity. But because there is no\n> GiST opclass for INT4 the index creation complains thusly:\n\nInstall contrib/btree_gist along with contrib/tsear... |
[
{
"msg_contents": "Folks,\n\nWanted to get clarification on two bits of output from 7.4's VACUUM FULL \nVERBOSE:\n\n\"Total free space (including removable row versions) is 2932036 bytes.\"\nIf the table referenced has no dead row versions, does this indicate open \nspace on partially full pages?\n\n\"There wer... |
[
{
"msg_contents": "Hello to all,\n\nI am new to this group and postgresql. I am working on\na project which uses postgresql and project is time\ncritical. We did all optimization in our project but\npostgresql seems to be a bottle-neck. To solve this we\nrun the database operations in a different thread. But\ns... |
[
{
"msg_contents": "I just finished upgrading the OS on our Opteron 148 from Redhat9 to \nFedora FC2 X86_64 with full recompiles of Postgres/Apache/Perl/Samba/etc.\n\nThe verdict: a definite performance improvement. I tested just a few CPU \nintensive queries and many of them are a good 30%-50% faster. \nTransac... |
[
{
"msg_contents": "Vivek,\n\nI ran into the exact same problem you did. I tried many, many changes to\nthe conf file, I tried O.S. tuning but performance stunk. I had a fairly\nsimple job that had a lot of updates and inserts that was taking 4 1/2\nhours. I re-wrote it to be more \"Postgres friendly\" - mean... |
[
{
"msg_contents": "Good day,\n\nI use pgsql 7.4: I would like to know if indexes will solve my problem\n(I fear the system will become slow with the time). And also some\nquestions on how pgsql optimise for speed.\n\n*Database*\n\n-- Assuming those tables (not original, but enought to get the point):\n\nCREATE ... |
[
{
"msg_contents": "Hi,\n\nI have a strange (for me) result ... Why the second request is really quicker \nwith a Seq Scan than the first one with a DISTINCT and using an index !?\n\nThe table have really 183957 rows ... not like the Seq Scan seems to \nexpect ... !? I understand nothing here ...\n\nThanks for y... |
[
{
"msg_contents": "I'm just currious about which is the best, if I have many query based\non the first one:\n\n-- suppose this view (used many times):\nCREATE VIEW prod.alljobs_view AS\n SELECT *\n FROM prod.jobs\n LEFT JOIN prod.jobs_products ON jobs.job_id = jobs_products.job_id;\n\n-- suppose this other... |
[
{
"msg_contents": "\nI've have a miniature data-warehouse in which I'm trying to rebuild\npre-calcuated aggregate data directly in the database and I'm geting some\npoor plans due to a bad mis-estimation of the number of rows involved.\n\nIn a standard star schema I have a sales fact table and dimensions\nprodu... |
[
{
"msg_contents": "Hi,\n\nI'm completly dispointed with Tsearch2 ...\n\nI have a table like this :\n Table \"public.site\"\n Column | Type | \nModifiers\n---------------+-----------------------------+---------------... |
[
{
"msg_contents": "I have a table that has 2 columns of an OID type. I would like to issue\na truncate table command but my understanding is that the data pointed\nto by the OIDs is not removed and orphaned. What would be the most\nefficient way to truncate the table and not have orphaned data?\n \nThanks\n \... |
[
{
"msg_contents": "Hello,\n\nI build two SELECT queries, and in one I used COALESCE with a CASE,\nand in the second one I used only CASE statements.\n\nWhen analysing, I'm getting the exact same result, except the cost.\n(For now I have so few data that the results are too fragmented.\n\nIf the plans for both q... |
[
{
"msg_contents": "I have a query for which postgres is generating a different plan on different machines. The database schema is the same, the dataset is the same, the configuration is the same (e.g., pg_autovacuum running in both cases), both systems are Solaris 9. The main difference in the two systems is th... |
[
{
"msg_contents": "http://pugs.postgresql.org/sfpug/archives/000021.html\n\nI noticed that some of you left coasters were talking about memcached\nand pgsql. I'm curious to know what was discussed.\n\nIn reading about memcached, it seems that many people are using it to\ncircumvent the scalability problems of M... |
[
{
"msg_contents": "I've read the previous thread on the list regarding partitioning\nmechanisms and I just wrote a plpgsql function to create the partition\ntables (by date) as well as another function used to do the insert (it\ndetermines which table will be inserted).\n\nThe creation of the partition tables u... |
[
{
"msg_contents": "Oh, I didn't realize that analyze gave that much more info. I've got a\nlot to learn about this tuning stuff ;-) \n\nI've attached the output. I see from the new output where the slow query\nis taking its time (the nested loop at line 10), but I still have no\nidea why this plan is getting ch... |
[
{
"msg_contents": ">If they are the same and PostgreSQL are the same, are the \n>intel machines Xeons?\n\nYup, dual 3.06-GHz Intel Xeon Processors.\n\nI'm not sure off the top of my head what the sparcs are exactly. We're\nin the process of moving completely to intel, but we still have to\nsupport our app on sp... |
[
{
"msg_contents": "I've got pg_autovacuum running on both platforms. I've verified that the\ntables involved in the query have the same number of rows on both\ndatabases.\n\nI'm not sure where to look to see how the stats might be different. The\n\"good\" database's pg_statistic table has 24 more rows than that... |
[
{
"msg_contents": "Hmm, I'm really a beginner at this...\n\nIt turns out that the pg_statistic table in my good database has records\nin it for the tables in the query, while the pg_statistic table in my\nbad database has no records for those tables at all!\n\nSo I guess I need to figure out why pg_autovacuum i... |
[
{
"msg_contents": "We're using postgresql 7.4.5. I've only recently put pg_autovacuum in\nplace as part of our installation, and I'm basically taking the\ndefaults. I doubt it's a problem with autovacuum itself, but rather with\nmy configuration of it. I have some reading to do, so any pointers to\nexisting aut... |
[
{
"msg_contents": "Well based on the autovacuum log that you attached, all of those tables \nare insert only (at least during the time period included in the log. \nIs that correct? If so, autovacuum will never do a vacuum (unless \nrequired by xid wraparound issues) on those tables. So this doesn't \nappea... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.