[PERFORM] Migration to pglister - Before

2017-11-20 Thread Stephen Frost
users can be found on the wiki here: https://wiki.postgresql.org/wiki/PGLister_Announce Once the migration of these lists is complete, an 'after' email will be sent out. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Unlogged tables

2017-08-09 Thread Stephen Frost
the data load is done. That will avoid having the table's contents written into the WAL, and PG will treat it as a regular table post-commit, meaning that it won't be truncated on a database crash. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Using array instead of sub table (storage and speed)

2017-06-16 Thread Stephen Frost
queries slower. Or would be better to store the array data in a > separate table e.g. have [s] as it is now but turn [sp] into an > array aggregated table. If that's the case then you would probably be better off putting the arrays into an independent table, yes. Thanks! Stephen sign

Re: [PERFORM] Using array instead of sub table (storage and speed)

2017-06-15 Thread Stephen Frost
nique allows you to reduce the number of tuples stored. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Backup taking long time !!!

2017-01-24 Thread Stephen Frost
I've had to do Oracle work though and I could be mis-remembering. People > may be confusing Oracle and PostgreSQL. Yes, that thought has occured to me as well, in some other database systems you can ask for the system to be quiesced. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Backup taking long time !!!

2017-01-23 Thread Stephen Frost
ending and thankless task, so, my thanks to you for your efforts. :) > Never fails to surprise me how many people don't read the docs. +1MM. Thanks again! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Backup taking long time !!!

2017-01-23 Thread Stephen Frost
* Jeff Janes (jeff.ja...@gmail.com) wrote: > On Mon, Jan 23, 2017 at 7:28 AM, Jim Nasby wrote: > > On 1/22/17 11:32 AM, Stephen Frost wrote: > >> The 1-second window concern is regarding the validity of a subsequent > >> incremental backup. > > > &g

Re: [PERFORM] Backup taking long time !!!

2017-01-23 Thread Stephen Frost
* Jeff Janes (jeff.ja...@gmail.com) wrote: > On Sun, Jan 22, 2017 at 6:57 AM, Stephen Frost wrote: > > Just to make sure anyone reading the mailing list archives isn't > > confused, running pg_start_backup does *not* make PG stop writing to > > BASEDIR (or DATADIR, or an

Re: [PERFORM] Backup taking long time !!!

2017-01-23 Thread Stephen Frost
you and by ZFS) and are entirely atomic to the entire PG instance. For example, I don't believe ZFS snapshots will be atomic if multiple ZFS filesystems on independent ZFS pools are being used underneath a single PG instance. And, as others have also said, always test, test, test. Thanks

Re: [PERFORM] Backup taking long time !!!

2017-01-23 Thread Stephen Frost
* Jim Nasby (jim.na...@bluetreble.com) wrote: > On 1/20/17 9:06 AM, Stephen Frost wrote: > >All the pages are the same size, so I'm surprised you didn't consider > >just having a format along the lines of: magic+offset+page, > >magic+offset+page, magic+offset+page, e

Re: [PERFORM] Backup taking long time !!!

2017-01-22 Thread Stephen Frost
Vladimir, * Vladimir Borodin (r...@simply.name) wrote: > > 20 янв. 2017 г., в 19:59, Stephen Frost написал(а): > >>> How are you testing your backups..? Do you have page-level checksums > >>> enabled on your database? > >> > >> Yep,

Re: [PERFORM] Backup taking long time !!!

2017-01-22 Thread Stephen Frost
the backup. > The backup is Full Backup or Snapshot and it will work whenever needed. > We are not saying about Incremental Backup yet. > Along with collecting the XLOG File, you can have incremental backup and > having complete continuous data backup. > in this case, Stephen is sug

Re: [PERFORM] Backup taking long time !!!

2017-01-22 Thread Stephen Frost
s is, by far, the best approach. Attempting to roll your own backup system based on rsync is not something I am comfortable recommending any more because it is *not* simple to do correctly. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Backup taking long time !!!

2017-01-22 Thread Stephen Frost
hen restoring the backup or the database will not be consistent. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Backup taking long time !!!

2017-01-22 Thread Stephen Frost
g_xlog/pg_wal. Please do not claim that PG stops writing to the DATADIR or BASEDIR after a pg_start_backup(), that is not correct and could lead to invalid backups. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Backup taking long time !!!

2017-01-20 Thread Stephen Frost
Vladimir, * Vladimir Borodin (r...@simply.name) wrote: > > 20 янв. 2017 г., в 18:06, Stephen Frost написал(а): > > > > Right, without incremental or compressed backups, you'd have to have > > room for 7 full copies of your database. Have you looked at what your &

Re: [PERFORM] Backup taking long time !!!

2017-01-20 Thread Stephen Frost
Vladimir, * Vladimir Borodin (r...@simply.name) wrote: > > 20 янв. 2017 г., в 16:40, Stephen Frost написал(а): > >> Increments in pgbackrest are done on file level which is not really > >> efficient. We have done parallelism, compression and page-level increments >

Re: [PERFORM] Backup taking long time !!!

2017-01-20 Thread Stephen Frost
Vladimir, * Vladimir Borodin (r...@simply.name) wrote: > > 20 янв. 2017 г., в 15:22, Stephen Frost написал(а): > >> This process can be automatized by some applications like barman > >> http://www.pgbarman.org/ > > > > Last I checked, barman is still single-t

Re: [PERFORM] Backup taking long time !!!

2017-01-20 Thread Stephen Frost
gbackrest- http://www.pgbackrest.org. pgbackrest has parallel backup, incremental/differential/full backup support, supports compression, CRC checking, and a whole ton of other good stuff. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Sort-of replication for reporting purposes

2017-01-06 Thread Stephen Frost
replication (eg: bucardo, slony, etc) instead of block-based, or you could look at the logical replication capabilities (pg_logical) to see about using that for your replica-for-reporting instead. Thanks! Stephen signature.asc Description: Digital signature

[PERFORM] Why is the optimiser choosing a sub-optimal plan?

2016-11-14 Thread Stephen Cresswell
I have the a table with two indexes... CREATE TABLE mobile_summary_usage ( import text, msisdn text, type text, totalinteger, day date, cycletext ); CREATE INDEX mobile_summary_usage_msisdn_cycle ON mobile_summary_usage USING btree (msisdn, cycle); CREATE I

Re: [PERFORM] archive_command too slow.

2016-11-08 Thread Stephen Frost
r replica, of course, but that might be a worthwhile trade-off. For pure backups, another approach is to use pg_receivexlog and a tool like barman which supports verifying that the WAL for a given backup has reached the remote side. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] pg_basebackup running slow

2016-10-14 Thread Stephen Frost
ke the backups larger, of course. Also, there's a limit to how far that will get you- once you get to "no compression", that's just as fast as pg_basebackup can run. If you're interested in a backup tool which can operate in parallel, you might want to look at pgbackrest. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Millions of tables

2016-09-28 Thread Stephen Frost
Greg, * Greg Spiegelberg (gspiegelb...@gmail.com) wrote: > On Wed, Sep 28, 2016 at 11:27 AM, Stephen Frost wrote: > > * Greg Spiegelberg (gspiegelb...@gmail.com) wrote: > > > Bigger buckets mean a wider possibility of response times. Some buckets > > > may contain

Re: [PERFORM] Millions of tables

2016-09-28 Thread Stephen Frost
ou'd want to have at least one replica and a setup which allows you to flip traffic to it very quickly to maintain the 30ms response times. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] index fragmentation on insert-only table with non-unique column

2016-05-24 Thread Stephen Frost
key are easily available then we could certainly sort those prior to going and visiting them. That's not quite the same as keeping the tuples in order in the heap, but would more-or-less achieve the effect desired, I believe? Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] autocommit (true/false) for more than 1 million records

2014-08-22 Thread Stephen Frost
gt; loading will do a check. For now, I'd like the fastest way. Would > you suggest commit every 1000 or 3000 records? The improvement drops off pretty quickly in my experience, but it depends on the size of the records and other things. Try it and see..? It's almost certainly

Re: [PERFORM] autocommit (true/false) for more than 1 million records

2014-08-22 Thread Stephen Frost
ds (e.g., 100, 500, 1000, etc) It depends on what you need. Data will be available to concurrent processes earlier with (1), while (2) will go faster. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] NFS, file system cache and shared_buffers

2014-05-27 Thread Stephen Frost
use the NFS server's memory for shared_buffers anyway). All that said, there has always been a recommendation of caution around using NFS as a backing store for PG, or any RDBMS.. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Inefficient filter order in query plan

2014-02-27 Thread Stephen Frost
nces. Costing integer (or anything that doesn't require pointer maniuplations) operations as cheaper than text-based operations also makes sense to me, even though of course there's more things happening when we do these comparisons than the simple CPU-level act of doing the cmp. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Adding an additional join causes very different/slow query plan

2013-12-17 Thread Stephen Frost
27;ll more-or-less get you there (turn on \timing in psql). When reading this thread, I was thinking it might be useful to add plan time somewhere in explain/explain analyze output though.. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Postgresql in a Virtual Machine

2013-11-26 Thread Stephen Frost
lie to the guest OS too. Of course, there are similar concerns about a SAN or even local RAID cards, but there's a lot more general familiarity and history around those which reduces the risk there (or at least, that's the thought). Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] how to help the planner

2013-03-28 Thread Stephen Frost
g which you could provide, it would absolutely help us in understanding and perhaps solving this issue. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] BUG: endless lseek(.., SEEK_END) from select queries on x64 builds

2013-02-22 Thread Stephen Frost
imple, well-defined test case which shows the failure. Thanks! Stephen signature.asc Description: Digital signature

Re: [PERFORM] Performance on Bulk Insert to Partitioned Table

2012-12-28 Thread Stephen Frost
eg: when the 'WHEN' components are all constants and the data type is something we can manage, etc, etc. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Performance on Bulk Insert to Partitioned Table

2012-12-28 Thread Stephen Frost
itioning would certainly be nice. I was really hoping that was going to happen for 9.3, but it seems unlikely now (unless I've missed something). Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Performance on Bulk Insert to Partitioned Table

2012-12-28 Thread Stephen Frost
switch statement can be. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Performance on Bulk Insert to Partitioned Table

2012-12-27 Thread Stephen Frost
rid of the expression evaluation (if that'd be possible) would make up for it. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Performance on Bulk Insert to Partitioned Table

2012-12-20 Thread Stephen Frost
t you can get bottle-necked on the WAL data, unless you've taken steps to avoid that WAL. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] average query performance measuring

2012-08-21 Thread Stephen Frost
an probably use the existing contrib module. The difference is that, with 9.2, it'll actually do normalization of non-PREPARED queries and will include some additional statistics and information. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] average query performance measuring

2012-08-21 Thread Stephen Frost
you'd like, so we can further improve things in that area.. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] pg_dump and thousands of schemas

2012-05-30 Thread Stephen Frost
ven if the server side is magically made much faster. The constant back-and-forth isn't cheap. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] heavly load system spec

2012-05-24 Thread Stephen Frost
ch can handle 1.35M write transactions per second? That's quite a few and regardless of RDBMS, I expect you'll need quite an I/O system to handle that. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] High load average in 64-core server , no I/O wait and CPU is idle

2012-05-24 Thread Stephen Frost
l definitely update list , > when i get to the point of putting the blame on DB :-) . Ok. :) Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] High load average in 64-core server , no I/O wait and CPU is idle

2012-05-24 Thread Stephen Frost
logspot.com/2012/04/did-i-say-32-cores-how-about-64.html That's a pretty contrived test case, but I suppose it's possible your case is actually close enough to be getting affected also.. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Sudden Query slowdown on our Postgresql Server

2012-03-22 Thread Stephen Frost
* Sebastian Melchior (webmas...@mailz.de) wrote: > Does anyone have any idea what could cause this issue or how we can further > debug it? Are you logging checkpoints? If not, you should, if so, then see if they correllate to the time of the slowdown..? Thanks, S

Re: [PERFORM] PG as in-memory db? How to warm up and re-populate buffers? How to read in all tuples into memory?

2012-02-26 Thread Stephen Frost
* Stefan Keller (sfkel...@gmail.com) wrote: > So, are there any developments going on with PostgreSQL as Stephen > suggested in the former thread? While the idea has been getting kicked around, I don't know of anyone actively working on developing code to implement it.

Re: [PERFORM] unlogged tables

2011-11-11 Thread Stephen Frost
bles? I'm not aware of any issues (beyond those already documented for async commit..) with having async commit and unlogged tables. THanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] hstore query: Any better idea than adding more memory?

2011-10-23 Thread Stephen Frost
emory at the time of the last shut-down, but I'm not sure that would help your case either since you're rebuilding everything every night and that's what's trashing your buffers (because everything ends up getting moved around). You might actually want to consider if that's doing more harm than good for you. If you weren't doing that, then the cache wouldn't be getting destroyed every night.. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] hstore query: Any better idea than adding more memory?

2011-10-23 Thread Stephen Frost
e that. If there's a lot of updates/changes to this table, you might check if there's a lot of bloat (check_postgres works great for this..). Eliminating excessive bloat, if there is any, could help with all accesses to that table, of course, since it would reduce the amount of data which would need to be. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Query optimization using order by and limit

2011-09-25 Thread Stephen Frost
be trivial, but it certainly would be nice as this strikes me as a very common use-case. > If you're stuck with this table arrangement, one thing that would help > is a two-column index on (host_guid, firstloadtime) on each child table. Agreed, I mentioned this to the OP previousl

Re: [PERFORM] Query optimization using order by and limit

2011-09-22 Thread Stephen Frost
using 64bit integers and would allow you to use all the PG date/time functions and operators. Just a thought. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Query optimization using order by and limit

2011-09-22 Thread Stephen Frost
he latest and pulls whatever records it can from each day and then stops once it hits the limit. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Prepared statements and suboptimal plans

2011-09-20 Thread Stephen Frost
epared queries and constraint exclusion..? Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Prepared statements and suboptimal plans

2011-09-20 Thread Stephen Frost
ou don't need to reset it since a new connection will get the default). Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Postgres INSERT performance and scalability

2011-09-19 Thread Stephen Frost
data before copying it.. If you INSERT .. SELECT, you're going to get the real data in the WAL, and also in the heap of the new table.. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Postgres INSERT performance and scalability

2011-09-19 Thread Stephen Frost
testing it to see exactly what happens, of course.. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Postgres INSERT performance and scalability

2011-09-19 Thread Stephen Frost
ince it all has to end up on disk at some point). Not much point in having the overhead of COW for that kind of environment, I wouldn't think. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Allow sorts to use more available memory

2011-09-12 Thread Stephen Frost
ll to the memory-based FS. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Allow sorts to use more available memory

2011-09-12 Thread Stephen Frost
just up it for specific queries that may benefit from it. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Postgres for a "data warehouse", 5-10 TB

2011-09-11 Thread Stephen Frost
t to 100GB... ;) I agree that it shouldn't be the default, however. That's asking for trouble. Do it for the specific queries that need it. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Postgres for a "data warehouse", 5-10 TB

2011-09-11 Thread Stephen Frost
go into swap. Note that you can set work_mem for a given session after you connect to the database, just do: set work_mem = '1GB'; in your session before running other queries. Doing that won't impact other sessions. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Postgres for a "data warehouse", 5-10 TB

2011-09-11 Thread Stephen Frost
igure out if it can hash the small table (you want that to happen, trust me..). If you do end up having sorts, it'll also use the work_mem value to figure out how much memory to use for sorting. > So... Can Postgres support a 5-10 TB database with the use pattern > stated above?

Re: [PERFORM] RAID Controller (HP P400) beat by SW-RAID?

2011-09-11 Thread Stephen Frost
t it's the controller that's really the issue here.. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Recommended optimisations slows down PostgreSQL 8.4

2011-08-12 Thread Stephen Frost
rt back to a daily backup in the event the OS reboots due to some wacky NMI, or the ASR going haywire.. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Oracle v. Postgres 9.0 query performance

2011-06-08 Thread Stephen Frost
ecent and you've got a lot of memory available for kernel cacheing, should be quick. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] FUSION-IO io cards

2011-04-29 Thread Stephen Cook
On 4/29/2011 10:24 AM, Mark Steben wrote: Hi, Had a recent conversation with a tech from this company called FUSION-IO. They sell io cards designed to replace conventional disks. The cards can be up to 3 TB in size and apparently are installed in closer proximity to the CPU than the disks are.

Re: [PERFORM] oom_killer

2011-04-21 Thread Stephen Frost
total memory per say. There's probably something else that's trying to grab all the memory and then tries to use it and PG ends up getting nailed because the kernel over-attributes memory to it. You should be looking for that other process.. Thanks, Stephen sign

Re: [PERFORM] maintenance_work_mem + create index

2011-03-24 Thread Stephen Frost
from the same problem that work_mem has, specifically that PG still won't allocate more than 1GB of memory for any single operation. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] application of KNN code to US zipcode searches?

2011-02-17 Thread Stephen Frost
* Mark Stosberg (m...@summersault.com) wrote: > Recommendations? PostGIS, geometry columns, and UTM.. I'm not sure where they are wrt adding KNN support, but it's something they've been anxious to have for a while, so I expect support will come quickly. Thanks,

Re: [PERFORM] Does exclusive locking improve performance?

2011-02-16 Thread Stephen Frost
Does it have less work to do? That's a bit harder to say but my guess is "not so much that you'd actually be able to notice it.".. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] How to best use 32 15k.7 300GB drives?

2011-01-28 Thread Stephen Frost
ex or > cluster. Just to share my experiences- I've found that creating a new table and inserting into it is actually faster than doing full-table updates, if that's an option for you. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] How to best use 32 15k.7 300GB drives?

2011-01-28 Thread Stephen Frost
be even *faster* would be the run all 5 of those queries against the child tables in parallel (given that you have over 5 CPUs and enough memory that you don't start swapping). If it's still too big on the per-child basis, you might be able to use conditionals to do the first 100 strands, then the next hundred, etc. >I appreciate the comments thus far. Let's hope you'll always appreciate them. :) Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] How to best use 32 15k.7 300GB drives?

2011-01-28 Thread Stephen Frost
When you run top, is your PG process constantly in 'D' state, or is it in 'R' state, or what? Might help figure some of that out. Note that parallelizing the query will help regardless of if it's disk bound or CPU bound, when you're running on the kind of hardware you're talking about (lots of spindles, multiple CPUs, etc). Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] High load,

2011-01-27 Thread Stephen Frost
en checkpoints, so that the checkpoints aren't as big and painful. That can be done by making the background writer more aggressive. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] large dataset with write vs read clients

2010-10-07 Thread Stephen Frost
all the same actual memory, not 100M per process. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] large dataset with write vs read clients

2010-10-07 Thread Stephen Frost
#x27;t great, but honestly is surprisingly good all things > considered. I'm kind of suprised at each connection taking 100MB, especially ones which are just doing simple inserts. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] large dataset with write vs read clients

2010-10-07 Thread Stephen Frost
running out of memory. > I think the first thing to do is look into using a connection pooler > like pgpool to reduce your connection memory overhead. Yeah.. Having the number of database connections be close to the number of processors is usually recommended. Stephen signature.asc Description: Digital signature

Re: [PERFORM] [HACKERS] MIT benchmarks pgsql multicore (up to 48)performance

2010-10-07 Thread Stephen Frost
es atomic changes instead of spinlocks for certain locking situations.. If that's all the MIT folks did, they certainly made it sound like alot more. :) Stephen signature.asc Description: Digital signature

Re: [PERFORM] [HACKERS] MIT benchmarks pgsql multicore (up to 48)performance

2010-10-06 Thread Stephen Frost
could try to replicate the lseek() contention? I can give it a shot, but the impression I had from the paper is that the lseek() contention wouldn't be seen without the changes to the lock manager...? Or did I misunderstand? Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] [HACKERS] MIT benchmarks pgsql multicore (up to 48)performance

2010-10-06 Thread Stephen Frost
ntly useful to test with.. Stephen signature.asc Description: Digital signature

Re: [PERFORM] Slow SQL lookup due to every field being listed in SORT KEY

2010-09-10 Thread Stephen Frost
which can often be due to missing pieces from the JOIN clause or misunderstanding of the database schema...). Stephen signature.asc Description: Digital signature

Re: [PERFORM] Slow SQL lookup due to every field being listed in SORT KEY

2010-09-10 Thread Stephen Frost
etting to use...)? Increasing work_mem is often a good idea if your system can afford it based on the number/kind of queries running concurrently. Note that you can also increase that setting for just a single role, single session, or even single query. Thanks, Stephen signature.as

Re: [PERFORM] Understanding tsearch2 performance

2010-07-14 Thread Stephen Frost
x27;s entirely possible that the index is *not* the fastest way to pull this data (it's nearly 10% of the table..), if the stats were better it might use a seq scan instead, not sure how bad the cost of the filter itself would be. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Question about partitioned query behavior

2010-07-06 Thread Stephen Frost
included (which, really, shouldn't be that big a deal). Did you look at what the other reply suggested? Do you have constraint_exclusion = 'on' in your postgresql.conf? Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] SeqScans on boolen values / How to speed this up?

2010-07-05 Thread Stephen Frost
ULL) OR > (persons.modified > indexing_persons.indexed)) >-> Seq Scan on persons (cost=0.00..4438.29 > rows=143629 width=16) (actual time=0.000..56.000 rows=143629 loops=1) >-> Hash (cost=2534.86..2534.86 rows=142286 width=16) > (actual tim

Re: [PERFORM] requested shared memory size overflows size_t

2010-06-02 Thread Stephen Frost
r any other PG operations (PG would use at most 4GB-shared_buffers, or so). Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Overusing 1 CPU

2010-06-02 Thread Stephen Frost
tabase. If you're building alot of indexes then you probably want to split up the statements into multiple connections and run them in parallel. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] PostgreSQL Function Language Performance: C vs PL/PGSQL

2010-06-01 Thread Stephen Frost
built-ins now available in 8.4 (array_agg), that copying doesn't happen any more. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] PostgreSQL Function Language Performance: C vs PL/PGSQL

2010-05-26 Thread Stephen Frost
to be an overall improvment of, say, 10%, or a 10-fold improvment. :) Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] PostgreSQL Function Language Performance: C vs PL/PGSQL

2010-05-26 Thread Stephen Frost
saction. That's not really relevant.. Is it called alot from the same backend/database connection? If so, and if you're using regular SELECT statements and the like (not EXECUTE), then they're getting prepared the first time they're used and that is kept across transactions.

Re: [PERFORM] PostgreSQL Function Language Performance: C vs PL/PGSQL

2010-05-26 Thread Stephen Frost
these stored procedures from within a C-based function which > does the logging, math, control logic, and builds the result sets and > cursors? Uhh, I'd guess 'no' to that one. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Optimize date query for large child tables: GiST or GIN?

2010-05-21 Thread Stephen Frost
ly efficient way (not doing seq. scans through everything because you're operating on every row for something). It needs to be a couple hundred-thousand rows, but it doesn't need to be the full data set, imv. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] Optimize date query for large child tables: GiST or GIN?

2010-05-20 Thread Stephen Frost
s in your partitioning setup. What is constraint_exclusion set to? What version of PG is this? Do the results og this query look at all correct to you? Have you considered an index on elevation, btw? How many records in that city table are there and how many are actually in that range? Thanks,

Re: [PERFORM] Optimize date query for large child tables: GiST or GIN?

2010-05-20 Thread Stephen Frost
day > user_stop_year || user_stop) THEN m.taken BETWEEN (user_start_year || user_start_day)::date AND ((user_stop_year || user_stop)::date + '1 year'::interval)::date -- I don't think you need/want this..? -- GROUP BY

Re: [PERFORM] Optimize date query for large child tables: GiST or GIN?

2010-05-20 Thread Stephen Frost
sure that those constraints are really the right ones and that they make sense? You're using a bunch of extract()'s there too, why not just specify a CHECK constraint on the date ranges which are allowed in the table..? Maybe I've misunderstood the whole point here, but I don't think so. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] too complex query plan for not exists query and multicolumn indexes

2010-03-19 Thread Stephen Frost
y more complicated). > As in my previous tests, this is only a testing environment: so all data > is in memory, no disk activity involved at all, no swap etc. Yea, system calls still aren't free. I would recommend, if you care about this query, bumping up your work_mem setting for it. Right now, PG is using an external sort (meaning- on-disk), but the data set appears to only be like 50M (49560kB). If you increased work_mem to, say, 128MB (for this query, maybe or maybe not for the entire system), it'd be able to do an in-memory sort (or maybe a hash or something else, if it makes sense), which would be faster. I'd probably rewrite this as a left-join too, to be honest, but based on what I'm saying, that'd probably get the same query plan as you had first anyway (the merge anti-join), so it's probably not necessary. I'd love to hear how PG performs with work_mem bumped up to something decent... Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] mysql to postgresql, performance questions

2010-03-18 Thread Stephen Frost
are almost the > same). What's the best tool to time queries in postgresql? Can this be > done from pgadmin? As was mentioned elsewhere, certainly the best tool to test with is your actual application, if that's possible.. Or at least the language your application is in. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] PostgreSQL - case studies

2010-02-10 Thread Stephen Frost
nt is that its 1.7TB. There's a few other smaller databases on that system too. PG handles it quite well, though this is primairly for data-mining. Thanks, Stephen signature.asc Description: Digital signature

Re: [PERFORM] "large" spam tables and performance: postgres memory parameters

2010-01-07 Thread Stephen Frost
code to do and do well though, so you really have to consider it carefully and make sure it will help your important use cases (and not too badly impact your other use cases) before going that route. autovacuum is your friend.. though you might need to tune it. Thanks, Stephen signature.asc Description: Digital signature

  1   2   3   >