threads listlengths 1 275 |
|---|
[
{
"msg_contents": "I wrote: \n> Another question:\n> How are you benchmarking your queries? Are you running them from\nwithin\n> psql? Do you plan to run these queries from within an application?\n> \n> psql introduces some overhead because it has to scan the result set to\n> determine the widths of the colum... |
[
{
"msg_contents": "The box:\nLinux 2.4.24-ck1 \n8 Intel(R) Xeon(TM) MP CPU 2.80GHz\n4 gb RAM.\nPostgresql 7.4.2\n\nThe problem: \nShort in disk space. (waiting new hard)\n\nThe real problem:\nDevelopers usually write queries involving the creation of temporary tables. \n\nThe BF question:\nIs a good idea to li... |
[
{
"msg_contents": "I couldn't track down recent info in the archives, so I figured I'd ask here.\n\nDoes the order of columns still have an impact on table speed? Back in\nthe olden days, it used to be that fixed width columns (integer,\ntinyint, etc.) should be the first (\"left\") columns in the table and\nva... |
[
{
"msg_contents": "in the docummentation about the planer it says:\n\n\"It first combines all possible ways of scanning and joining the relations \nthat appear in a query\"\n\nI would like to know if there's a time limit to do that or if it just scans \nALL the posibilities until it finishes..no matter the time... |
[
{
"msg_contents": "If you use tablespaces to put a high-update, non-critical table on a\nramdisk, will updates to that table will still cause the WAL files to\nsync?\n\nI'm looking for a way to turn off syncing completely for a table.\nTemporary tables do this, but they can only be accessed from a single\nbacke... |
[
{
"msg_contents": "Having trouble with one table (see time to count records below!).\n\nFairly new to postgres so any help much appreciated.\n\nIt only contains 9,106 records - as you can see from:\n\n\nselect count(id) from project\n\ncount\n9106\n1 row(s)\nTotal runtime: 45,778.813 ms\n\n\nThere are only 3 fi... |
[
{
"msg_contents": "I'm thinking of upgrading an existing dedicated server and colocating my\nown server.\n\nThe server is used for prototype systems running Postgresql, php and\napache. The largest database is presently under 10GB and I haven't had\nany major performance problems. We expect to have to host larg... |
[
{
"msg_contents": "Hi all,\n\nWe have table q_20040805 and a delete trigger on\nit. The delete trigger is: \nupdate table q_summary set count=count-1...\n\nWhen we delete from q_20040805, we also insert into\nrelated info q_process within the same \ntransaction. There is a PK on q_process, but no\ntrigger on it... |
[
{
"msg_contents": "Does the order of columns of varying size have any effect on \nSELECT/INSERT/UPDATE/and/or/DELETE performance? Take the example where \nan integer primary key is listed first in the table and alternatively \nlisted after some large varchar or text columns? For example, is this \ndifferent per... |
[
{
"msg_contents": "> Anyway, with fsync enabled using standard fsync(), I get roughly\n300-400\n> inserts per second. With fsync disabled, I get about 7000 inserts per\n> second. When I re-enable fsync but use the open_sync option, I can get\n> about 2500 inserts per second.\n\nYou are getting 300-400 inserts/s... |
[
{
"msg_contents": "Hi All,\n\nWe're currently running Postgres 7.4.1 on FreeBSD 5.2, a Dual Xeon 2.4, 2GB\nECC, 3Ware Serial ATA RAID 5 w/ 4 disks (SLOW!!).\n\nOur database is about 20GB on disk, we have some quite large tables - 2M\nrows with TEXT fields in a sample table, accessed constantly. We average\nabo... |
[
{
"msg_contents": "Hi,\n\nI have a question on bulk checking, inserting into a table and\nhow best to use an index for performance.\n\nThe data I have to work with is a monthly CD Rom csv data dump of\n300,000 property owners from one area/shire.\n\nSo every CD has 300,000 odd lines, each line of data which fil... |
[
{
"msg_contents": "\nUsualy any bulk load is faster with indexes dropped and the rebuilt ... failing that (like you really need the indexes while loading, say into a \"hot\" table) be sure to wrap all the SQL into one transaction (BEGIN;...COMMIT;) ... if any data failes it all fails, which is usually easier to... |
[
{
"msg_contents": "If it has to read a majority (or even a good percentage) of the rows in question a sequential scan is probably faster ... and as Jim pointed out, a temp table can often be a useful medium for getting speed in a load and then allowing you to clean/alter data for a final (easy) push.\n\nG\n----... |
[
{
"msg_contents": "\n\n\n\n\n\nGreetings.\n\nI have a question regarding performance of certain datatypes:\n\nI have a field where I will store my clients phone numbers. I know that\nthis field will never exceed 15 characters, and I will store only\nnumbers here (no dashes, dots, etc...), so I was wondering:\n\... |
[
{
"msg_contents": "> The issue that I think we're seeing is that the performance on the\n3Ware\n> RAID is quite bad, watching FreeBSD systat will show it at \"100% busy\"\nat\n> around \"3.5 MB/s\". When it needs to seek across a table (for, say, an\n> aggregate function - typically a COUNT()), it slows the en... |
[
{
"msg_contents": "Hi. \n\nPlease be a bit patient.. I'm quite new to PostgreSQL. \n\nI'd like some advise on storing binary data in the database. \n\nCurrently I have about 300.000 320.000 Bytes \"Bytea\" records in the\ndatabase. It works quite well but I have a feeling that it actually is\nslowing the databa... |
[
{
"msg_contents": "> OSDL did some testing and found Ext3 to be perhaps the worst FS for\n> PostgreSQL\n> -- although this testing was with the default options. Ext3 involved\nan\n> almost 40% write performance penalty compared with Ext2, whereas the\n> penalty\n> for ReiserFS and JFS was less than 10%.\n> \n... |
[
{
"msg_contents": "> On Wed, 2004-08-11 at 17:51, Merlin Moncure wrote:\n> \n> > One thing you might consider is materialized views. Your aggregate\n> > functions are killing you...try to avoid using them (except min/max\non\n> > an index). Just watch out for mutable functions like now().\n> >\n> > http://www... |
[
{
"msg_contents": "> We do have a lot of INSERT/UPDATE calls, specifically on tables that\ntrack\n> user sessions, then of course things like comments, etc (where we'll\nsee\n> 10-30 INSERT's per second, with TEXT field, and hundreds of reads per\n> second). Additionally, our system does use a lot of aggregate... |
[
{
"msg_contents": "Hi,\n\nThis email is picking up a thread from yesterday on INSERTS and INDEXES.\n\nIn this case the question is to use and index or a sequential scan.\n\nI have included the db DDL and SELECT query.\n\nFor each month I have a csv data dump of council property data.\n\nSo the First CD will hav... |
[
{
"msg_contents": "> This example looks fine, but since userid 51 evidently only has 35\n> posts, there's not much time needed to read 'em all and sort 'em. The\n> place where the double-column index will win big is on userids with\n> hundreds of posts.\n> \n> You have to keep in mind that each index costs tim... |
[
{
"msg_contents": "> I don't have a huge amount of experience with this in pg, but one of\nthe\n> tricks we do in the ISAM world is a 'reverse date' system, so that you\n> can scan forwards on the key to pick up datetimes in descending order.\n> This is often a win because the o/s cache may assume read/forwards... |
[
{
"msg_contents": "Tom Lane wrote:\n> The difference would be pretty marginal --- especially if you choose\nto\n> use bigints instead of ints. (A timestamp is just a float8 or bigint\n> under the hood, and is no more expensive to compare than those\ndatatypes.\n> Timestamps *are* expensive to convert for I/O, ... |
[
{
"msg_contents": "> would one not have to repeat this operation regularly, to keep\n> any advantage of this ? my impression was that this is a relatively\n> heavy operation on a large table.\n\nYeah, it requires an exclusive lock and a table rebuild. It might be\nuseful to a message board type database since ... |
[
{
"msg_contents": "Hi All,\n\nWe are having a performance problem with our database. The problem\nexists when we include a constraint in GCTBALLOT. The constraint is as\nfollows:\n\nalter table GCTBALLOT\n add constraint FK_GCTBALLOT_GCTWEBU foreign key (GCTWEBU_SRL)\n references GCTWEBU (SRL)\n on ... |
[
{
"msg_contents": "Hi,\n\nis there anything I can doo to speed up inserts? One of my tables gets \nabout 100 new rows every five minutes. And somehow the inserts tend to \ntake more and more time.\n\nAny suggestions welcome.\n\nTIA\n\nUlrich\n\n",
"msg_date": "Fri, 13 Aug 2004 09:47:17 +0200",
"msg_from... |
[
{
"msg_contents": "Tips!\n*Delete indexes and recreate them after the insert.\n*Disable auto-commit\n*Perform a copy will be faster, sure.\n\nBest wishes,\nGuido\n\n> Hi,\n> \n> is there anything I can doo to speed up inserts? One of my tables gets \n> about 100 new rows every five minutes. And somehow the inse... |
[
{
"msg_contents": "As I see it's 100 inserts every 5 minutes, not only 100 inserts.\n\nSure it's extreme for only 100 inserts.\n\nCheers,\nGuido\n\n> \"G u i d o B a r o s i o\" <gbarosio@uolsinectis.com.ar> wrote:\n> \n> [speeding up 100 inserts every 5 minutes]\n> \n> > Tips!\n> > *Delete indexes and recreate... |
[
{
"msg_contents": "Hi,\n\nWe are having a performance problem with our database. The problem\nexists when we include a constraint in GCTBALLOT. The constraint is as\nfollows:\n\nalter table GCTBALLOT\n add constraint FK_GCTBALLOT_GCTWEBU foreign key (GCTWEBU_SRL)\n references GCTWEBU (SRL)\n on dele... |
[
{
"msg_contents": "Arash Zaryoun wrote:\n> Hi Richard,\n> \n> Thanks for your prompt reply. It fixed the problem. \n> Just one more question: Do I need to create an index for FKs? \n\nYou don't _need_ to, but on the referring side (e.g. table GCTBALLOT in \nyour example) PostgreSQL won't create one automaticall... |
[
{
"msg_contents": "> \tThere is also the fact that NTFS is a very slow filesystem, and\n> Linux is\n> a lot better than Windows for everything disk, caching and IO related. Try\n> to copy some files in NTFS and in ReiserFS...\n\nI'm not so sure I would agree with such a blanket generalization. I find NTFS to b... |
[
{
"msg_contents": "select count(*) FROM items_2004_07_29 as items WHERE true AND index @@ to_tsquery('default', '( audiovox)') ;\n count \n-------\n 4\n(1 row)\n\naers=# reindex index idx_title_2004_07_29;\nREINDEX\naers=# select count(*) FROM items_2004_07_29 as items WHERE true AND index @@ to_tsquery('de... |
[
{
"msg_contents": "HI all, I'm trying to implement a highly-scalable, high-performance,\nreal-time database replication system to back-up my Postgres database\nas data gets written.\n\nSo far, Mammoth Replicator is looking pretty good but it costs $1000+ . \n\nHas anyone tried Slony-I and other replication sys... |
[
{
"msg_contents": "I thought this could generate some interesting discussion. Essentially, \nthere are three queries below, two using sub-queries to change the way \nthe randomized information (works first by author and then by work) and \nthe original which simply randomizes out of all works available.\n\nThe... |
[
{
"msg_contents": "PostgreSQL versions: 7.4.3, 8.0.0beta1\n\nJoins against set-returning functions can be slow. Here's a simple\nexample (in 8.0.0beta1, the gen_series function can be replaced\nwith generate_series):\n\n CREATE FUNCTION gen_series(INTEGER, INTEGER) RETURNS SETOF INTEGER AS '\n DECLARE\n ... |
[
{
"msg_contents": "Using this SQL:\n\nEXPLAIN ANALYZE\nSELECT DISTINCT\n sessionid,\n '2004-33' AS \"yearweek\",\n nd.niveau\nINTO TEMP\n distinct_session\nFROM\n httplog h ,niveaudir nd\nWHERE\n hitDateTime>('now'::timestamp with time zone-'1440 min'::interval)\n ... |
[
{
"msg_contents": "Hi all, \n\nI'm running postgres 7.3.4 on a quad Xeon 2.8 GHz with \nMem: 1057824768 309108736 748716032 0 12242944 256413696\nSwap: 518053888 8630272 509423616\n\non Linux version 2.4.26-custom \n\nData directory is mounted with noatime.\n\nNothing else but one 11GB database is runn... |
[
{
"msg_contents": "Hello,\n\nI have a dedicated server for my posgresql database :\n\nP4 2.4 GHZ\nHDD IDE 7200 rpm\n512 DDR 2700\n\nI have a problem whith one table of my database :\n\nCREATE SEQUENCE \"base_aveugle_seq\" START 1;\nCREATE TABLE \"base_aveugle\" (\n \"record_id\" integer DEFAULT nextval('\"base_... |
[
{
"msg_contents": "Hi,\n \nMake multi-column indexes, using the columns from your most typical queries, putting the most selective columns first (ie; you don't need to make indexes with columns in the same order as they are used in the query).\n \nFor instance, an index on cp, effectif could likely benefit both... |
[
{
"msg_contents": "Hi verybody!\n\nI can't make use of indexes even I tried the same test by changing different settings in postgres.conf like geqo to off/on & geqo related parameters, enable_seqscan off/on & so on. Result is the same. \n\nHere is test itself:\n\nI've created simplest table test and executed th... |
[
{
"msg_contents": "Hi everybody!\n\nI can���t make use of indexes even I tried the same test by changing different settings in\npostgres.conf like geqo to off/on & geqo related parameters, enable_seqscan off/on & so on. Result\nis the same. \n\nHere is test itself:\n\nI���ve created simplest table test and exec... |
[
{
"msg_contents": "Thanks for the tip for the index on multiple columns ! (I never do inserts\non this table so insert time doesn't matter)\n\nMys posgresql version is : PostgreSQL 7.2.1\n\nHere are the results of the EXPLAIN ANALYZE you asked me to execute.\n\n\nexplain analyse select cp from base_aveugle whe... |
[
{
"msg_contents": "An index on cp and effectif would help your first query. An index on naf,\ncp and effectif would help your second query.\n \nSomething like this:\n \nCREATE INDEX base_aveugle_cp_key2 ON base_aveugle USING btree (cp,\neffectif);\nCREATE INDEX base_aveugle_naf_key2 ON base_aveugle USING btree... |
[
{
"msg_contents": "I'm doing a nightly vacuum... so I don't think that's it, although \nshould I be doing a FULL vacuum instead? The size of my data directory \nis only about 389 MB. I'll take a closer look at file sizes going \nforward.\n\necho \"VACUUM ANALYZE VERBOSE;\" | /Library/PostgreSQL/bin/psql -U \npo... |
[
{
"msg_contents": "Hi,\n\nI'm seeing the following behaviour with the table and functions given below:\n\ndb=# insert into f select * from full_sequence(1, 1000);\nINSERT 0 1000\nTime: 197,507 ms\ndb=# insert into f select * from full_sequence(1, 1000);\nINSERT 0 1000\nTime: 341,880 ms\ndb=# insert into f selec... |
[
{
"msg_contents": "Obviously,\n\nthis part of tr_f_def():\n\n******************************\n\t\t-- delete the contents\n--\t\tdelete from f;\n\t\tIF EXISTS (SELECT 1 FROM f) THEN\n\t\t\tDELETE FROM F;\n\t\t\tVACUUM F;\n\t\tEND IF;\n******************************\n\n\nshould simply read:\n\n********************... |
[
{
"msg_contents": "Hi,\nI am working on a project which explore postgresql to\nstore multimedia data.\nIn details, i am trying to work with the buffer\nmanagement part of postgres source code. And try to\nimprove the performance. I had search on the web but\ncould not find much usefull information. \nIt would ... |
[
{
"msg_contents": "Hello,\n\nThis is not strictly PostgreSQL performance hint, but may be\nhelpful to someone with problems like mine.\n\nAs I earlier posted, I was experiencing very high load average\non one of my Linux database servers (IBM eServer 345, SCSI disks on LSI \nLogic controller) caused by I/O bott... |
[
{
"msg_contents": "Hi, \n\nI noticed an interesting phenomenon when loding (COPY) some tables\nfrom a file. For some reason, one load was taking longer than I\nassumed it would. As it turns out, one of the columns was an array\ncontaining elements that were of a user defined type. Using strace\n(on linux) an... |
[
{
"msg_contents": "Thanks a lot. This issue has been resolved by casting to int8. I thought Postgres does those casts\nup by himself implicitelly.\n\n=====\nThanks a lot\nIgor Artimenko\nI specialize in \nJava, J2EE, Unix, Linux, HP, AIX, Solaris, Progress, Oracle, DB2, Postgres, Data Modeling\n\n\n\t\t\n______... |
[
{
"msg_contents": "Hi,\n\nYou asked the very same question yesterday, and I believe you got some useful answers. Why do you post the question again?\n\nYou don't even mention your previous post, and you didn't continue the thread which you started yesterday.\n\nDid you try out any of the suggestions which you g... |
[
{
"msg_contents": "RT uses a query like:\n\nSELECT distinct main.oid,main.* FROM Tickets main\nWHERE\n(main.EffectiveId = main.id)\nAND\n(main.Status != 'deleted')\nAND\n ( (main.Type = 'ticket') OR (main.Type = 'subticket') )\nAND\n ( (main.Queue = '9') )\nAND ((\n ( (Links.Type = 'MemberOf') AND ... |
[
{
"msg_contents": "Hi all,\nI'm tring to optimize the following query:\n\nhttp://rafb.net/paste/results/YdO9vM69.html\n\nas you can see from the explain after defining the\nindex the performance is worst.\n\nIf I raise the default_statistic_target to 200\nthen the performance are worst then before:\n\n\nWithout... |
[
{
"msg_contents": "Hi list,\n\nI have a database with 1M \"people\" in it. Each person has about 20\nattributes, such as height, weight, eye color, etc. I need to be able to\nsearch for people based on these attributes. A search can be conducted\non one attribute, all attributes, or any number in between. How w... |
[
{
"msg_contents": "Hi,\nI'm migrating data from 7.4.2 to 8.0.0beta1 and the process is slow (10 15 tuples per second)\n\nCan be a type conversion issue?\n\nRedS\n\n\n\n\n\n\nHi,\nI'm migrating data from 7.4.2 to 8.0.0beta1 and the \nprocess is slow (10 15 tuples per second)\n \nCan be a type conversion issue?\n... |
[
{
"msg_contents": "Hi all,\n\nI offered apologies to Igor Artimenko in private mail already; I'll apologize again here.\n\nAbout top-posting: Outlook Exchange teaches bad habits. Can you set Outlook Exchange to prefix lines with \"> \" only when mail is in text-only format but not when mail arrives in html / rt... |
[
{
"msg_contents": "HI All,\n \nI have a big performance issue concerning a PostgreSQL database.\n \nI have the following server configuration:\n \nPentium 4 2.4 GHz\n1 GB RAM\n36 GB SCSI\n \nAnd the following tables:\n TABLES\n--------------------------------------------------... |
[
{
"msg_contents": "Hi all,\n \n the following query is working well without the AND on WHERE clause, so\nI need suggestions about how could I rewrite the query to get the same\nresult with less cost of time and resources.\n \nI've already created indexes on all foreign key columns.\n \nThanks in advance.\n \nDa... |
[
{
"msg_contents": "Hi, \nI got this error message: \n\nLOG: could not create IPv6 socket: Address family not\nsupported by protocol\nLOG: could not bind socket for statistics collector:\nCannot assign requested address\nLOG: disabling statistics collector for lack of\nworking socket\nLOG: database system wa... |
[
{
"msg_contents": "I'm still having trouble with slow cascading DELETEs. What commands can I issue to see the sequence of events that occurs after I execute \n\nDELETE FROM x WHERE p;\n\nso that I can see if indexes being used correctly, or I have a constraint I don't want, etc.\n",
"msg_date": "Mon, 23 Aug... |
[
{
"msg_contents": "Hi all,\n\nI've attached all the query in query.sql\n\nI'm using postgres 7.3.4 on Linux version 2.4.26-custom \n( /proc/sys/vm/overcommit_memory = 0 this time ) \n\nfree :\n total used free shared buffers cached\nMem: 1810212 1767384 42828 ... |
[
{
"msg_contents": "Do you think that adopting the \"chip tuning\" product\npostgresql could increase the performances as well ?\n\n\n\nRegards\nGaetano Mendola\n\n\n\n",
"msg_date": "Tue, 24 Aug 2004 18:17:29 +0200",
"msg_from": "Gaetano Mendola <mendola@bigfoot.com>",
"msg_from_op": true,
"msg_... |
[
{
"msg_contents": "Coming from the MSSQL world, I'm used to the first step in optimization\nto be, choose your clustered index and choose it well.\n\nI see that PG has a one-shot CLUSTER command, but doesn't support\ncontinuously-updated clustered indexes.\n\nWhat I infer from newsgroup browsing is, such an ind... |
[
{
"msg_contents": "\nNot sure about the overall performance, etc. but I think that in order to collect statistics you need to set some values in the postgresql.conf config file, to wit:\n#---------------------------------------------------------------------------\n# RUNTIME STATISTICS\n#------------------------... |
[
{
"msg_contents": "Hi,\n\nWe're now getting very much off-topic about configuration of networking, but:\n\n- What is your OS?\n- What output do you get when you type 'ping localhost' in any command-prompt?\n\n\n-----Original Message-----\n\n[...]\n> I tried to put my_ip instead of \"localhost\" in\n> bufmng.c a... |
[
{
"msg_contents": "Hi,\n\nOn Aug 25, 2004, at 4:22 AM, Mark Kirkwood wrote:\n\n> select\n> \tpav1.person_id\n> from\n> \tperson_attributes_vertical pav1\n> where\n> \t ( pav1.attribute_id = 1\n> \t and pav1.value_id in (2,3))\n> \tor ( pav1.attribute_id = 2\n> \t and pav1.value_id in (2,3))\n>\n\n... |
[
{
"msg_contents": "I have 2 servers both with the exact same data, the same O.S., the same\nversion of Postgres (7.4.5) and the exact same db schema's (one production\nserver, one development server). One server is using the correct index for\nSQL queries resulting in extremely slow performance, the other serv... |
[
{
"msg_contents": "Just curious if folks have ever used this for a postgresql server and if\nthey used it with OSX/BSD/Linux. Even if you haven't used it, if you\nknow of something comparable I'd be interested. TIA\n\nhttp://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/72103/wo/oC2xGlPM9M2i3UsLG0f1... |
[
{
"msg_contents": "Hi,\n\nI'm a little beginner with Tsearch2 ....\n\nI have simples tables like this :\n\n# \\d article\n Table \"public.article\"\n Column | Type | \nModifiers\n------------+--------------------------... |
[
{
"msg_contents": "Hi, I have just installed 8.0.0beta1 and I noticed that some query are slower than 7.4.2 queries.\n\nAfter a FULL VACUUM ANALYZE\n\n***With 7.4.2***\n\nexplain analyze SELECT count(*) FROM \"SNS_DATA\" WHERE \"Data_Arrivo_Campione\" BETWEEN '2004-01-01 00:00:00' AND '2004-01-31 23:59:59' AND ... |
[
{
"msg_contents": "Bill Footcow wrote:\n\n...\n> I have done a simple request, looking for title or description having Postgres \n> inside order by rank and date, like this :\n> SELECT a.title, a.id, a.url, to_char(a.r_date, 'DD/MM/YYYY HH24:MI:SS') as dt, \n> s.site_name, s.id_site, case when exists (select i... |
[
{
"msg_contents": "I am using a simple PostgreSQL 7.3 database in a soft-realtime\napplication.\n\nI have a problem where an update on a record within a (fully indexed)\ntable containing less than ten records needs to occur as fast as\npossible.\n\nImmediately after performing a vaccum, updates take upto 50 mil... |
[
{
"msg_contents": ">> How do vendors actually implement auto-clustering? I assume \n>they move\n>> rows around during quiet periods or have lots of empty space in each\n>> value bucket.\n>\n>\n>As far as I know, Oracle does it by having a B-Tree organized heap (a\n>feature introduced around v8 IIRC), basically... |
[
{
"msg_contents": "FWIW,\n\nInformix does allow the fragmentation of data over named dbspaces by round-robin and expression; this is autosupporting as long as the dba keeps enough space available. You may also fragment the index although there are some variations depending on type of Informix (XPS, etc.); this ... |
[
{
"msg_contents": "Hi, I have just installed 8.0.0beta1 and I noticed that some query are slower than 7.4.2 queries.\n\nAfter:\npg_dump my_database >mydb.sql (from 7.4.2)\npsql my_new_database <mydb.sql (to 8.0.0 with COPY instead of INSERT)\nFULL VACUUM ANALYZE\n\n***With the old db on 7.4.2***\n\nexplain anal... |
[
{
"msg_contents": "Is it possible (to mix two threads) that you had CLUSTERed the table on the old database in a way that retrieved the records in this query faster?\n",
"msg_date": "Fri, 27 Aug 2004 09:52:15 -0700",
"msg_from": "andrew@pillette.com",
"msg_from_op": true,
"msg_subject": "Re: Que... |
[
{
"msg_contents": "The query:\n select count(*) from billing where timestamp > now()-60\n\nshould obviously use the index\n\n CREATE INDEX billing_timestamp_idx ON billing USING btree (\"timestamp\"\ntimestamp_ops);\n\non a table with 1400000 rows.\n\nBut it uses a Seq Scan. If I set enable_seqscan=no, it... |
[
{
"msg_contents": "Hi everybody!\n\nHere is my queries:\n\n1. explain SELECT * FROM messageinfo WHERE user_id = CAST( 20000 AS BIGINT ) and msgstatus = CAST(\n0 AS smallint );\n\n2. explain SELECT * FROM messageinfo WHERE messageinfo.user_id = 20000::int8 and msgstatus =\n0::smallint;\n\nIn both cases Explain c... |
[
{
"msg_contents": "-----BEGIN PGP SIGNED MESSAGE-----\nHash: SHA1\n\nBruce Momjian wrote:\n\n| Gaetano Mendola wrote:\n|\n|>Tom Lane wrote:\n|>\n|> > Bruce Momjian <pgman@candle.pha.pa.us> writes:\n|> >\n|> >>Agreed. What I am wondering is with our system where every update gets\n|> >>a new row, how would this... |
[
{
"msg_contents": "Hi all,\ndo you know any clean workaround at ill-planned queries inside a stored procedure?\nLet me explain with an example:\n\n\nempdb=# select count(*) from user_logs;\n count\n---------\n 5223837\n(1 row)\n\nempdb=# select count(*) from user_logs where id_user = 5024;\n count\n--------... |
[
{
"msg_contents": "I use \"EXECUTE\" inside a stored procedure for just this purpose. This is not the same as PREPARE/EXECUTE, it lets you send an arbitrary string as SQL within the procedure. You have to write the query text on the fly in the procedure, which can be a little messy with quoting and escaping.\n\... |
[
{
"msg_contents": "I have a problem with certain queries performance. Trouble is that\nwhile their execution plan is pretty good and mostly their execution\nis great as well, their FIRST execution time (that is after you mount\nthe database) is abysmal.\n\nI realize that it happens due to the loading of data fr... |
[
{
"msg_contents": "Dear all:\n\nIm having a weird problem here. I have a table w/ ~180.000 rows and I\nwant to select those where c > 0 or d > 0 (there only a few of those on\nthe table)\nI indexed columns c and d (separately) but this query used the slow\nseqscan instead of the index scan:\n\nselect * from t w... |
[
{
"msg_contents": "> Im having a weird problem here. I have a table w/ ~180.000 rows and I\n> want to select those where c > 0 or d > 0 (there only a few of those\non\n> the table)\n> I indexed columns c and d (separately) but this query used the slow\n> seqscan instead of the index scan:\n\ncreate function is_... |
[
{
"msg_contents": "> On Mon, 2004-08-30 at 15:06, Merlin Moncure wrote:\n> > create function is_somethingable (ctype, dtype) returns boolean as\n> \n> Thanks, but I would prefer a simpler solution.\n> \n> I would like to know why this uses a seqscan instead of an index scan:\n> \n> create index t_idx on t((c+d)... |
[
{
"msg_contents": "hi,\nhas anyone compile Postgres with Intel compiler ?\nDoes it exist a substantial gain of performance ?\n\n\n-- \nJean-Max Reymond\nCKR Solutions\nhttp://www.ckr-solutions.com\n",
"msg_date": "Tue, 31 Aug 2004 17:27:41 +0200",
"msg_from": "Jean-Max Reymond <jmreymond@gmail.com>",
... |
[
{
"msg_contents": "Hi all!\n\nI'm new here, so hello to everybody!\n\nI'm in a deep truble using postgesSQL 7.2.0 on a low-end pc with SUSE 8. I'm\nusing some databases from that pc through odbc (7.3.200). Until now i had no\nproblems with this solution, everithing worked fine. But today i wrote a\nsmall app, t... |
[
{
"msg_contents": "> I'm new here, so hello to everybody!\n> \n> I'm in a deep truble using postgesSQL 7.2.0 on a low-end pc with SUSE 8.\n> I'm\n> using some databases from that pc through odbc (7.3.200). Until now i had\n> no\n> problems with this solution, everithing worked fine. But today i wrote a\n> small... |
[
{
"msg_contents": " We have a web based application with data that is updated daily. The \nbiggest bottleneck occurs when we try to update\n one of the tables. This table contains 58,000 rows and 62 columns, and \nEVERY column is indexed. Every column is\n queryable (?) by the users through the web interface so... |
[
{
"msg_contents": "hi,\nI have the following structure in my base 7.4.2\n\nCREATE TABLE \"public\".\"article\" (\n \"art_id\" INTEGER NOT NULL,\n \"rub_id\" INTEGER DEFAULT '0' NOT NULL,\n \"art_titre\" VARCHAR(100) DEFAULT '' NOT NULL,\n \"art_texte\" TEXT NOT NULL,\n \"art_date\" DATE NOT NULL,\n \"aut_id\" I... |
[
{
"msg_contents": "> thanks for the quick answer! My db driver is the native MS ADO, and\nfrom\n> Delphi i use the AODExpress components which are wrapper classes to\nreach\n> the ActiveX components from delhpi. The strange behaviour of that\nquery\n> is,\n> that all other queries executed in this environment a... |
[
{
"msg_contents": "Hi ,\n\n I am sorry that my question is out of line with this\ngroup(performance) but I need\n\nan urgent help :-( .pls .. I need to know how to change the length of the\ncolumn.\n\n \n\nThanks and hoping that u will not ignore my question\n\n \n\n\n\n\n\n\n\n\n\n\nHi ,\n ... |
[
{
"msg_contents": "\n----- Original Message ----- \nFrom: \"Stefano Bonnin\" <stefano.bonnin@comai.to>\nTo: \"Josh Berkus\" <josh@agliodbs.com>\nSent: Monday, August 30, 2004 4:13 PM\nSubject: Re: [PERFORM] Query performance issue with 8.0.0beta1\n\n\n> This is my postgres.conf, I have changed only the work_mem... |
[
{
"msg_contents": "Dear all,\n\n I am currently experiencing troubles with the performance of my critical's database.\n\n The problem is the time that the postgres takes to perform/return a query. For example, trying the \\d <tablename> command takes between 4 or 5 seconds. This table is very big, but I am no... |
[
{
"msg_contents": "The solution appeared as something I didn't know\n\n On the .conf file\n\nPrevious situation:\n\n#log_something=false\nlog_something=true\n\nWorst situation \n#log_something=false\n#log_something=true \n\nNice situation\nlog_something=false\n#log_something=true\n\n\nOk, the problem was that ... |
[
{
"msg_contents": "Again me, \n\n To make it easier.\n\nSituation A:\nlog_something = true\n\nSituation B: \n# log_something = <anything>\n\nSituation C:\nlog_something = false\n\nAfter the pg_ctl reload:\n\nSituation B = Situation A\nSituation C <> (Situation A || Situation B)\n\nIs this the expected behavio... |
[
{
"msg_contents": "Thanks for the reply,\n\n Been reading hackers of Aug 2004 and found the threads. It's a common habit to create two lines on the configuration files, in order to maintain the copy of the default conf file. I guess this should be the worst scenery for a freshly incoming DBA trying to put thin... |
[
{
"msg_contents": "> On Mon, 30 Aug 2004, Martin Sarsale wrote:\n> > \"Multicolumn indexes can only be used if the clauses involving the\n> > indexed columns are joined with AND. For instance,\n> >\n> > SELECT name FROM test2 WHERE major = constant OR minor = constant;\n> \n> You can use DeMorgan's Theorem to t... |
[
{
"msg_contents": "Hello,\n\nToday, we stumbled about the following query plan on PostGreSQL 7.4.1:\n\nlogigis=# explain select count(id) from (select distinct id from (select distinct ref_in_id as id from streets union select distinct nref_in_id as id from streets) as blubb) as blabb; \n ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.