Re: [GENERAL] Raid 10 settings for optimal postgres performance?

2010-03-03 Thread Greg Smith
sts with bonnie++ to make sure the array is performing as expecting. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us

Re: [GENERAL] Larger volumes of chronologically ordered data and the planner

2010-03-03 Thread Greg Smith
" at http://www.westnet.com/~gsmith/content/postgresql/ if you want to know exactly how this is all implemented. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-

Re: [GENERAL] Scratching my head why results are different between machines.

2010-03-04 Thread Greg Stark
ce which as i recall was a *16* bit interface. I'm not sure what exactly that means but as a result the 32-bit odbc configuration is entirely separate from the "regular" odbc configuration. It's not the instruction set that the dll uses it's which set of shared data struct

Re: [GENERAL] kernel version impact on PostgreSQL performance

2010-03-05 Thread Greg Smith
on by default, which unfortunately happens to be much slower operation by default too. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make ch

Re: [GENERAL] [NOVICE] How to read oracle table's data from postgre

2010-03-08 Thread Greg Smith
y inactive. I expect SQL/MED plans for the next release may get fleshed out at this year's developer's meeting in a couple of months, should have a better idea who might be working on this by the end of May. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Se

Re: [GENERAL] kernel version impact on PostgreSQL performance

2010-03-08 Thread Greg Smith
bad on benchmarks if the writer doesn't understand how database commits to disk work--which seems to the case at Phoronix. They really are not running the right sort of PostgreSQL benchmarks at all over there. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Trainin

Re: [GENERAL] autovacuum question

2010-03-09 Thread Greg Stark
the entire snapshot which might be able to bring the performance up to the same level and hopefully allocate all the blocks sequentially. -- greg -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] kernel version impact on PostgreSQL performance

2010-03-09 Thread Greg Smith
using something like sysbench first[1], and if those numbers come back higher than disk RPM rate declare the combination unusable for PostgreSQL purposes rather than reporting on the fake numbers. [1] http://www.westnet.com/~gsmith/content/postgresql/pg-benchmarking.pdf , page 26 -- Gr

Re: [GENERAL] has_schema_privilege function

2010-03-09 Thread Greg Stark
ans to perl variables differently or Postgres will change the text representation then you could alter the SQL to say something like CASE WHEN has_schema_privilege() THEN 1 ELSE 0 END or whatever constant you prefer like 'yes' and 'no' or 'ok' and ''. --

Re: [GENERAL] warm standby possible with 8.1?

2010-03-09 Thread Greg Smith
. But 8.1 isn't capable of applying log files one at a time; it applies whatever you've got, and then it's done with recovery and transitions to live. You can't just stop the result and then feed it the next file, as you've already discovered through experimentati

Re: [GENERAL] SAS Raid10 vs SATA II Raid10 - many small reads and writes

2010-03-11 Thread Greg Smith
aybe it's worth the trouble to model each possibility against your workload, with accurate numbers to substitute into any such guess. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent via pgsql-general

Re: [GENERAL] log_statement and syslog severity

2010-03-11 Thread Greg Smith
me logging messages I can process?" is still quite open in my mind. The idea Magnus was already suggesting here, to add an alternate "pipe" destination, would be one useful step forward here. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g

Re: [GENERAL] hardware for a server

2010-03-15 Thread Greg Smith
e perspective of a database person. If your image data has to be high performance, too, maybe an even 4/4 split between OS+data and DB+xlog would make more sense for your app. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www

Re: [GENERAL] Options for fsync?

2010-03-15 Thread Greg Smith
available: write-back cache enabled when battery works, write-through [cache disabled] if doesn't. Make sure you setup monitoring alerts via e-mail for drive and battery failures too; test them out by yanking at drive before the server goes into production if you can. -- Greg

Re: [GENERAL] hardware for a server

2010-03-16 Thread Greg Smith
recommend them only because their performance used to lag relative to some of the alternatives--they were more the "reliable but a bit slower" choice in earlier times. This is no longer the case. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Supp

Re: [GENERAL] hardware for a server

2010-03-16 Thread Greg Smith
Bruce Momjian wrote: Greg Smith wrote: Given what you've said about your budget here, I suspect that you're heading toward either 3ware or LSI and all SATA drives. I wouldn't expect that big of a performance difference between the two with only 8 drives on there. If you ha

Re: [GENERAL] hardware for a server

2010-03-16 Thread Greg Smith
e RAID-1 for the boot drive in particular is more difficult to manage and recover from failures with. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-general@postgresq

Re: [GENERAL] stopping processes, preventing connections

2010-03-17 Thread Greg Smith
he keepalive handling on the server side. Did you mention your PostgreSQL server version and platform? I didn't see the exact code path you're stuck in during a quick look at the code involved (using a snapshot of recent development), which makes me wonder if this isn'

Re: [GENERAL] pgreplay log file replayer released

2010-03-22 Thread Greg Stark
d executes them in the same order > and relative time against a PostgreSQL database cluster. Do you have a multi-threaded model that tracks which transactions each query belonged to and runs them concurrently like they were in the original setup? That's what I've been looking for. -- g

Re: [GENERAL] Reducing excess files in pg_xlog

2010-03-22 Thread Greg Smith
you haven't seen it drop yet. I'm assuming you don't have WAL shipping turned on by setting archive_command. There can also be an excess of these segments that can't be cleaned up if your archiving scheme fails. -- Greg Smith 2ndQuadrant US Baltimore, MD Pos

Re: [GENERAL] strange

2010-03-22 Thread Greg Smith
e and operating system Szymon is using if you suspect this is the case. I keep hearing about systems where this is slow, but despite claims that they're common I've never actually seen one. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g

Re: [GENERAL] Warm Standby Setup Documentation

2010-03-26 Thread Greg Smith
fail-over, just start shipping from the new primary to that 3rd server, now the replacement standby, and sync any files it doesn't have. Then switch it into recovery. Much faster than doing a new base backup from the standby on larger systems. -- Greg Smith 2ndQuadrant US Baltimore

Re: [GENERAL] Solid State Drives with PG

2010-03-26 Thread Greg Smith
e involved and the fast write speed, it's certainly feasible to just flush at power loss every time rather than what the BBWC products do--recover once power comes back. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www

Re: [GENERAL] Warm Standby Setup Documentation

2010-03-28 Thread Greg Smith
nly is a source of overhead on mostly idle systems. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http

Re: [GENERAL] Warm Standby Setup Documentation

2010-03-28 Thread Greg Smith
Bryan Murphy wrote: On Fri, Mar 26, 2010 at 1:32 PM, Greg Smith <mailto:g...@2ndquadrant.com>> wrote: If there's another server around, you can have your archive_command on the master ship to two systems, then use the second one as a way to jump-start this whole p

Re: [GENERAL] Simultaneous write requests

2010-03-28 Thread Greg Smith
Vitali Xevet wrote: How does Postgres handle concurrent write requests? http://www.postgresql.org/docs/current/static/transaction-iso.html describes how they're isolated and can potentially interact with one another. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Tra

Re: [GENERAL] Processor speed relative to postgres transactions per second

2010-03-29 Thread Greg Smith
at the current limiter is. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] playr (or similar tool)?

2010-03-29 Thread Greg Smith
the myYearbook guys at this year's PG East last week, I discovered that it (and their other tools such as staplr and golconde) are now at http://github.com/myYearbook/ instead of the area51.myyearbook.com site things used to be hosted at. -- Greg Smith 2ndQuadrant US Baltimore, MD Postg

Re: [GENERAL] Wiki Updates - 9.0

2010-03-30 Thread Greg Smith
people fill in the details – but didn’t see a way to register... No, just sign up for a community account as described on the main page of the wiki. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent vi

Re: [GENERAL] pgreplay log file replayer released

2010-04-01 Thread Greg Smith
I just summarized some of the discussion on this thread and created a wiki page that starts to cover each of the three tools now available for this job: http://wiki.postgresql.org/wiki/Statement_Playback -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g

Re: [GENERAL] Solid State Drives with PG

2010-04-07 Thread Greg Smith
hem anyway is their ruggedness under really bad failure conditions that direct-attached storage can struggle with. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-gener

Re: [GENERAL] Cannot read block 348938 of pdbsynchtable

2010-04-08 Thread Greg Stark
eting any data on it you could do something like: dd if=/dev/zero of=25205.2 bs=8192 seek=$(( 348938 - 2 * 128 * 1024)) count=1 -- greg -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] When is an explicit cast necessary?

2010-04-09 Thread Greg Smith
There was a major breaking change to how casting is handled in 8.3. Some good reading about what happened: http://www.depesz.com/index.php/2008/05/05/error-operator-does-not-exist-integer-text-how-to-fix-it/ http://petereisentraut.blogspot.com/2008/03/readding-implicit-casts-in-postgresql

Re: [GENERAL] When is an explicit cast necessary?

2010-04-09 Thread Greg Smith
ach work fine on their own, but chain them together by making one run against a subquery of the other and you can get mysteriously burned when things aren't equal the way you expected. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadra

Re: [GENERAL] Upcoming hot standby replication question

2010-04-09 Thread Greg Smith
But there are zero guarantees that will be the case, or that latency will be bounded at all. Recommended practice is to carefully monitor how much latency lag there is on the standby and trigger alerts if it exceed your expectations. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Tr

Re: [GENERAL] Upcoming hot standby replication question

2010-04-09 Thread Greg Smith
standby to receive the data into memory (AKA semi-synchronous) fsync: The standby must have committed the data to disk such that it won't be lost in case of a crash (AKA synchronous) apply: That data must actually be fully processed and available for queries against the standby -- Greg Smith

Re: [GENERAL] Dynamic Catalog Views

2010-04-13 Thread Greg Smith
or later) to log when work_mem is being exceeded and sorts are going to disk. That's really it; the rest of the sort of data that's available in the v$ views isn't exposed in nearly as much detail in PostgreSQL yet. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Traini

Re: [GENERAL] psql's \d display of unique index vs. constraint

2010-04-13 Thread Greg Smith
ghtforward patch to write with clear value, which we can always use more of. I added it to http://wiki.postgresql.org/wiki/Prioritised_Todo#psql so people looking for an easy patch to chew on one day can find it. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Sup

Re: [GENERAL] pl/java status

2010-04-13 Thread Greg Smith
mp;group_id=138&func=browse like lack of support for JDK 1.6 and some known complier issues. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-general@post

Re: [GENERAL] VACUUM process running for a long time

2010-04-14 Thread Greg Smith
this problem once, rather than continuing to fight it a little every single day forever. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2ndquadrant.com www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org

Re: [GENERAL] solaris tarballs and pl/java

2010-04-15 Thread Greg Smith
64 bit builds, and you seem to have run into a divergence between the two. As for mailing lists, you can try http://lists.pgfoundry.org/pipermail/pljava-dev/ for things specific to building it. -- Greg Smith 2ndQuadrant US Baltimore, MD PostgreSQL Training, Services and Support g...@2

Re: [GENERAL] pg_dump not including custom CAST based on table types

2011-10-19 Thread Greg Jaskiewicz
On 18 Oct 2011, at 20:17, Tom Lane wrote: > =?ISO-8859-1?Q?Fr=E9d=E9ric_Rejol?= writes: >> I created a custom CAST to cast from one table type to another. >> pg_dump does not include my custom CAST. > > Hmm. The reason for that is that the table types aren't considered > dumpable objects. I s

Re: [GENERAL] pg_dump schma while excluding specific table

2011-11-03 Thread Greg Williamson
-v product_feed_data_ COMMENT ON TABLE product_key IS 'A temporary table used to sync product_feed_data.does_exist_in_product.  ... HTH, Greg Williamson -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Performance degradation 8.4 -> 9.1

2011-11-18 Thread Greg Smith
get a better response on the lower volume pgsql-performance mailing list too. -- Greg Smith 2ndQuadrant USg...@2ndquadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make

Re: [GENERAL] Hope for a new PostgreSQL era?

2011-12-09 Thread Greg Smith
t. And the earlier the better--since many migrations have a long lead time, just knowing it's coming in the next version would be good enough for some people who are blocked right now to start working on theirs. -- Greg Smith 2ndQuadrant USg...@2ndquadrant.com Baltimore, MD Po

Re: [GENERAL] Hope for a new PostgreSQL era?

2011-12-10 Thread Greg Smith
we'd have to validate whether query prioritization code was operating as expected or not, I imagine some extra monitoring tools really need to get built first. Might as well expose those for people like yourself too, once they're built for that purpose. -- Greg Smith 2ndQuadra

Re: [GENERAL] Hope for a new PostgreSQL era?

2011-12-12 Thread Greg Smith
e this sort of thing easier to build into the core database. For example, the recent "Command Triggers" feature submission will make it easier to catch DDL changes as well as queries for this sort of thing. -- Greg Smith 2ndQuadrant USg...@2ndquadrant.com Baltimore, MD PostgreSQ

Re: [GENERAL] Hope for a new PostgreSQL era?

2011-12-12 Thread Greg Smith
On 12/09/2011 08:54 PM, Greg Smith wrote: I decided about a year ago that further work on using Systemtap was a black hole: time goes in, nothing really usable on any production server seems to come out. My off-list e-mail this weekend has, quite rightly, pointed out that this cheap shot is

Re: [GENERAL] Hope for a new PostgreSQL era?

2011-12-13 Thread Greg Smith
e to be in the PostgreSQL core to be packaged nicely so that you can easily install and use it. It's probably easy for you to get pgAdmin installed and working for example, and that's not a part of core. There's just been a lot more work put into packaging it than most to

Re: [GENERAL] fsync on ext4 does not work

2011-12-20 Thread Greg Smith
28.890 ops/sec Non-Sync'ed 8kB writes: write 112113.908 ops/sec -- Greg Smith 2ndQuadrant USg...@2ndquadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.us -- Sent via pgsql-general mailing list (pgsql-gener

[GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-27 Thread Greg Donald
Tom Lane's post from '06 about how 'sequences are black boxes', but not much else turned up. Surely I don't have to maintain a separate sequence fix-up script to keep with my backups, do I? Thanks. -- Greg Donald -- Sent via pgsql-general mailing list (pgsql-genera

Re: [GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-28 Thread Greg Donald
alls in my SQL file have a '1', like this: SELECT pg_catalog.setval('company_id_seq', 1, false); Some do not have a '1', some are actually set correctly. Thanks. -- Greg Donald -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make change

Re: [GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-28 Thread Greg Donald
back this morning and pulled older backups, from when I was using pg_dump that came with my PostgreSQL 8.4 install. Those backups look fine to me, all the setval() calls are there and correct. So it looks like a problem with the new pg_dump best I can tell. -- Greg Donald -- Sent via pgsql

Re: [GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-28 Thread Greg Donald
id) FROM table_name); to fix things up for me on my local setup. -- Greg Donald -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-28 Thread Greg Donald
rticular bug report form. I may try that version tonight, I actually found 9.1.2 packages http://www.openscg.org/se/postgresql/packages.jsp Maybe my fix will be in there. -- Greg Donald -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

Re: [GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-28 Thread Greg Donald
On Wed, Dec 28, 2011 at 1:00 PM, Tom Lane wrote: > Greg Donald writes: >>> Are you >>> sure that the sequence is being used to insert those values into the >>> table? > >> When I insert a new row into either of the tables I previously >> described, t

Re: [GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-29 Thread Greg Donald
On Wed, Dec 28, 2011 at 4:58 PM, Adrian Klaver wrote: > What is the pg_dump command, with options, you are using? My backup shell script contains: /usr/bin/pg_dump cp | bzip2 > $FILE -- Greg Donald -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make chan

Re: [GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-29 Thread Greg Donald
Wow.. so now I'm doing it wrong? I'll pass, thanks for all your "help" guys. It's been a blast. -- Greg Donald -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-29 Thread Greg Donald
sequences of the same names in different schemas. I have one schema and one database on that one database server. And like I said, it worked fine until 9.1. If it was any of those reasons you suggest, would I not have experienced the same problem back in 8.4? I would think so. -- Greg Dona

Re: [GENERAL] PostgreSQL 9.1 pg_dump setval() sets wrong value

2011-12-29 Thread Greg Donald
anything. Those grep calls prove my old backups with 8.4 pg_dump were good to go and now they are not with 9.1 pg_dump. > I remain unclear as to what state is actually in the > database, or what is being dumped, The whole thing is being dumped. One command /usr/bin/pg_dump cp, that'

Re: [GENERAL] Measuring replication lag time

2012-02-22 Thread Greg Williamson
hich we poll )see the "Monitoring and Testing" section ... study their source code some and see how they come up with lag times. HTH, Greg WiIliamson DBA Powerreviews dot com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: htt

Re: [GENERAL] Optimise PostgreSQL for fast testing

2012-02-23 Thread Greg Smith
NALYZE plans of whatever the slowest single query is. More on that subject at http://wiki.postgresql.org/wiki/Slow_Query_Questions -- Greg Smith 2ndQuadrant USg...@2ndquadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com -- Sent via pgsql-general

Re: [GENERAL] version controlling postgresql code

2012-02-28 Thread Greg Williamson
runtime. I've had unpleasant experiences with commercial tools; CVS works well for simple environments and git can be used for more tangled development work. HTH, Greg Williamson -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.

Re: [GENERAL] A 154 GB table swelled to 527 GB on the Slony slave. How to compact it?

2012-03-16 Thread Greg Williamson
> >Of course events destined to this table will be queued by Slony while the >table is locked. > I've not much recent experience with Slony, but possibly pg_reorg, found at:   <http://pgfoundry.org/projects/reorg/> would be of use ... Greg Williamson -- Sent vi

Re: [GENERAL] pgcon 2012

2012-03-25 Thread Greg Smith
ellent conference. It's also very well run by its organizers, even though they are "private event management" by your definition. -- Greg Smith 2ndQuadrant USg...@2ndquadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com

Re: [GENERAL] create one function to let other user execute vacuum command. got such an error.

2012-03-27 Thread Greg Jaskiewicz
On 28 Mar 2012, at 07:44, Guillaume Lelarge wrote: > On Tue, 2012-03-27 at 18:51 -0700, leaf_yxj wrote: >> create one function to let other user execute vacuum command. got such an >> error. Please help. Thanks. Regards . Grace >> >> rrp=> create function vacuum_f ( tablename char(100))

Re: [GENERAL] Why checkpoint_timeout had maximum value of 1h?

2012-04-02 Thread Greg Smith
hing to consider. I'm not sure if you'll really see the gains you're hoping for, but it should be easy enough to test. -- Greg Smith 2ndQuadrant USg...@2ndquadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com -- Sent

Re: [GENERAL] oracle linux

2012-04-03 Thread Greg Smith
Of course a several year newer kernel runs much faster on latest generation hardware. -- Greg Smith 2ndQuadrant USg...@2ndquadrant.com Baltimore, MD PostgreSQL Training, Services, and 24x7 Support www.2ndQuadrant.com -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To

Re: [GENERAL] trimming a column

2012-05-03 Thread Greg Williamson
The trim function needs to be told what sort of trim to do -- Following the 9.1 manual (you did not specify which version of postgres you are using) try:   UPDATE mytable SET id = trim(both ' ' from id). (untested) See <http://www.postgresql.org/docs/9.1/static/functions-s

Re: [GENERAL] Ubuntu for servers (was TurnKey PostgreSQL)

2008-12-08 Thread Greg Smith
el is going under every single day. Nobody seem to care anymore about focusing on any individual kernel version long enough to squash its bugs right anymore; those will all get fixed in the next version, right? -- * Greg Smith [EMAIL PROTECTED] http://www.gregsmith.com Baltimore, MD -- Sent

Re: [GENERAL] The future of Solaris?

2008-12-10 Thread Greg Smith
g badly for "quite a few years", but the only serious divergence from its competitors was only this year. Sun would be doing better right now had they not decided to light $1B on fire back in January, that's where their stock really accelerated its dive downward. RedHat is actually

Re: [GENERAL] Startup process thrashing

2008-12-10 Thread Greg Smith
e hard pressed to execute any manual recovery that's any safer or more efficient than that is. Someone else may be able to point you toward better estimating how far it's got left to go, I haven't ever been stuck in your position for long enough before to figure that out myself. Go

Re: [GENERAL] Startup process thrashing

2008-12-10 Thread Greg Smith
ut This isn't a real popular time of day for this list, some get some more ideas might show up once our many European members start posting in volume. As a general aside, if you ever find yourself in this position again, where you've got an urgent database problem, something y

Re: [GENERAL] Maximum reasonable free space map

2008-12-17 Thread Greg Stark
if you have 40M rows and 10% are updated each day they might all be on different pages. Also, it's not really the end of the world if the FSM doesn't track every single page with free space -- as long as it tracks enough to cover your usage until the next vacuum. Thankfully all this is go

Re: [GENERAL] Pet Peeves?

2009-01-29 Thread Greg Smith
cently or still have open issues, I'd be curious to get your feedback about that piece. -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.pos

Re: [GENERAL] Pet Peeves?

2009-01-29 Thread Greg Smith
progress toward returning to where the right plan was preferred one. The flip side is that as it is right now, it's also hard to answer the question "how close am I to having this plan fail?" until it already has. I know there's been some academic work in this area as part of

Re: [GENERAL] Pet Peeves?

2009-01-29 Thread Greg Smith
hen it comes to concurrency. There were two Varlena postings on this and one other good article. I got sick of not being to find them every time I wanted to and added links to them all at http://wiki.postgresql.org/wiki/Slow_Counting -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.co

Re: [GENERAL] PGSQL or other DB?

2009-01-30 Thread Greg Smith
tabase you're considering with a many clients going at once as you can simulate. -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Pet Peeves?

2009-01-31 Thread Greg Stark
y have PostgreSQL up and running. -- greg -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Pet Peeves?

2009-01-31 Thread Greg Stark
On Sat, Jan 31, 2009 at 5:34 PM, Octavio Alvarez wrote: > > It doesn't really matter. Since crosstabs are just a presentational > variation to a query with aggregate functions and GROUP BY clauses, Why are crosstabs just a presentation issue any more than GROUP BY or ORDER

Re: [GENERAL] Pet Peeves?

2009-02-01 Thread Greg Smith
y the right thing for 8.3 already but could be smarter, it includes some parameters that aren't there in 8.2, and doesn't work at all on 8.1 or earlier. If you step outside of just free solutions, Enterprise DB's commercial server product does more complicated autotuning via their

Re: [GENERAL] Pet Peeves

2009-02-01 Thread Greg Smith
On Sat, 31 Jan 2009, Adam Rich wrote: - lack of queryable high-water marks useful for tuning What specific things would you consider important to track a high-water mark for that aren't already there? -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sen

Re: [GENERAL] R: R: complex custom aggregate function

2009-02-02 Thread Greg Stark
he data passed to the function... You need to make a subquery with the ORDER BY on it. Postgres won't re-order an ORDER BY in a subquery to happen outside the outer query. So something like select perl_function(foo) from (select foo from table order by bar) -- greg -- Sent via pgsql-ge

Re: [GENERAL] Pet Peeves?

2009-02-03 Thread Greg Stark
I haven't thought hard about the pros and cons of adding more info to pg_locks versus implementing redundant logic in SQL to mirror C code. Neither seems terribly enticing offhand. I wonder if anybody else has already implemented something like lock_conflicts()? -- greg -- Sent vi

Re: [GENERAL] Pet Peeves?

2009-02-03 Thread Greg Smith
On Tue, 3 Feb 2009, Greg Stark wrote: Notably, there's no indication of which lock wait queue the ungranted locks are in. That means to find out what's blocking a lock would require comparing every other lock to it and deciding whether it conflicts. The tool I find myself wanting

Re: [GENERAL] Pet Peeves?

2009-02-03 Thread Greg Stark
> Dunno. Could such a thing live in userland, or would it have to be > compiled in? Sure, it's just tedious and error-prone. You compare all the fields of pg_locks and implement the same rules our locking code follows. -- greg -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Pet Peeves?

2009-02-03 Thread Greg Stark
to mark tuples as >> committed when inserting them into newly added pages without WAL: > > I'll take this for 8.5. This was proposed once already and some difficulties were identified. Do you remember what they were? -- greg -- Sent via pgsql-general mailing list (pgsql-genera

Re: [GENERAL] Pet Peeves?

2009-02-03 Thread Greg Smith
et of that topic, figuring out which indexes you don't need. -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Pet Peeves?

2009-02-03 Thread Greg Stark
#x27;t know which Christopher was thinking of, apparently not the latter based on his subsequent response. But in case anyone else was or simply hadn't realized there were two different conceptions of this I wanted to draw the distinction. -- greg -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Pet Peeves?

2009-02-05 Thread Greg Stark
tools, and also creates a huge bottleneck. -- greg -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] warm database, tape device backup

2009-02-06 Thread Greg Smith
n to the manual here. -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] Good Delimiter for copy command

2009-02-12 Thread Greg Smith
avoid all sorts of headaches is to use pgloader: http://pgfoundry.org/projects/pgloader/ which will save the rows that are rejected for some reason, which is usually what happens when there's a delimiter issue. You can then edit those by hand to work around random odd delimiter problems. --

Re: [GENERAL] clearing the buffer cache

2009-02-14 Thread Greg Smith
ecords to wipe out the cache. You can use contrib/pg_buffercache to confirm the function is doing what you expect. -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subs

Re: [GENERAL] clearing the buffer cache

2009-02-16 Thread Greg Smith
than asking the kernel to drop its caches? fillmem/flushdisk also work with kernels before 2.6.16, which means that it's not avaialble on still common platforms (RHEL4 for example). If you've got drop_caches, it's the better approach, that pages gives an answer if you don

Re: [GENERAL] High cpu usage after many inserts

2009-02-23 Thread Greg Smith
Shouldn't someone have ranted about RAID-5 by this point in the thread? -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] High cpu usage after many inserts

2009-02-24 Thread Greg Williamson
stance <http://www.miracleas.com/BAARF/RAID5_versus_RAID10.txt>. HTH, Greg Williamson -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

Re: [GENERAL] max_fsm_relations

2009-02-27 Thread Greg Smith
n this case (like many of the other parameters in that class) because the parameter changes a shared memory allocation, which is only done at startup. -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) T

Re: [GENERAL] Detemine database size on Postgres 8.0

2009-03-02 Thread Greg Smith
AS kb FROM pg_class; But that might have been 8.0. There is an example of a script like you describe on starting on P88 of Bruce's presentation at http://momjian.us/main/writings/pgsql/administration.pdf -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sen

Re: [GENERAL] Postgres Cookbook

2009-03-04 Thread Greg Smith
tgres/cookbook/ Even though that is mainly aimed at older versions, there are a lot of neat PL/PGSQL examples there that you might wrangle into working against a current one. -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sent via pgsql-general mailing list (

Re: [GENERAL] BufferSync() performance

2009-03-05 Thread Greg Smith
n about it. -- * Greg Smith gsm...@gregsmith.com http://www.gregsmith.com Baltimore, MD -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

<    5   6   7   8   9   10   11   12   13   14   >