threads listlengths 1 275 |
|---|
[
{
"msg_contents": "Is this advisable? The disks are rather fast (15k iirc) but somehow I \ndon't think they are covered in whatever magic fairy dust it would \nrequire for a sequential read to be as fast as a random one. However \nI could be wrong, are there any circumstances when this is actually \ngoing t... |
[
{
"msg_contents": "Hi All,\n\nNot sure if this is correct fix or not, but a bit of research :\nhttp://archives.postgresql.org/pgsql-hackers/2001-04/msg01129.php\nAnd offical doco's from postgres :\nhttp://www.postgresql.org/docs/7.4/static/wal-configuration.html\nLead me to try :\nwal_sync_method = open_sync\nA... |
[
{
"msg_contents": "Hi,\n\ni'm trying this too :). My Dump (IN) is about 84 minutes. Now\ni'm testing how much time takes it with open_sync :). I'm \nanxious about the new results :).\n\nbest regards,\n\npingufreak\n\n\nAm Freitag, den 10.06.2005, 15:33 +0930 schrieb Steve Pollard:\n> Hi All,\n> \n> Not sure if ... |
[
{
"msg_contents": "I managed, by extensive usage of temporary tables, to totally bloat \npg_attribute. It currently has about 40000 pages with just 3000 tuples. \nThe question is, how to restore it to it's former beauty? With ordinary \ntable I'd just CLUSTER it, but alas! I cannot do that with system \ncatalog... |
[
{
"msg_contents": "Richard, \n\nthanks for info. \n\n\"...the RH supplied Postgres binary has issues...\"\n\nWould you have the time to provide a bit more info?\nVersion of PG? Nature of issues? Methods that resolved?\n\nThanks again, \n\n-- Ross\n\n-----Original Message-----\nFrom: pgsql-performance-owner@post... |
[
{
"msg_contents": "[linux@alteeve.com - Fri at 12:10:19PM -0400]\n> tle-bu=> EXPLAIN ANALYZE SELECT file_type, file_parent_dir, file_name FROM\n> file_info_7;\n> QUERY PLAN\n> ------------------------------------------------------------------------------------------------... |
[
{
"msg_contents": "Hi-\n\nWould someone please enlighten me as\nto why I'm not seeing a faster execution\ntime on the simple scenario below?\n\nthere are 412,485 rows in the table and the\nquery matches on 132,528 rows, taking\nalmost a minute to execute. vaccuum\nanalyze was just run.\n\nThanks!\nClark\n\n ... |
[
{
"msg_contents": "With your current (apparently well-normalized) schema, I don't see how\nyou can get a better query plan than that. There may be something you\ncan do in terms of memory configuration to get it to execute somewhat\nfaster, but the only way to make it really fast is to de-normalize. \nThis is ... |
[
{
"msg_contents": "Hi,\n\nI'm trying to update a table that has about 600.000 records.\nThe update query is very simple : update mytable set pagesdesc = - \npages ;\n\n(I use pagesdesc to avoid problems with sort that have one field in \nascending order and one in descending order. That was a problem I had... |
[
{
"msg_contents": "I've got a list of old resource requirements.\nI want to know how far off they are and if anything\ncrucial is missing. My usual recommendation is\n\"as much as you can afford\" so I don't usually deal\nwith real numbers :)\n\nRAM:\n Number of connections * 2MB\nDisk:\n Program... |
[
{
"msg_contents": "Hi,\n\nI have a view that has something like this: select x, y, z from tbl \norder by x, y\nI have created a special index on x + y\nI have run analyze\n\nStill, when I use explain, pg says it will first sort my tables instead \nof using my index\nHow is that possible ?\n\nWhen I do explai... |
[
{
"msg_contents": ">\n> I have started this on my testmachine at 11h20. It's still running \n> and here it's 13h40.\n>\n> Setup:\n> Intel P4 2Ghz, 1 Gb ram\n> ReiserFS 3 (with atime in fstab, which is not optimal)\n> Slackware 10\n> PG 7.4\n>\n> I have the same problems on my OSX and other test machines.\n>\n>... |
[
{
"msg_contents": "We have two index's like so\n\nl1_historical=# \\d \"N_intra_time_idx\"\n Index \"N_intra_time_idx\"\nColumn | Type\n--------+-----------------------------\ntime | timestamp without time zone\nbtree\n\n\nl1_historical=# \\d \"N_intra_pkey\"\n Index \"N_intra_pkey\... |
[
{
"msg_contents": "I've done a lot of work with a bookkeeping system where we have such\nredundancy built in. The auditors, however, need to be able to generate\nlists of the financial transaction detail to support balances. These\nreports are among the most demanding in the system. I shudder to think\nhow u... |
[
{
"msg_contents": "It sure would be nice if the optimizer would consider that it had the\nleeway to add any column which was restricted to a single value to any\npoint in the ORDER BY clause. Without that, the application programmer\nhas to know what indexes are on the table, rather than being able to\njust wo... |
[
{
"msg_contents": "I forgot cc\n\nBegin forwarded message:\n\n> From: Yves Vindevogel <yves.vindevogel@implements.be>\n> Date: Mon 13 Jun 2005 17:45:19 CEST\n> To: Tom Lane <tgl@sss.pgh.pa.us>\n> Subject: Re: [PERFORM] Updates on large tables are extremely slow\n>\n> Yes, but if I update one column, why should ... |
[
{
"msg_contents": "I agree that ignoring useless columns in an ORDER BY clause is less\nimportant than ignoring index columns where the value is fixed. There\nis one use case for ignoring useless ORDER BY columns that leaps to\nmind, however -- a column is added to the ORDER BY clause of a query to\nhelp out t... |
[
{
"msg_contents": "On Mon, Jun 13, 2005 at 11:46:46 -0500,\n Kevin Grittner <Kevin.Grittner@wicourts.gov> wrote:\n> I agree that ignoring useless columns in an ORDER BY clause is less\n> important than ignoring index columns where the value is fixed. There\n> is one use case for ignoring useless ORDER BY colu... |
[
{
"msg_contents": "Hi All,\n\nWe are looking to upgrade to 8.0 from 7.3.2 on production server. The current production system we are using is \n\n----------------------------------------\n\n2 x 2.4 Ghz Intel Xeon CPU with HT(4 virtual CPUs)\n\nRAM - 1GB\n\nHDD - 34GB SCSI\n\n------------------------------------... |
[
{
"msg_contents": "I search for particular strings using regular expressions (e.g. where\ncolumn ~* $query) through a text data type column which contains notes\n(some html code like <b>bold</b> is included).\n\nIt works but my question is whether there would be a way to speed up\nsearches?\n\n From my limited ... |
[
{
"msg_contents": "Hi All,\n\nI previously posted the following as a sequel to my SELECT DISTINCT \nPerformance Issue question. We would most appreciate any clue or \nsuggestions on how to overcome this show-stopping issue. We are using 8.0.3 \non Windows.\n\nIs it a known limitation when using a view with SELE... |
[
{
"msg_contents": "I deeply apologize if this has been covered with some similar topic \nbefore, but I need a little guidance in the optimization department. \nWe use Postgres as our database and we're having some issues dealing \nwith customers who are, shall we say, \"thrifty\" when it comes to \nbuying R... |
[
{
"msg_contents": "Hi All,\n\nI have an app that updates a PostgreSQL db in a batch fashion. After\neach batch (or several batches), it issues VACUUM and ANALYZE calls on\nthe updated tables. Now I want to cluster some tables for better\nperformance. I understand that doing a VACUUM and a CLUSTER on a table\... |
[
{
"msg_contents": "Hi All,\n\nI have an app that updates a PostgreSQL db in a batch fashion. After each batch (or several batches), it issues VACUUM and ANALYZE calls on the updated tables. Now I want to cluster some tables for better performance. I understand that doing a VACUUM and a CLUSTER on a table is was... |
[
{
"msg_contents": "Hey,\n\nHow does Postgres (8.0.x) buffer changes to a database within a \ntransaction? I need to insert/update more than a thousand rows (mayde \neven more than 10000 rows, ~100 bytes/row) in a table but the changes \nmust not be visible to other users/transactions before every row is \nupdat... |
[
{
"msg_contents": "I have 6 Windows PC in a test environment accessing a very small Postgres DB\non a 2003 Server. The PC's access the database with a cobol app via ODBC.\n3 of the PC's operate very efficiently and quickly. 3 of them do not. The\n3 that do not are all new Dell XP Pro with SP2. They all prod... |
[
{
"msg_contents": "Justin wrote:\nI have 6 Windows PC in a test environment accessing a very small Postgres DB on a 2003 Server. The PC's access the database with a cobol app via ODBC. 3 of the PC's operate very efficiently and quickly. 3 of them do not. The 3 that do not are all new Dell XP Pro with SP2. ... |
[
{
"msg_contents": "Hi,\n\nWe are looking to build a new machine for a big PG database.\nWe were wondering if a machine with 5 scsi-disks would perform better \nif we use a hardware raid 5 controller or if we would go for the \nclustering in PG.\nIf we cluster in PG, do we have redundancy on the data like in a R... |
[
{
"msg_contents": "Ok, I will hate that day, but it's only 6 months\n\nBegin forwarded message:\n\n> From: Vivek Khera <vivek@khera.org>\n> Date: Fri 17 Jun 2005 23:26:43 CEST\n> To: Yves Vindevogel <yves.vindevogel@implements.be>\n> Subject: Re: [PERFORM] Multiple disks: RAID 5 or PG Cluster\n>\n>\n> On Jun 17... |
[
{
"msg_contents": "BTW, tnx for the opinion ...\nI forgot to cc list ...\n\n\nBegin forwarded message:\n\n> From: Yves Vindevogel <yves.vindevogel@implements.be>\n> Date: Fri 17 Jun 2005 23:29:32 CEST\n> To: mudfoot@rawbw.com\n> Subject: Re: [PERFORM] Multiple disks: RAID 5 or PG Cluster\n>\n> Ok, striping is a... |
[
{
"msg_contents": "cc ...\n\nBegin forwarded message:\n\n> From: Yves Vindevogel <yves.vindevogel@implements.be>\n> Date: Sat 18 Jun 2005 18:18:53 CEST\n> To: PFC <lists@boutiquenumerique.com>\n> Subject: Re: [PERFORM] Multiple disks: RAID 5 or PG Cluster\n>\n> There's a basic difference between striping (raid ... |
[
{
"msg_contents": "Hi, i'm trying to optimise our autovacuum configuration so that it \nvacuums / analyzes some of our larger tables better. It has been set \nto the default settings for quite some time. We never delete \nanything (well not often, and not much) from the tables, so I am not \nso worried abo... |
[
{
"msg_contents": "I've got some queries generated by my application that will, for some \nreason, run forever until I kill the pid. Yet, when I run the \nqueries manually to check them out, they usually work fine. To get \nmore information about these queries, I'm writing a utility to take \nsnapshots of... |
[
{
"msg_contents": "Hi,\n \nI have a table with two indices on the same column, one of which is a partial index. I would like the query planner to use the partial index whenever the query condition lies in the range of the partial index as it would yield better performance. Is there any way to enforce the orderi... |
[
{
"msg_contents": "Hi,\n \nI have a table with two indices on the same column, one of which is a partial index. I would like the query planner to use the partial index whenever the query condition lies in the range of the partial index as it would yield better performance. Is there any way to enforce the orderi... |
[
{
"msg_contents": "Hi all,\n\nI have like a repository table with is very very huge with atleast a few\nhundreds of millions, may be over that. The information is stored in form of\nrows in these tables. I need to make that information wide based on some\ngrouping and display them as columns on the screen.\n\nI... |
[
{
"msg_contents": "Hi,\n\nI have a very simple query on a big table. When I issue a \"limit\" \nand/or \"offset\" clause, the query is not using the index.\nCan anyone explain me this ?\n\nrvponp=# explain select * from tblprintjobs order by loginuser, \ndesceventdate, desceventtime offset 25 limit 25 ;\n ... |
[
{
"msg_contents": "After I sent out this email, I found this article from google\n\nhttp://jonathangardner.net/PostgreSQL/materialized_views/matviews.html\n\nLooks like we can control as to when the views refresh... I am still kind of\nconfused, and would appreciate help !!\n\nThe create/drop table does sound a... |
[
{
"msg_contents": "Hi,\n\nI have another question regarding indexes.\n\nI have a table with a lot of indexes on it. Those are needed to \nperform my searches.\nOnce a day, a bunch of records is inserted in my table.\n\nSay, my table has 1.000.000 records and I add 10.000 records (1% new)\nWhat would be faster.... |
[
{
"msg_contents": "First of all, thanks to everyone for helping me !\n\nLooks like materialized views will be my answer.\n\nLet me explain my situation a little better. \n\nThe repository table looks like this -\n\ncreate table repository (statName varchar(45), statValue varchar(45),\nmetaData varchar(45));\n\n... |
[
{
"msg_contents": "My Dual Core Opteron server came in last week. I tried to do some \nbenchmarks with pgbench to get some numbers on the difference between \n1x1 -> 2x1 -> 2x2 but no matter what I did, I kept getting the same TPS \non all systems. Any hints on what the pgbench parameters I should be using?\n\n... |
[
{
"msg_contents": "I had a similar experience. \n\nregardless of scaling, etc, I got same results. almost like flags\nare not active. \n\ndid\n\npgbench -I template1\nand\npgbench -c 10 -t 50 -v -d 1 \n\nand played around from there....\n\nThis is on IBM pSeries, AIX5.3, PG8.0.2\n\n-----Original Message-----\nF... |
[
{
"msg_contents": "Folks,\n\nOK, I've checked in my first code module and the configurator project is \nofficially launched. Come join us at \nwww.pgfoundry.org/projects/configurator\n\nFurther communications will be on the Configurator mailing list only.\n\nfrom the spec:\n\nWhat is the Configurator, and Why ... |
[
{
"msg_contents": "Hello!\n\nI use FreeBSD 4.11 with PostGreSQL 7.3.8.\n\nI got a huge database with roughly 15 million records. There is just one\ntable, with a time field, a few ints and a few strings.\n\n\ntable test\nfields time (timestamp), source (string), destination (string), p1 (int),\np2 (int)\n\n\nI ... |
[
{
"msg_contents": "Hello!\n\nI use FreeBSD 4.11 with PostGreSQL 7.3.8.\n\nI got a huge database with roughly 19 million records. There is just one\ntable, with a time field, a few ints and a few strings.\n\n\ntable test\nfields time (timestamp), source (string), destination (string), p1 (int),\np2 (int)\n\n\nI ... |
[
{
"msg_contents": "I'm hoping someone can offer some advice here.\n I have a large perl script that employs prepared statements to do all its \nqueries. I'm looking at using stored procedures to improve performance times \nfor the script. Would making a stored procedure to replace each prepared \nstatement be w... |
[
{
"msg_contents": "I just tried this on 8.0.3. A query which runs very fast through an\nindex on a 25 million row table blocked when I dropped the index within\na database transaction. As soon as I rolled back the database\ntransactiton, the query completed, the index appears fine, and the query\nruns fast, a... |
[
{
"msg_contents": "Greg,\n\n> Not sure how far along you are, but I've been writing some really nifty\n> extensions to DBD::Pg that allow easy querying of all the current\n> run-time settings. Could be very useful to this project, seems to me. If\n> you're interested in possibly using it, let me know, I can bum... |
[
{
"msg_contents": "Hi there,\n\nI'm doing an update of ~30,000 rows and she takes about 15mins on\npretty good hardware, even just after a vacuum analyze.\nI was hoping some kind soul could offer some performance advice. Do I\njust have too many indexes? Or am I missing some trick with the nulls?\n\n\nMY QUERY\... |
[
{
"msg_contents": "Hello. I believe in earlier versions, a query of the\nform \nselect attrib from ttt where attrib like 'foo%' would\nbe able to take advantage of an index. I have seen\nthis in the past. Currently I am using v8.0.3. From\nwhat I can see is that the execultion plan seems to\nuse a seq scan and ... |
[
{
"msg_contents": "Hello!\n \nWe're using PostgreSQL 8.0.1 as general backend for all of our websites,\nincluding our online forums (aka bulletin boards or whatever you wish to\ncall that). As for full text search capabilities, we've chosen to\nimplement this via tsearch2. However, the tables themselves are qui... |
[
{
"msg_contents": "\n Hi Everyone, \n\n I've put together a short article and posted it online regarding\n performance tuning PostgreSQL in general. I believe it helps to bring\n together the info in a easy to digest manner. I would appreciate any\n feedback, comments, and especially any technical correct... |
[
{
"msg_contents": "\nHi,\n\nConsider the where-clauses:\n\nWHERE lower(col) LIKE 'abc';\nWHERE lower(col) LIKE 'abc%';\n\nthese will both use a b-tree functional index in lower(col) if one exists. \nThe clause\n\nWHERE lower(col) LIKE '%abc';\n\ncan't use the index as you would expect, because of the wildcard ... |
[
{
"msg_contents": "\nHi,\n\nConsider the where-clauses:\n\nWHERE lower(col) LIKE 'abc';\nWHERE lower(col) LIKE 'abc%';\n\nthese will both use a b-tree functional index in lower(col) if one exists.\nThe clause\n\nWHERE lower(col) LIKE '%abc';\n\ncan't use the index as you would expect, because of the wildcard at... |
[
{
"msg_contents": "Hey, all. I've bounced this around in #postgres for an hour or so, and \nit was suggested that I post it here as well. Hopefully someone can \nhelp me out.\n\nI have three machines. All have 512MB of ram.\nMachine A is a 2.0ghz celeron, running debian, pg verison 7.4.6.\nMachine B is a 1.8... |
[
{
"msg_contents": "\n> > Of course, I could modify the application and send different SQL\n> > depending on which case we're in or just constructing a query with a\n> > literal each time, but is there a way to add a hint to the SQL that\n> > would cause the query to be re-planned if it's a case that could use t... |
[
{
"msg_contents": ">hi, need some help with some experts here.\n>currently we have a function that use together with temp table, it calls search result function, everytime\n>this function is calling, it will go through some filter before come out as a result.\n>now we have some major problem , the first time th... |
[
{
"msg_contents": "Hi all,\n\nI'm running PG 8.0.3 on WinXP and I'm coming across some performance issues \nrelated to text columns. Basically, it appears as though PG is storing the \ntext data inline with the rest of the row data as queries that don't touch \nthe text column are slower when there is data in t... |
[
{
"msg_contents": "Hey, all. I've bounced this around in #postgres for an hour or so, and\nit was suggested that I post it here as well. Hopefully someone can\nhelp me out.\n\nI have three machines. All have 512MB of ram.\nMachine A is a 2.0ghz celeron, running debian, pg verison 7.4.6.\nMachine B is a 1.8gh... |
[
{
"msg_contents": "Situation:\nI'm trying to optimize an ETL process with many upserts (~100k aggregated rows)\n(no duplicates allowed). The source (table t2) table holds around 14 million\nrows, and I'm grabbing them 100,000 rows at a time from t2, resulting in about\n100,000 distinct rows in the destination t... |
[
{
"msg_contents": "I'm currently trying to make a decision on whether to use the Cygwin port of Postgres 7.4 or Postgres 8.0 for a windows installation. Can someone provide some comparison info from a performance point of view? I was thinking that the Cygwin port has the overhead of the translation layer, but... |
[
{
"msg_contents": "Hi again all,\n\nMy queries are now optimised. They all use the indexes like they \nshould.\nHowever, there's still a slight problem when I issue the \"offset\" \nclause.\n\nWe have a table that contains 600.000 records\nWe display them by 25 in the webpage.\nSo, when I want the last page, w... |
[
{
"msg_contents": "Hello, I'm a Sun Solaris sys admin for a start-up\ncompany. I've got the UNIX background, but now I'm\nhaving to learn PostgreSQL to support it on our\nservers :)\n\nServer Background:\n\nSolaris 10 x86\nPostgreSQL 8.0.3 \nDell PowerEdge 2650 w/4gb ram.\nThis is running JBoss/Apache as well ... |
[
{
"msg_contents": "\nHi:\n\tI'm beginning the push at our company to look at running \npostgreSQL in production here. We have a dual CPU 2.8 GHZ Xeon \nBox running oracle. Typical CPU load runs between 20% and 90%.\nRaw DB size is about 200GB. We hit the disk at roughly 15MB/s\nread volume and 3MB/s write.\n... |
[
{
"msg_contents": ">\n> Hmm, I can't do this, i'm afraid. Or it would be rather difficult\n>\n> My query is executed through a webpage (link to the page in a \n> navigation bar)\n> I do not know how many records there are (data is changing, and \n> currently is 600k records)\n>\n> The only thing I could do, is... |
[
{
"msg_contents": "Hi,\n\nThe article seems to dismiss RAID5 a little too quickly. For many\napplication types, using fast striped mirrors for the index space and\nRAID5 for the data can offer quite good performance (provided a\nsufficient number of spindles for the RAID5 - 5 or 6 disks or more). In\nfact, ra... |
[
{
"msg_contents": "Alvaro,\n\n> Am I the only one annoyed by the fact that the patch is not very nice to\n> 80-columns-wide terminals? It doesn't need to be a rigid rule but I\n> think the code looks much better if it's not too wide. This code is\n> wide already, but I think we should be making it better, not... |
[
{
"msg_contents": "Praveen Raja:\r\n\r\n\t I think the size of a table don't affect the speed of inserts into it.Because PostgreSQL just doing something like \"append\" on the data files.\r\n But the index do speed-down the inserts. Because PostgreSQL should maintain the index when doing inserts.\... |
[
{
"msg_contents": "> There are some immediate questions from our engineers about\nperformance\n> \n> \"- Oracle has one particular performance enhancement that Postgres is\n> missing. If you do a select that returns 100,000 rows in a given\norder,\n> and all you want are rows 99101 to 99200, then Oracle can do... |
[
{
"msg_contents": "Hi !\n\nMy company is evaluating to compatibilizate our system (developed in \nC++) to PostgreSQL.\n\nOur programmer made a lot of tests and he informed me that the \nperformance using ODBC is very similar than using libpq, even with a big \nnumber of simultaneous connections/queries. Of cour... |
[
{
"msg_contents": "> Hi !\n> \n> My company is evaluating to compatibilizate our system (developed in\n> C++) to PostgreSQL.\n> \n> Our programmer made a lot of tests and he informed me that the\n> performance using ODBC is very similar than using libpq, even with a\nbig\n> number of simultaneous connections/qu... |
[
{
"msg_contents": "i would take a peek at psqlodbc-8.0 drivers ..\ni wouldn't battle with other version you might find such as (unixodbc\nones)\n\n\n-elz\n\n\n> -----Original Message-----\n> From: pgsql-performance-owner@postgresql.org \n> [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of \n> Merlin ... |
[
{
"msg_contents": "[moved to pgsql-performance]\n> > \tCurrently I want to take a TPC-H test on postgresql-8.0.2. I\nhave\n> > downloaded the DBGEN and QGEN from the homepage of TPC. But I\n> encountered\n> > many problems which forced me to request some help. 1. How to load\nthe\n> data\n> > from flat file gen... |
[
{
"msg_contents": "Hi, \nI have a stored procedure written in perl and I doubt that perl's\ngarbage collector is working :-(\nafter a lot of work, postmaster has a size of 1100 Mb and I think\nthat the keyword \"undef\" has no effects.\nBefore tuning my procedure, does it exist a known issue, a workaround ?\n\... |
[
{
"msg_contents": "Karl,\n\n> Seems to me that when there's a constant value in the query\n> and an = comparision it will always be faster to use the (b-tree)\n> index that's ordered first by the constant value, as then all further\n> blocks are guarenteed to have a higher relevant information\n> density. At l... |
[
{
"msg_contents": "Hi,\n\nAt 01:16 28/06/2005, Karl O. Pinc wrote:\n>http://www.postgresql.org/docs/8.0/static/indexes-examine.html\n>\n>Says:\n>\n>\"If you do not succeed in adjusting the costs to be more\n>appropriate, then you may have to resort to forcing index\n>usage explicitly.\"\n>\n>Is there a way to f... |
[
{
"msg_contents": "Hi,\n\nI'm having a hard time finding the poorly performing\nstatements in my plpgsql procedures, many of which\nare triggers. Am I missing something?\n\nI can get the query plans by starting up a new\nconnection and doing:\nSET DEBUG_PRINT_PLAN TO TRUE;\nSET CLIENT_MIN_MESSAGES TO DEBUG1;\n... |
[
{
"msg_contents": "Hi all,\n\nMy company currently runs a number of both web-based and more \ntransactional projects on a PostgreSQL 7.3 server, and we're looking to \nupgrade to a new machine running 8.0 to boost performance and handle \ndata growth in to the future.\n\nRight now I'm looking at a Sun Fire V40z... |
[
{
"msg_contents": "We have the following function in our home grown mirroring package, but \nit isn't running as fast as we would like. We need to select statements \nfrom the pending_statement table, and we want to select all the \nstatements for a single transaction (pending_trans) in one go (that is, \nwe ei... |
[
{
"msg_contents": " \n \n\n\n\t\t\n____________________________________________________ \nYahoo! Sports \nRekindle the Rivalries. Sign up for Fantasy Football \nhttp://football.fantasysports.yahoo.com\n",
"msg_date": "Tue, 28 Jun 2005 07:18:05 -0700 (PDT)",
"msg_from": "Erik Westland <erikwestland@yahoo... |
[
{
"msg_contents": "I need a fast way (sql only preferred) to solve the following problem:\n\nI need the smallest integer that is greater than zero that is not in the\ncolumn of a table. In other words, if an 'id' column has values\n1,2,3,4,6 and 7, I need a query that returns the value of 5.\n\nI've already wo... |
[
{
"msg_contents": "I would suggest something like this, don't know how fast it is ... :\n\nSELECT (ID +1) as result FROM my_table\nWHERE (ID+1) NOT IN (SELECT ID FROM my_table) as tmp\nORDER BY result asc limit 1;\n\n\n\n\n\n\"Merlin Moncure\" <merlin.moncure@rcsonline.com>\nEnvoyé par : pgsql-performance-owne... |
[
{
"msg_contents": "Is it possible to tweak the size of a block that postgres tries to read\nwhen doing a sequential scan? It looks like it reads in fairly small\nblocks, and I'd expect a fairly significant boost in i/o performance\nwhen doing a large (multi-gig) sequential scan if larger blocks were\nused.\n\nM... |
[
{
"msg_contents": "> Merlin Moncure wrote:\n> \n> > I need a fast way (sql only preferred) to solve the following\nproblem:\n> > I need the smallest integer that is greater than zero that is not in\nthe\n> > column of a table.\n> >\n> > I've already worked out a query using generate_series (not scalable)\nand\n... |
[
{
"msg_contents": "> Not so bad. Try something like this:\n> \n> SELECT min(id+1) as id_new FROM table\n> WHERE (id+1) NOT IN (SELECT id FROM table);\n> \n> Now, this requires probably a sequential scan, but I'm not sure how\nyou\n> can get around that.\n> Maybe if you got trickier and did some ordering and... |
[
{
"msg_contents": "John Meinel wrote:\n> See my follow up post, which enables an index scan. On my system with\n> 90k rows, it takes no apparent time.\n> (0.000ms)\n> John\n> =:->\n\nConfirmed. Hats off to you, the above some really wicked querying.\nIIRC I posted the same question several months ago with no r... |
[
{
"msg_contents": "> On Tue, Jun 28, 2005 at 12:02:09 -0400,\n> Merlin Moncure <merlin.moncure@rcsonline.com> wrote:\n> >\n> > Confirmed. Hats off to you, the above some really wicked querying.\n> > IIRC I posted the same question several months ago with no response\nand\n> > had given up on it. I think you... |
[
{
"msg_contents": "Cosimo wrote:\n> I'm very interested in this \"tricky query\".\n> Sorry John, but if I populate the `id_test' relation\n> with only 4 tuples with id values (10, 11, 12, 13),\n> the result of this query is:\n> \n> cosimo=> create table id_test (id integer primary key);\n> NOTICE: CREATE... |
[
{
"msg_contents": "Hi\n\nWhat is your Postgres-Version and with which programming\nlanguage are you connecting to the db?\n\ngreetings,\n\nMartin\n\nAm Mittwoch, den 29.06.2005, 11:49 +0200 schrieb Shay Kachlon:\n> pgsql-performance@postgresql.org\n\n",
"msg_date": "Wed, 29 Jun 2005 11:02:49 +0200",
"ms... |
[
{
"msg_contents": "\nI have been trying to diagnose a performance problem we have been seeing with \na postgres application. The performance of the database server is usually \nquite good but every now and then it slows to a crawl. The output of vmstat \ndoes not show excessive CPU usage or disk IO. The output ... |
[
{
"msg_contents": "Hi,\n\nthe time needed for a daily VACUUM on a table with about 28 mio records\nincreases from day to day. What's the best way to avoid this? A full\nvacuum will probably take too much time, are there other ways to keep\nvacuum performant?\n\nThe database was updated to postgres-8.0 on Jun 04... |
[
{
"msg_contents": "We are running an application that uses psqlodbc driver on Windows XP to \nconnect to a server and for some reason the download of data from the \nserver is very slow. We have created a very simple test application that \ninserts a larger amount of data into the database and uses a simple \n\... |
[
{
"msg_contents": "> Milan Sekanina <milan@sde.cz> writes:\n> > We are running an application that uses psqlodbc driver on Windows\nXP to\n> > connect to a server and for some reason the download of data from\nthe\n> > server is very slow. We have created a very simple test application\nthat\n> > inserts a larg... |
[
{
"msg_contents": "I was hesitant to jump in on this because I am new to PostgreSQL and\nhaven't seen this problem with _it_, but I have seen this with the\nSybase database products. You can configure Sybase to disable the Nagle\nalgorithm. If you don't, any query which returns rows too big to fit in\ntheir n... |
[
{
"msg_contents": "hi,\n\nI have two computers, one laptop (1.5 GHz, 512 Mb RAM, 1 disk 4200)\nand one big Sun (8Gb RAM, 2 disks SCSI).\n\nOn my laptop, I have this EXPLAIN ANALYZE\n\nSort (cost=7.56..7.56 rows=1 width=28) (actual time=0.187..0.187 \nrows=0 loops=1)\n Sort Key: evolution, indx\n -> Index ... |
[
{
"msg_contents": "pgsql performance gurus,\n\nWe ported an application from oracle to postgresql.\nWe are experiencing an approximately 50% performance\nhit. I am in the process of isolating the problem.\nI have searched the internet (google) and tried various\nthings. Only one thing seems to work. I am try... |
[
{
"msg_contents": "Hi,\n\nI've just been referred here after a conversion on IRC and everybody\nseemed to think I've stumbled upon some strangeness.\n\nThe planner (in PG version 8.0.2) is choosing what it thinks is a more\nexpensive plan. I've got a table of animals (about 3M rows) and their\nmovements (about... |
[
{
"msg_contents": "\nI'm working with an application where the database is entirely resident in RAM \n(the server is a quad opteron with 16GBytes of memory). It's a web \napplication and handles a high volume of queries. The planner seems to be \ngenerating poor plans for some of our queries which I can fix by... |
[
{
"msg_contents": "Hi all,\n\n I have gone back to my index problem from a while ago where I am \ntrying to do an update with a regex on the WHERE column. If I specifiy a \nconstant the index is used so that much I know is working.\n\n I've been reading the 7.4 docs and I saw that a B-Tree index *should* \n... |
[
{
"msg_contents": "\nHi folks,\n\n\nmy application reads and writes some table quite often\n(multiple times per second). these tables are quite small\n(not more than 20 tuples), but the operations take quite a \nlong time (>300 ms!). \n\nThe query operations are just include text matching (=) and \ndate compari... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.