threads
listlengths
1
275
[ { "msg_contents": "Hi,\n\nI'm wondering if the plpgsql code:\n\nPERFORM 1 FROM foo;\nIF FOUND THEN ...\n\nis any slower than:\n\nPERFORM 1 FROM foo LIMIT 1;\nIF FOUND THEN ...\n\nSeems like it _could_ be smart enough to know that\n\n1) It's selecting from a real table and not a function\n\n2) GET DIAGNOSTICS is...
[ { "msg_contents": "Hi All,\n\n \n\nI am Kishore doing freelance development of J2EE applications. \n\n \n\nWe switched to use Postgresql recently because of the advantages it has over other commercial databases. All went well untill recently, untill we began working on an application that needs to maintain a h...
[ { "msg_contents": "Hi All,\n\n I am Kishore doing freelance development of J2EE applications.\n\n We switched to use Postgresql recently because of the advantages it has\nover other commercial databases. All went well untill recently, untill we\nbegan working on an application that needs to maintain a huge data...
[ { "msg_contents": "Hey all.\n\nPlease point me to a place I should be looking if this is a common\nquestion that has been debated periodically and at great length\nalready. :-)\n\nI have a complex query. It's a few Kbytes large, and yes, I've already\nworked on reducing it to be efficient in terms of database d...
[ { "msg_contents": "Hi all,\n\nI'm currently testing PostgreSQL 8.1 beta3 and I have a problem with a \nEXPLAIN ANALYZE output. You can find it attached.\n\nI don't understand why I have the Nested Loop at line 19 with an actual \ntime of 254.292..257.328 because I can't find anywhere the line taking \nthis 254 ...
[ { "msg_contents": " The preliminaries:\n\n - PostgreSQL 8.1 beta 3, Debian experimental\n - database has been VACUUMed FULL ANALYZE.\n - a pg_dump -Fc exists at http://199.77.129.48/inet_test.db\n - ia32 hardware with 2 GB physical memory and the following settings:\n\nshared_buffers = 40960\ntem...
[ { "msg_contents": "In addition to what Mark pointed out, there is the possibility that a\nquery\nis running which is scanning a large table or otherwise bringing in a\nlarge number of pages from disk. That would first use up all available\nunused cache space, and then may start replacing some of your\nfrequent...
[ { "msg_contents": "Now this interests me a lot.\n\nPlease clarify this:\n\nI have 5000 tables, one for each city:\n\nCity1_Photos, City2_Photos, ... City5000_Photos.\n\nEach of these tables are: CREATE TABLE CityN_Photos (location text, lo_id\nlargeobectypeiforgot)\n\nSo, what's the limit for these large object...
[ { "msg_contents": "Jim C. Nasby\" <jnasby ( at ) pervasive ( dot ) com> wrote:\n> > Stefan Weiss wrote:\n> > ... IMO it would be useful to have a way to tell\n> > PG that some tables were needed frequently, and should be cached if\n> > possible. This would allow application developers to consider joins with\n> ...
[ { "msg_contents": "Does Creating Temporary table in a function and NOT dropping them affects\nthe performance of the database?\n\n \n\n\n\nI choose Polesoft Lockspam to fight spam, and you?\nhttp://www.polesoft.com/refer.html\n\n\n\n\n\n\n\n\nDoes Creating Temporary table\nin a function and NOT dropping them af...
[ { "msg_contents": "\nHere are the configuration of our database server:\n\tport = 5432\n\tmax_connections = 300\n\tsuperuser_reserved_connections = 10\n\tauthentication_timeout = 60\t\n\tshared_buffers = 48000 \n\tsort_mem = 32168\n\tsync = false\n\nDo you think this is enough? Or can you recommend a better c...
[ { "msg_contents": "Hi All,\n Thank you very much for your help in configuring the database.\n Can you guys please take a look at the following query and let me know why\nthe index is not considered in the plan?\n Here is the extract of the condition string of the query that is taking the\ntransaction_date in in...
[ { "msg_contents": "Hello!\n\nI've got a table BOARD_MESSAGE (message_id int8, thread_id int8, ...)\nwith pk on message_id and and a non_unique not_null index on thread_id.\nA count(*) on BOARD_MESSAGE currently yields a total of 1231171 rows,\nthe planner estimated a total of 1232530 rows in this table. I've go...
[ { "msg_contents": "I tried on pgsql-general but got no reply. re-posting here as it's\nprobably the best place to ask\n\nI'm having some significant performance problems with left join. Can\nanyone give me any pointers as to why the following 2 query plans are so\ndifferent?\n\n\nEXPLAIN SELECT *\nFROM\n to...
[ { "msg_contents": " \nHi!\n\n> -----Ursprüngliche Nachricht-----\n> Von: pgsql-performance-owner@postgresql.org \n> [mailto:pgsql-performance-owner@postgresql.org] Im Auftrag \n> von Richard Huxton\n> Gesendet: Dienstag, 25. Oktober 2005 12:07\n> An: Markus Wollny\n> Cc: pgsql-performance@postgresql.org\n> Betr...
[ { "msg_contents": "Hi,\n\nI have the following test setup:\n\n* PG 8.0.4 on Linux (Centos 4) compiled from source.\n\n* DB schema: essentially one table with a few int columns and\n one bytea column that stores blobs of 52000 bytes each, a\n primary key on one of the int columns.\n\n* A test client was writte...
[ { "msg_contents": "We are reindexing frequently, and I'm wondering if\nthis is really necessary, given that it appears to\ntake an exclusive lock on the table.\n\nOur table in question is vacuumed every 4 minutes, and\nwe are reindexing after each one.\n\nI'm not a fan of locking this table that frequently,\nev...
[ { "msg_contents": "Ok, thanks for the limits info, but I have that in the manual. Thanks.\n\nBut what I really want to know is this:\n\n1) All large objects of all tables inside one DATABASE is kept on only one\ntable. True or false?\n\nThanks =o)\nRodrigo\n\nOn 10/25/05, Nörder-Tuitje, Marcus <noerder-tuitje@t...
[ { "msg_contents": "> If I turn on stats_command_string, how much impact would it have on\n> PostgreSQL server's performance during a period of massive data\n> INSERTs? I know that the answer to the question I'm asking will\n> largely depend upon different factors so I would like to know in which\n> situations ...
[ { "msg_contents": "Hi All,\n We are executing a single query that returned very fast on the first\ninstance. But when I executed the same query for multiple times, it is\ngiving strange results. It is not coming back.\n When I checked with the processes running in the system, I observed that\nmultiple instances...
[ { "msg_contents": "In this particular case both outer joins are to the same table, and\nthe where clause is applied to one or the other, so it's pretty easy\nto prove that they should generate identical results. I'll grant that\nthis is not generally very useful; but then, simple test cases often\ndon't look v...
[ { "msg_contents": "I am creating a temporary table in every function that I execute.\nWhich I think is bout 100,000 temporary tables a day.\n\nWhat is the command for vacuuming these 3 tables?\n\nAlso I read about the auto vacuum of postgresql.\nHow can I execute this auto vacuum or the settings in the configur...
[ { "msg_contents": "where can i find bests practices for tunning postgresql?\n\n_________________________________________________________________\nConsigue aqu� las mejores y mas recientes ofertas de trabajo en Am�rica \nLatina y USA: http://latam.msn.com/empleos/\n\n", "msg_date": "Tue, 25 Oct 2005 22:2...
[ { "msg_contents": "what happend with postgresql 8.1b4 performance on query?\nplease help me !!!\n\nlook at this:\nselect count(*) from fotos where archivo not in (select archivo from \narchivos)\nAggregate (cost=4899037992.36..4899037992.37 rows=1 width=0)\n-> Seq Scan on fotos (cost=22598.78..4899037338.07 ...
[ { "msg_contents": "That seems like a pretty horrible way to do that query, given the table sizes.\n\nWhat about something like:\n\nSELECT count(*)\nFROM fotos f\nLEFT JOIN archivo a USING(archivo)\nWHERE a.archivo IS NULL\n\nIncidentally, can someone explain what the \"Materialize\" subplan does? Is this new i...
[ { "msg_contents": "> look at this:\n> select count(*) from fotos where archivo not in (select archivo from\n> archivos)\n> Aggregate (cost=4899037992.36..4899037992.37 rows=1 width=0)\n> -> Seq Scan on fotos (cost=22598.78..4899037338.07 rows=261716 width=0)\n> Filter: (NOT (subplan))\n> SubPla...
[ { "msg_contents": "Hi there.\n\nI am currently building a system, where it would be nice to use multiple \nlevels of views upon each other (it is a staticstics system, where \ntraceability is important).\n\nIs there any significant performance reduction in say 10 levels of views \ninstead of one giant, nested s...
[ { "msg_contents": "I currently have an infrastructure that's based around SQL Server 2000. \nI'm trying to move some of the data over to Postgres, partly to reduce \nthe load on the SQL Server machine and partly because some queries I'd \nlike to run are too slow to be usuable on SQL Server. Mostly likely over ...
[ { "msg_contents": "I am running Postgre 7.4 on FreeBSD. The main table have 2 million record\n(we would like to do at least 10 mil or more). It is mainly a FIFO structure\nwith maybe 200,000 new records coming in each day that displace the older\nrecords.\n\nWe have a GUI that let user browser through the recor...
[ { "msg_contents": "I DON'T KNOW WHAT TO DO WITH THIS QUERYS...\nComparation with sql server, sql server wins !!!\n\n\nTable sizes:\narchivos: 40MB\nfotos: 55MB\n\nselect count(1) from fotos f where not exists (select a.archivo from \narchivos a where a.archivo=f.archivo)\n173713 ms.\n110217 ms.\n83122 ms.\n\nse...
[ { "msg_contents": "Christopher \n> > - Present a nifty date selector to choose the records from any\nday,\n> > hour, minute, second\n> > - show them, with \"next day\" and \"previous day\" buttons\n> >\n> > - It's more useful to the user (most likely he wants to know\nwhat\n> > happened on 01/05/20...
[ { "msg_contents": "Is there something that tells postgres to take the resorces from computer \n(RAM, HDD, SWAP on linux) as it need, not modifying variables on \npostgresql.conf and other operating system things?\n\nA days ago i am trying to show that postgres is better than mssql but when \nexecute a simple qu...
[ { "msg_contents": "Is there a rule-of-thumb for determining the amount of system memory a \ndatabase requres (other than \"all you can afford\")? \n\n\n", "msg_date": "Thu, 27 Oct 2005 14:31:43 -0500", "msg_from": "\"PostgreSQL\" <martin@portant.com>", "msg_from_op": true, "msg_subject": "How mu...
[ { "msg_contents": "Databases basically come in 4 sizes:\n\n1= The entire DB fits into memory.\n2= The performance critical table(s) fit(s) into memory\n3= The indexes of the performance critical table(s) fit into memory.\n4= Neither the performance critical tables nor their indexes fit into memory.\n\nPerforman...
[ { "msg_contents": "Hi all,\n\nI wonder what is the main driving factor for vacuum's duration: the size\nof the table, or the number of dead tuples it has to clean ?\n\nWe have a few big tables which are also heavily updated, and I couldn't\nfigure out a way to properly vacuum them. Vacuuming any of those took\n...
[ { "msg_contents": "I have a table that holds entries as in a ficticious table Log(id integer,\nmsg text).\n Lets say then that I have the program log_tail that has as it´s sole\npurpose to print newly added data elements.\n What is the best solution in terms of performace?\n Thank you for your time,\nRodrigo\n\...
[ { "msg_contents": "I have two tables, one is called 'users' the other is 'user_activity'.\n The 'users' table simply contains the users in the system there is\nabout 30,000 rows. The 'user_activity' table stores the activities\nthe user has taken. This table has about 430,000 rows and also\n(notably) has a co...
[ { "msg_contents": "On October 28, 2005 2:54 PM\nCollin Peters wrote:\n> I have two tables, one is called 'users' the other is 'user_activity'.\n...\n> I am trying to write a simple query that returns the last time each\n> user logged into the system. This is how the query looks at the\n> moment:\n> \n> SELECT ...
[ { "msg_contents": "Which effects have UPDATEs on REFERENCEd TABLEs when only columns in the\nreferenced table are updated which are not part of the FOREIGN KEY\nconstraint?\n\nI have one \"master\"-table like\n\n create table t_master (\n m_id serial primary key,\n m_fld1 ...,\n m_fld2 ...,\n ...\n )\...
[ { "msg_contents": "Hi there.\n\nI have tried to implement the layered views as suggested earlier on one \nof the simplest queries (just to get a feel for it). And there seems to \nbe something odd going on.\n\nAttached are all the statemens needed to see, how the database is made \nand the contents of postgresq...
[ { "msg_contents": "There are a few ways to do this...thinking about it a bit, I would add a timestamp column to your log table (indexed) and keep a control table which keeps track of the last log print sweep operation.\n\nThe print operation would just do \nselect * from log where logtime > (select lastlogtime(...
[ { "msg_contents": "Greetings,\n\nWe are running some performance tests in which we are attempting to\ninsert about 100,000,000 rows in a database at a sustained rate. About\n50M rows in, our performance drops dramatically.\n\nThis test is with data that we believe to be close to what we will\nencounter in prod...
[ { "msg_contents": "Kelly wrote:\n> We are running some performance tests in which we are attempting to\n> insert about 100,000,000 rows in a database at a sustained rate.\nAbout\n> 50M rows in, our performance drops dramatically.\n> \n> This test is with data that we believe to be close to what we will\n> encou...
[ { "msg_contents": "> > if that index is causing the problem, you may want to consider\nsetting\n> > up partial index to exclude null values.\n> \n> This is a single column index. I assumed that null column values were\n> not indexed. Is my assumption incorrect?\n> \n> -K\nIt turns out it is, or it certainly s...
[ { "msg_contents": "> On Mon, Oct 31, 2005 at 12:32:03PM -0500, Merlin Moncure wrote:\n> > if that index is causing the problem, you may want to consider\nsetting\n> > up partial index to exclude null values.\n> \n> Hey all.\n> \n> Pardon my ignorance. :-)\n> \n> I've been trying to figure out whether null value...
[ { "msg_contents": "> mark@mark.mielke.cc writes:\n> > I've been trying to figure out whether null values are indexed or\nnot\n> from\n> > the documentation. I was under the impression, that null values are\nnot\n> > stored in the index.\n> \n> You're mistaken, at least with regard to btree indexes.\n\nhmm. I tr...
[ { "msg_contents": "> select * from sometable where somefield IS NULL won't work because IS\nis\n> not a nomally indexible operator.\n\nAh, I didn't know that. So there is no real reason not to exclude null\nvalues from all your indexes :). Reading Tom's recent comments\neverything is clear now.\n\nInstead of ...
[ { "msg_contents": "We're running 8.1beta3 on one server and are having ridiculous performance \nissues. This is a 2 cpu Opteron box and both processors are staying at 98 \nor 99% utilization processing not-that-complex queries. Prior to the \nupgrade, our I/O wait time was about 60% and cpu utilization rarely...
[ { "msg_contents": "Hi,\n\nI am trying to optimize my Debian Sarge AMD64 PostgreSQL 8.0\ninstallation, based on the recommendations from \"the Annotated\nPOSTGRESQL.CONF Guide for\nPostgreSQL\" (http://www.powerpostgresql.com/Downloads/annotated_conf_80.html). To see the result of the recommendations I use pgben...
[ { "msg_contents": "We are going live with a application in a few months that is a complete \nrewrite of an existing application. We are moving from an existing \nproprietary database to Postgresql. We are looking for some \ninsight/suggestions as to how folks test Postgresql in such a situation.\n\nWe really ...
[ { "msg_contents": "I'm surprised that no one seems to have yet suggested the following\nsimple experiment:\n\nIncrease the RAM 4GB -> 8GB, tune for best performance, and\nrepeat your 100M row insert experiment.\n\nDoes overall insert performance change? Does the performance\ndrop <foo> rows in still occur? Do...
[ { "msg_contents": "hello performance minded administrators:\n\nWe have recently converted a number of routines that walk a bill of\nmaterials (which is a nested structure) from the application side to the\nserver side via recursive plpgsql functions. The performance is\nabsolutely fantastic but I have to maint...
[ { "msg_contents": "Geoffrey wrote:\n> We are going live with a application in a few months that is a\ncomplete\n> rewrite of an existing application. We are moving from an existing\n> proprietary database to Postgresql. We are looking for some\n> insight/suggestions as to how folks test Postgresql in such a\n...
[ { "msg_contents": "> The body of callit() need be little more than OidFunctionCall1()\n> plus whatever error checking and security checking you want to\n> include.\n\nesp=# create table test(f text);\nCREATE TABLE\n\nesp=# create function test() returns void as \n$$ \n\tbegin \n\t\tinsert into test values ('cal...
[ { "msg_contents": "I have a client that is testing an internal data platform, and they\nwere happy with PostgreSQL until they tried to join views - at that\ntime they discovered PostgreSQL was not using the indexes, and the\nqueries took 24 hours to execute as a result.\n\nIs this a known issue, or is this poss...
[ { "msg_contents": "> I've done the tests with rc1. This is still as slow on windows ...\nabout\n> 6-10\n> times slower thant linux (via Ip socket). (depending on using prepared\n> queries, etc...)\n> \n> By the way, we've tried to insert into the windows database from a\nlinux\n> psql\n> client, via the network...
[ { "msg_contents": "> Would you be willing to write up an example of this? We often get\nasked\n> about support for WITH, so I bet there's other people who would be\nvery\n> interested in what you've got.\n\nSure. In fact, I had already decided this to be the next topic on my\nblog. I'm assuming you are asking ...
[ { "msg_contents": "> > I've done the tests with rc1. This is still as slow on windows ...\n> about\n> > 6-10\n> > times slower thant linux (via Ip socket). (depending on \n> using prepared \n> > queries, etc...)\n> > \n> > By the way, we've tried to insert into the windows database from a\n> linux\n> > psql\n> ...
[ { "msg_contents": "There any performance differences between a SQL function written in SQL\nlanguage or PL/psSQL language? For example:\n\nCreate or replace function sp_getfreq(\n\tVar1 integer\n) returns Boolean as\n$$\nDeclare\n\tMyval Boolean;\nBegin\n\tSelect var1 in (select var3 from table1) into myval;\n\...
[ { "msg_contents": "> Would you be willing to write up an example of this? We often get\nasked\n> about support for WITH, so I bet there's other people who would be\nvery\n> interested in what you've got.\n> \nYou can see my blog on the subject here:\nhttp://www.postgresql.org/docs/8.0/interactive/plpgsql.html#P...
[ { "msg_contents": "oops. my blog is here: :-)\nhttp://people.planetpostgresql.org/merlin/\n\n>\nhttp://www.postgresql.org/docs/8.0/interactive/plpgsql.html#PLPGSQL-ADVA\n> NTAGES\n", "msg_date": "Wed, 2 Nov 2005 12:04:35 -0500", "msg_from": "\"Merlin Moncure\" <merlin.moncure@rcsonline.com>", "msg_f...
[ { "msg_contents": "I want to do statement level triggers for performance, but it seems \nthere is no 'updated', 'inserted', or 'deleted' tables inside the \ntrigger and nothing I can find in the documentation that offers similar \nfunctionality.\n\nIs there any way that I can access only those rows that were ch...
[ { "msg_contents": "Using PostgreSQL 8.0.4.\n\nI've got a table with 4.5 million rows that I expect to become huge \n(hundred million? who knows). Each row has a start and end time. I \nwant to retrieve all the events during a timespan in one list; \ntypical timespans will involve up to a couple rows. If the ...
[ { "msg_contents": "> select when_stopped as when_happened,\n> 1 as order_hint\n> from transaction t\n> where '2005-10-25 15:00:00' <= when_stopped\n> and when_stopped <= '2005-10-26 10:00:00'\n> union all\n> select when_stopped as when_happened,\...
[ { "msg_contents": "Postgresql 8.0.4 using plpgsql\n\nThe basic function is set up as:\nCREATE FUNCTION add_data(t_row mytable) RETURNS VOID AS $func$\nDECLARE\n newtable text;\n thesql text;\nBEGIN\n INSERT INTO newtable thename from mytable where lookup.id =\nt_row.id;\n thesql := 'INSERT INTO ' ||...
[ { "msg_contents": "> Postgresql 8.0.4 using plpgsql\n> \n> The basic function is set up as:\n> CREATE FUNCTION add_data(t_row mytable) RETURNS VOID AS $func$\n> DECLARE\n> newtable text;\n> thesql text;\n> BEGIN\n> INSERT INTO newtable thename from mytable where lookup.id =\n> t_row.id;\n> thesq...
[ { "msg_contents": "\n> Merlin Moncure wrote:\n> > hmm, try pushing the union into a subquery...this is better style\n> > because it's kind of ambiguous if the ordering will apply\nbefore/after\n> > the union.\n> \n> Seems to be a little slower. There's a new \"subquery scan\" step.\n\nI figured. However it's m...
[ { "msg_contents": "> On Wed, 2 Nov 2005, Merlin Moncure wrote:\n> If you put client/server on the same machine, then we don't know how\nthe\n> CPU is splitted. Can you take a look at the approximate number by\n> observing the task manager data while running?\n\nok, I generated a test case which was 250k inserts...
[ { "msg_contents": "> Wow. I hadn't known about generate_series, but there are a bunch of\n> places I've needed it.\n\nIt's a wonder tool :).\n \n> But I think there is something I can do: I can just do a query of the\n> transaction table sorted by start time. My graph tool can keep a\n\nReading the previous par...
[ { "msg_contents": "The ANSI/ISO specs are not at all ambiguous on this. An\nORDER BY is not allowed for the SELECT statements within\na UNION. It must come at the end and applied to the resulting\nUNION.\n\nSimilarly, the column names in the result come from the first\nquery in the UNION. Column names in the...
[ { "msg_contents": "> The ANSI/ISO specs are not at all ambiguous on this. An\n> ORDER BY is not allowed for the SELECT statements within\n> a UNION. It must come at the end and applied to the resulting\n> UNION.\n\nInteresting :/ \n\nMerlin\n", "msg_date": "Thu, 3 Nov 2005 13:37:52 -0500", "msg_from":...
[ { "msg_contents": "Both win32 send/recv have pgwin32_poll_signals() in them. This is\nglorified WaitForSingleObjectEx on global pgwin32_signal_event. This is\nprobably part of the problem. Can we work some of the same magic you\nput into check interrupts macro?\n\nISTM everything also in win32 functions is e...
[ { "msg_contents": "> Both win32 send/recv have pgwin32_poll_signals() in them. This is\n> glorified WaitForSingleObjectEx on global pgwin32_signal_event. This\nis\n> probably part of the problem. Can we work some of the same magic you\nput\n> into check interrupts macro?\n\nWhoop! following a cvs update I se...
[ { "msg_contents": "> Both win32 send/recv have pgwin32_poll_signals() in them. \n> This is glorified WaitForSingleObjectEx on global \n> pgwin32_signal_event. This is probably part of the problem. \n> Can we work some of the same magic you put into check \n> interrupts macro?\n> \n> ISTM everything also in w...
[ { "msg_contents": "Just as an FYI, if you want to reassure yourself that the ORDER BY\nis being applied as intended, you could do the following:\n\n(\n select 1 as hint, start_time as when [...]\n union all\n select 2 as hint, end_time as when [...]\n) order by seq, when\n\nThis is ANSI/ISO standard, and works ...
[ { "msg_contents": "> > > Both win32 send/recv have pgwin32_poll_signals() in them.\n> > > This is glorified WaitForSingleObjectEx on global \n> > > pgwin32_signal_event. This is probably part of the problem.\n> > > Can we work some of the same magic you put into check interrupts \n> > > macro?\n> > >\n> >\n> >...
[ { "msg_contents": "> > Sorry, I don't follow you here - what do you mean to do? Remove the \n> > event completely so we can't wait on it?\n> >\n> \n> I'd like to use the win32 provided recv(), send() functions \n> instead of redirect them to pgwin32_recv()/pgwin32_send(), \n> just like libpq does. If we do this...
[ { "msg_contents": "> > Sorry, I don't follow you here - what do you mean to do? Remove the\n> > event completely so we can't wait on it?\n> >\n> \n> I'd like to use the win32 provided recv(), send() functions instead of\n> redirect them to pgwin32_recv()/pgwin32_send(), just like libpq does.\nIf\n> we do this, ...
[ { "msg_contents": "> > > I'd like to use the win32 provided recv(), send() \n> functions instead \n> > > of redirect them to pgwin32_recv()/pgwin32_send(), just \n> like libpq \n> > > does. If we do this, we will lose some functionalities, \n> but I'd like \n> > > to see the performance difference first. -- do ...
[ { "msg_contents": "I recently upgraded my DB from 7.4.3 to 8.0.4 and I've noticed the following\nerrors appearing in my serverlog:\n\n\n2005-11-03 05:56:57 CST 127.0.0.1(38858) ERROR: Unicode characters greater\nthan or equal to 0x10000 are not supported\n2005-11-03 06:04:09 CST 127.0.0.1(38954) ERROR: invalid ...
[ { "msg_contents": "Hello everyone.\n\nWe are facing a performance problem with views consisting of several \nunioned tables. The simplified schema is as follows:\n\nCREATE TABLE foo (\n\tfoo_object_id\tbigint,\n\tlink_id\t\tbigint,\n\tsomedata\ttext,\n\tPRIMARY KEY (foo_object_id) );\n\nCREATE TABLE bar (\n\tba...
[ { "msg_contents": "> You mean something like the attached?\nnot quite: attached is a file to generate test.\nto do it:\n\npsql yadda\n\\i timeit.sql\n\\t\n\\o dump.sql\nselect make_dump(50000, false);\n\\q\ncat dump.sql | psql -q yadda\n\nand see what pops out. I had to do it that way because redirecting psq...
[ { "msg_contents": "> > You mean something like the attached?\n\noh, btw I ran timeit.c and performance is flat and fairly fast. I'm\npretty sure psql is the culprit here.\n\nMerlin\n", "msg_date": "Fri, 4 Nov 2005 09:08:00 -0500", "msg_from": "\"Merlin Moncure\" <merlin.moncure@rcsonline.com>", "ms...
[ { "msg_contents": "> Hello everyone.\n> \n> We are facing a performance problem with views consisting of several\n> unioned tables. The simplified schema is as follows:\n> \n> CREATE TABLE foo (\n> \tfoo_object_id\tbigint,\n> \tlink_id\t\tbigint,\n> \tsomedata\ttext,\n> \tPRIMARY KEY (foo_object_id) );\n\npoint...
[ { "msg_contents": "> > not quite: attached is a file to generate test.\n> \n> > cat dump.sql | psql -q yadda\n> \n> Ah. Does your psql have readline support? if so, does adding -n to\n> that command change anything?\n> \n\nIt doesn't, and it doesn't. :/ Ok, here's where it gets interesting. I\nremoved all ...
[ { "msg_contents": "> That's bizarre ... I'd have thought a very long line would be more\n> likely to trigger internal performance problems than the original.\n> \n> What happens if you read the file with \"psql -f dump.sql\" instead\n> of cat/stdin?\n\nnon-flat. Also ran via \\i and got non flat times.\n\n> BT...
[ { "msg_contents": "> \n> \"Merlin Moncure\" <merlin.moncure@rcsonline.com> writes:\n> > yeah. I'm guessing problem is in the mingw flex/bison (which I\nreally,\n> > really hope is not the case) or some other win32 specific block of\ncode.\n> > I'm snooping around there...\n> \n> Maybe I'm confused here, but I ...
[ { "msg_contents": "ok, here is gprof output from newlines/no newlines \n[newlines]\n % cumulative self self total \n time seconds seconds calls s/call s/call name \n 19.03 0.67 0.67 1 0.67 3.20 MainLoop\n 17.61 1.29 0.62 500031 ...
[ { "msg_contents": "Nailed it.\n\nproblem is in mainloop.c -> setup_cancel_handler. Apparently you can\nhave multiple handlers and windows keeps track of them all, even if they\ndo the same thing. Keeping track of so many system handles would\nnaturally slow the whole process down. Commenting that line times ...
[ { "msg_contents": "> \"Merlin Moncure\" <merlin.moncure@rcsonline.com> writes:\n> > Nailed it.\n> \n> > problem is in mainloop.c -> setup_cancel_handler. Apparently you\ncan\n> > have multiple handlers and windows keeps track of them all, even if\nthey\n> > do the same thing. Keeping track of so many system h...
[ { "msg_contents": "> > I'm inclined to treat this as an outright bug, not just a minor\n> certainly...\n> \n> > performance issue, because it implies that a sufficiently long psql \n> > script would probably crash a Windows machine.\n> \n> actually, it's worse than that, it's more of a dos on the \n> whole syst...
[ { "msg_contents": "> >> AFAICS it is appropriate to move the sigsetjmp and \n> >> setup_cancel_handler calls in front of the per-line loop inside \n> >> MainLoop --- can anyone see a reason not to?\n> \n> > hm. mainloop is re-entrant, right? That means each \\i \n> would reset the \n> > handler...what is downs...
[ { "msg_contents": "SELECT v_barcode, count(v_barcode) FROM lead GROUP BY v_barcode HAVING \ncount(*) > 1;\n\nThis is a pretty good example of the place where 8.1 seems to be quite \nbroken. I understand that this query will want to do a full table scan \n(even through v_barcode is indexed). And the table is l...
[ { "msg_contents": "Hi,\n\nI am experiencing very long update queries and I want to know if it\nreasonable to expect them to perform better. \n\nThe query below is running for more than 1.5 hours (5500 seconds) now,\nwhile the rest of the system does nothing (I don't even type or move a\nmouse...).\n\n- Is that ...
[ { "msg_contents": "Hello,\n\nI have some strange performance problems with quering a table.It has \n5282864, rows and contains the following columns : id \n,no,id_words,position,senpos and sentence all are integer non null.\n\nIndex on :\n * no\n * no,id_words\n * id_words\n * senpos, sentence, \...
[ { "msg_contents": "Greg,\r\n\r\nIncreasing memory actually slows down the current sort performance.\r\n\r\nWe're working on a fix for this now in bizgres.\r\n\r\nLuke\r\n--------------------------\r\nSent from my BlackBerry Wireless Device\r\n\r\n\r\n-----Original Message-----\r\nFrom: pgsql-performance-owner@p...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: pgsql-performance-owner@postgresql.org \n> [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of \n> Joost Kraaijeveld\n> Sent: 07 November 2005 04:26\n> To: Tom Lane\n> Cc: Pgsql-Performance\n> Subject: Re: [PERFORM] Performance PG 8.0 on dua...
[ { "msg_contents": " \n\n> -----Original Message-----\n> From: Joost Kraaijeveld [mailto:J.Kraaijeveld@Askesis.nl] \n> Sent: 07 November 2005 09:03\n> To: Dave Page\n> Cc: Tom Lane; Pgsql-Performance\n> Subject: RE: [PERFORM] Performance PG 8.0 on dual opteron / \n> 4GB / 3ware\n> \n> > Nothing - it just uses li...
[ { "msg_contents": "Christian Paul B. Cosinas wrote:\n> Does Creating Temporary table in a function and NOT dropping them affects\n> the performance of the database?\n\nThe system will drop it automatically, so it shouldn't affect.\n\nWhat _could_ be affecting you if you execute that function a lot, is\naccumula...
[ { "msg_contents": "Here are the configuration of our database server:\n\tport = 5432\n\tmax_connections = 300\n\tsuperuser_reserved_connections = 10\n\tauthentication_timeout = 60\t\n\tshared_buffers = 48000 \n\tsort_mem = 32168\n\tsync = false\n\nDo you think this is enough? Or can you recommend a better con...