Re: [GENERAL] mild modification to pg_dump

2017-11-17 Thread Ron Johnson
What about the pgpass file? https://www.postgresql.org/docs/9.2/static/libpq-pgpass.html On 11/17/2017 03:06 PM, marcelo wrote: I need to "emulate" the pg_dump code because the password prompt. Years ago I write a program (for the QnX environment) that catched some prompt and emulates the sta

Re: [GENERAL] mild modification to pg_dump

2017-11-17 Thread Ron Johnson
On 11/17/2017 02:23 PM, John R Pierce wrote: On 11/17/2017 12:19 PM, marcelo wrote: Sorry, I was not exact. I don't need nor like to change pg_dump. Rather, based on pg_dump code, I need to develop a daemon which can receive a TCP message (from a privileged app) containing some elements: the d

Re: [GENERAL] pg_restore load data

2017-11-16 Thread Ron Johnson
On 11/16/2017 03:13 PM, bricklen wrote: On Thu, Nov 16, 2017 at 1:07 PM, Ron Johnson <mailto:ron.l.john...@cox.net>> wrote: v9.2.7  (Yes, I know, it's old.  Nothing I can do about it.) During a "whole database" restore using pg_restore of a custom dump, w

[GENERAL] pg_restore load data

2017-11-16 Thread Ron Johnson
Hi, v9.2.7  (Yes, I know, it's old.  Nothing I can do about it.) During a "whole database" restore using pg_restore of a custom dump, when is the data actually loaded?  I've looked in the list output and don't see any "load" statements. Thanks -- World Peace Through Nuclear Pacification

[GENERAL] Converting AGE() to something human readable

2017-11-06 Thread Ron Johnson
Hi, How is this done in v8.4? postgres=# SELECT datname, datfrozenxid, age(datfrozenxid) postgres-# FROM pg_database;   datname  | datfrozenxid |    age ---+--+--- template1 |   3603334165 |  25735089 template0 |   3603470462 |  25598792 postgres  |   3576970250 |  52

Re: [GENERAL] Old pg_clog files

2017-10-29 Thread Ron Johnson
On 10/29/2017 03:37 PM, David G. Johnston wrote: On Sunday, October 29, 2017, Ron Johnson <mailto:ron.l.john...@cox.net>> wrote: Hi, v8.4.17 http://www.postgresql-archive.org/pg-clog-questions-td2080911.html <http://www.postgresql-archive.org/pg-clog-questions-td

[GENERAL] Old pg_clog files

2017-10-29 Thread Ron Johnson
Hi, v8.4.17 http://www.postgresql-archive.org/pg-clog-questions-td2080911.html According to this old thread,  doing a VACUUM on every table in the postgres, template1 and TAPd databases should remove old pg_clog files. postgres=# SELECT datname, age(datfrozenxid) FROM pg_database;   datname 

Re: [GENERAL] Finally upgrading to 9.6!

2017-10-18 Thread Ron Johnson
On 10/18/2017 10:16 AM, Igal @ Lucee.org wrote: On 10/18/2017 7:45 AM, Ron Johnson wrote: On 10/18/2017 09:34 AM, Igal @ Lucee.org wrote: A bit off-topic here, but why upgrade to 9.6 when you can upgrade to 10.0? There's no way we're going to put an x.0.0 version into producti

Re: [GENERAL] Finally upgrading to 9.6!

2017-10-18 Thread Ron Johnson
On 10/18/2017 09:34 AM, Igal @ Lucee.org wrote: On 10/18/2017 6:24 AM, Ron Johnson wrote: On 10/17/2017 11:17 AM, Tom Lane wrote: Ron Johnson writes: Where can I look to see (roughly) how much more RAM/CPU/disk needed when moving from 8.4 and 9.2? It's entirely possible you'll

Re: [GENERAL] Finally upgrading to 9.6!

2017-10-18 Thread Ron Johnson
On 10/17/2017 11:17 AM, Tom Lane wrote: Ron Johnson writes: Where can I look to see (roughly) how much more RAM/CPU/disk needed when moving from 8.4 and 9.2? It's entirely possible you'll need *less*, as you'll be absorbing the benefit of several years' worth of performanc

[GENERAL] Finally upgrading to 9.6!

2017-10-17 Thread Ron Johnson
Where can I look to see (roughly) how much more RAM/CPU/disk needed when moving from 8.4 and 9.2? Thanks -- World Peace Through Nuclear Pacification -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/

Re: [GENERAL] Using cp to back up a database?

2017-10-09 Thread Ron Johnson
On 10/09/2017 01:02 PM, Scott Mead wrote: On Mon, Oct 9, 2017 at 1:19 PM, Ron Johnson <mailto:ron.l.john...@cox.net>> wrote: Maybe my original question wasn't clear, so I'll try again: is it safe to do a physical using cp (as opposed to rsync)? Yes -- however*you

Re: [GENERAL] Using cp to back up a database?

2017-10-09 Thread Ron Johnson
Maybe my original question wasn't clear, so I'll try again: is it safe to do a physical using cp (as opposed to rsync)? On 10/09/2017 11:49 AM, Darren Douglas wrote: Ron: Here is an explanation that may help a bit. Your script is executing a PHYSICAL backup. A physical backup i

Re: [GENERAL] Using cp to back up a database?

2017-10-09 Thread Ron Johnson
On 10/09/2017 11:33 AM, Jeff Janes wrote: On Mon, Oct 9, 2017 at 6:40 AM, Ron Johnson <mailto:ron.l.john...@cox.net>> wrote: Hi, v8.4.20 This is what the current backup script uses: /usr/bin/psql -U postgres -c "SELECT pg_start_backup('Incrementalbackup

Re: [GENERAL] Using cp to back up a database?

2017-10-09 Thread Ron Johnson
TX 78665-2106 *From: * on behalf of Ron Johnson *Date: *Monday, October 9, 2017 at 8:41 AM *To: *"pgsql-general@postgresql.org" *Subject: *[GENERAL] Using cp to back up a database? Hi, v8.4.20 This is what the current backup script uses: /usr/bin/psql -U postgres -c "SELECT

[GENERAL] Using cp to back up a database?

2017-10-09 Thread Ron Johnson
Hi, v8.4.20 This is what the current backup script uses: /usr/bin/psql -U postgres -c "SELECT pg_start_backup('Incrementalbackup',true);" cp -r /var/lib/pgsql/data/* $dumpdir/data/ /usr/bin/psql -U postgres template1 -c "SELECT pg_stop_backup();" Should it use rsync or pg_dump instead? Thank

Re: [GENERAL] Up to date conventional wisdom re max shared_buffer size?

2017-09-20 Thread Ron Johnson
On 09/20/2017 01:05 PM, Jerry Sievers wrote: Ron Johnson writes: On 09/19/2017 05:00 PM, Jerry Sievers wrote: [snip] The DB is 10TB total size with OLTP plus some occasional heavy batching which frequently correlates with degradation that requires intervention. Unrelated server problem

Re: [GENERAL] Up to date conventional wisdom re max shared_buffer size?

2017-09-19 Thread Ron Johnson
On 09/19/2017 05:00 PM, Jerry Sievers wrote: [snip] The DB is 10TB total size with OLTP plus some occasional heavy batching which frequently correlates with degradation that requires intervention. Unrelated server problem forced us to relocate from a Debian/Wheezy 3.x kernel 1T 144 CPU to the ev

Re: [GENERAL] Selecting a daily puzzle record - which type of column to add?

2017-09-18 Thread Ron Johnson
On 09/18/2017 08:17 AM, Melvin Davidson wrote: [snip] I don't have any specific suggestion for an additional column, other than Berend's idea. However, I strongly advise against the use of ENUM's. They can create a major problem in the event one needs to be removed. Because it will internally

Re: [GENERAL] "Canceling authentication due to timeout" with idle transaction and reindex

2017-09-15 Thread Ron Johnson
On 09/15/2017 06:34 AM, Justin Pryzby wrote: [snip] But you might consider: 1) looping around tables/indices rather than "REINDEX DATABASE", and then setting a statement_timeout=9s for each REINDEX statement; Is there a way to do that within psql? (Doing it from bash is trivial, but I'd rathe

Re: [GENERAL] WAL & ready files retained after turning off log shipping

2017-09-12 Thread Ron Johnson
On 09/07/2017 09:32 AM, Tom Lane wrote: Ron Johnson writes: On 09/07/2017 09:08 AM, Tom Lane wrote: Manual cleanup shouldn't be very hard, fortunately. Run pg_controldata to see where the last checkpoint is, and delete WAL files whose names indicate they are before that (but not th

Re: [GENERAL] Joining 16 tables seems slow

2017-09-12 Thread Ron Johnson
On 09/12/2017 01:45 AM, Frank Millman wrote: Hi all I am using 9.4.4 on Fedora 22. I am experimenting with optimising a SQL statement. One version uses 4 LEFT JOIN’s and a 5-way CASE statement in the body. The second moves the filtering into the JOIN section, and I end up with 16 LEFT JOIN’s an

[GENERAL] B-tree index on a VARCHAR(4000) column

2017-09-07 Thread Ron Johnson
Hi, v 9.2.7 Based on LENGTH(offending_column), none of the values are more than 144 bytes in this 44.2M row table. Even though VARCHAR is, by definition, variable length, are there any internal design issues which would make things more efficient if it were dropped to, for example, VARCHAR(2

Re: [GENERAL] WAL & ready files retained after turning off log shipping

2017-09-07 Thread Ron Johnson
On 09/07/2017 05:07 PM, Michael Paquier wrote: On Thu, Sep 7, 2017 at 11:08 PM, Tom Lane wrote: Manual cleanup shouldn't be very hard, fortunately. Run pg_controldata to see where the last checkpoint is, and delete WAL files whose names indicate they are before that (but not the one including

Re: [GENERAL] WAL & ready files retained after turning off log shipping

2017-09-07 Thread Ron Johnson
On 09/07/2017 09:08 AM, Tom Lane wrote: Ron Johnson writes: After disabling log shipping via setting "archive_mode = off", and then running, "pg_ctl reload", old WAL files and their associated .ready files aren't being deleted. Hmm. I might be misremembering,

[GENERAL] WAL & ready files retained after turning off log shipping

2017-09-07 Thread Ron Johnson
Hi, v8.4 (and there's nothing I can do about it). After disabling log shipping via setting "archive_mode = off", and then running, "pg_ctl reload", old WAL files and their associated .ready files aren't being deleted. Is there any document you can point me to as to why this is happening, and

Re: [GENERAL] Veritas cluster management

2017-08-30 Thread Ron Johnson
On 08/30/2017 08:48 AM, Scott Mead wrote: On Wed, Aug 30, 2017 at 9:43 AM, Ron Johnson <mailto:ron.l.john...@cox.net>> wrote: Hi, For any of you with those failover clusters, do you know if "pg_ctl reload" works (for compatible config file changes), or mus

[GENERAL] Veritas cluster management

2017-08-30 Thread Ron Johnson
Hi, For any of you with those failover clusters, do you know if "pg_ctl reload" works (for compatible config file changes), or must we bounce the database using "hares -offline" then "hares -online"? Thanks -- World Peace Through Nuclear Pacification -- Sent via pgsql-general mailing list

Re: [GENERAL] Logging the fact that a log was shipped

2017-08-28 Thread Ron Johnson
On 08/28/2017 08:22 AM, Stephen Frost wrote: * Christoph Moench-Tegeder (c...@burggraben.net) wrote: ## Ron Johnson (ron.l.john...@cox.net): How is this done in v8.4? (I tried adding "date; rsync ..." but pg didn't like that *at all*.) There's a DEBUG1-level log m

Re: [GENERAL] Logging the fact that a log was shipped

2017-08-28 Thread Ron Johnson
On 08/28/2017 06:06 AM, Christoph Moench-Tegeder wrote: ## Ron Johnson (ron.l.john...@cox.net): How is this done in v8.4? (I tried adding "date; rsync ..." but pg didn't like that *at all*.) There's a DEBUG1-level log message on successful archive_command completion - t

[GENERAL] Logging the fact that a log was shipped

2017-08-27 Thread Ron Johnson
Hi, How is this done in v8.4? (I tried adding "date; rsync ..." but pg didn't like that *at all*.) Thanks -- 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] Log shipping in v8.4.7

2017-08-27 Thread Ron Johnson
On 08/27/2017 02:23 PM, Christoph Moench-Tegeder wrote: ## Ron Johnson (ron.l.john...@cox.net): Everything I've read says that you should use "rsync -a". Is there any reason why we can't/shouldn't use "rsync -az" so as to reduce transfer time? On to

[GENERAL] Log shipping in v8.4.7

2017-08-27 Thread Ron Johnson
Hi, (Yes, its old. Nothing I can do about that.) Everything I've read says that you should use "rsync -a". Is there any reason why we can't/shouldn't use "rsync -az" so as to reduce transfer time? Also, does that change require a full restart (difficult with production systems)? Thanks

Re: [GENERAL] PG and database encryption

2017-08-22 Thread Ron Johnson
On 08/22/2017 02:55 PM, Joshua D. Drake wrote: On 08/22/2017 12:48 PM, rakeshkumar464 wrote: We have a requirement to encrypt the entire database. What is the best tool to accomplish this. Our primary goal is that it should be transparent to the application, with no change in the application, a

Re: [GENERAL] Fwd: 2 process postgres -D for one instance

2017-08-11 Thread Ron Johnson
On 08/11/2017 02:35 PM, Peter Eisentraut wrote: On 8/11/17 10:15, Murtuza Zabuawala wrote: some time whe have 2 process postgres for 1 instance like this exppgs*17769* 1 0 01:06 ?00:01:04 /usr/pgsql-9.3/bin/postgres -D /bases/postgresql/scl/data -i -p 5450 -h bd-sillage.info.

Re: [GENERAL] Upgrading postgresql minor version

2017-05-10 Thread Ron Ben
ogh כתב:På onsdag 10. mai 2017 kl. 16:55:50, skrev Ron Ben <ronb...@walla.co.il>:   I think you miss understood me. pg_dump dumps the data. the tables, functions and the data saved in them. I have daily backups for this so i'm not worried.   What i'm woried about are the "ex

Re: [GENERAL] Upgrading postgresql minor version

2017-05-10 Thread Ron Ben
er כתב:On 05/10/2017 06:08 AM, Ron Ben wrote:> I'm about to upgrade my postgresql to the latest 9.3 version> On my test server eveything works.> However I want to save a backup of my production server before the > upgrade...> I'm not sure how I do that.https://www.postgresq

[GENERAL] Upgrading postgresql minor version

2017-05-10 Thread Ron Ben
I'm about to upgrade my postgresql to the latest 9.3 version   On my test server eveything works. However I want to save a backup of my production server before the upgrade... I'm not sure how I do that.   It says that only system files are changed during upgrade... which folders exactly I need to

Re: [GENERAL] How to upgrade PostgreSQL minor version?

2017-04-26 Thread Ron Ben

Re: [GENERAL] How to upgrade PostgreSQL minor version?

2017-04-26 Thread Ron Ben
hich is not always the case. And as mentioned earlier 9.3.5 and 9.3.9 can create problems as they require specific checks.     I'd appriciate any insight.         ב אפר׳ 26, 2017 13:26, Sameer Kumar כתב: On Wed, Apr 26, 2017 at 4:41 PM Ron Ben <ronb...@walla.co.il> wrote:

[GENERAL] How to upgrade PostgreSQL minor version?

2017-04-26 Thread Ron Ben
I'm runing PostgreSQL 9.3.3 and I want to upgrade it to the latest 9.3 version The documontation does not specify what needs to be done other than "just install the executables". This is wierd as for example 9.3.5 release notes request to run a specifc query to  check for pg_multixact files left.  

Re: [GENERAL] Not sure this should be asked here but...

2017-04-23 Thread Ron Ben
ton כתב:On Sat, Apr 22, 2017 at 12:04 PM, Ron Ben <ronb...@walla.co.il> wrote:Why to use mailining list rather than forum? forum gives much more flexablitiy, easy to read and respond, allows to search for other simillar issues, topics can be tagged...   ​Was this intended to display irony re: &

[GENERAL] Not sure this should be asked here but...

2017-04-22 Thread Ron Ben
Why to use mailining list rather than forum? forum gives much more flexablitiy, easy to read and respond, allows to search for other simillar issues, topics can be tagged...    

Re: [GENERAL] Unable to upload backups

2017-04-19 Thread Ron Ben
But if you add another GRANT statment to user it won't be in the last.. you have no way of knowing the correct order of GRANTS. ב אפר׳ 19, 2017 17:26, Adrian Klaver כתב:On 04/19/2017 07:16 AM, Ron Ben wrote:> Here :)Thanks.See my previous response. Basically we need more information bef

Re: [GENERAL] Unable to upload backups

2017-04-19 Thread Ron Ben
Adrian Klaver כתב:On 04/19/2017 06:49 AM, Ron Ben wrote:Is it possible to get your email program to left justify text on sending? I can figure out the right justified text, it just takes me longer.> I think I may have found the problem.>> The role defined as:>> CREATE ROLE &quo

Re: [GENERAL] Unable to upload backups

2017-04-19 Thread Ron Ben
ake the last known command of grant? Sadly, when there are more than one role it's impossible to know which role was first. PostgreSQL shows them alphabeticly rather than by date so in case of overlaping instructions its impossible to know which one was first.ב אפר׳ 19, 2017 16:40, Adrian Kl

[GENERAL] Unable to upload backups

2017-04-19 Thread Ron Ben
Hi, I'm using PostgreSQL 9.3.2 I'm running the command:   psql -h testserver -U ronb -f backup.sql  -q -d foldertest  2>error.txt >output.txt This should generate my database in foldertest However this doesn't work. It's unable to create schemas in the error.txt i see "permission denied for databa

Re: [GENERAL] Nice to have features: Percentage function

2017-04-17 Thread Ron Ben
Hi, I know I can solve my issue localy but I think that percentage manipulation is commonly used by many users and while it's true that each one can create his own solution localy it would be nice if postgresql would have build in functions for that.   percentagee manipulation is a core fuctionalit

[GENERAL] Nice to have features: Percentage function

2017-04-15 Thread Ron Ben
Hi, I'm always finiding myself writing many varations of functions to calculate percentage. I think it would be nice if postgresql would have build in functions for that. I think the major functionality is something like the 3 ooptions here: https://percentagecalculator.net/   It may help to keep c

Re: [GENERAL] Request to add feature to the Position function

2017-03-29 Thread Ron Ben
eople will find usefull and it doesn't seem like a lot of work to implement it.ב מרץ 28, 2017 19:42, David G. Johnston כתב:On Tue, Mar 28, 2017 at 7:09 AM, Adrian Klaver <adrian.kla...@aklaver.com> wrote:On 03/28/2017 12:29 AM, Ron Ben wrote: Here is a refer to the stackoverflow question:

Re: [GENERAL] Request to add feature to the Position function

2017-03-28 Thread Ron Ben

[GENERAL] Request to add feature to the Position function

2017-03-27 Thread Ron Ben
Hi, position(substring in string) as listed here: https://www.postgresql.org/docs/9.1/static/functions-string.html locates sub string in a string.   It doesn't support locateing the substring from the back.   For example:   position('om' in 'Tomomas') gives 2   But if I want to locate the first oc

Re: [GENERAL] Could use some advice on search architecture

2014-04-21 Thread Ron Pasch
pick your brains on this a little. Cheers, Ron -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

[GENERAL] Could use some advice on search architecture

2014-04-18 Thread Ron Pasch
s time taken for a search query. What would be the best approach to this if I were to do this in the database only? Should/can this be done with postgresql only or should I look into other types of technology? (Lucene? Sphinx? others?) Any advice on this would be greatly appreciated. Thx in

Re: [GENERAL] How do you change the size of the WAL files?

2012-01-10 Thread Ron Somaraju
minute. Regards, rs -Original Message- From: David Johnston [mailto:pol...@yahoo.com] Sent: Tuesday, January 10, 2012 9:34 AM To: Ron Somaraju; 'Tom Lane' Cc: 'Scott Marlowe'; pgsql-general@postgresql.org Subject: RE: [GENERAL] How do you change the size of the WAL fi

Re: [GENERAL] How do you change the size of the WAL files?

2012-01-09 Thread Ron Somaraju
Once again, pros and cons should be left to users discretion because one may have latest and greatest hardware and network resources. For example a SSD on a fiber channel on a high speed network. Regards, rs On Jan 9, 2012, at 7:06 PM, "Tom Lane" wrote: > Scott Marlowe writes: >> On Mon, Ja

Re: [GENERAL] alter column appears to work, but doesn't?

2011-09-05 Thread Ron Peterson
abase, and recreating rules got it working. Dunno. -Ron- -- 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] alter column appears to work, but doesn't?

2011-09-05 Thread Ron Peterson
2011-09-05_16:14:00-0400 Tom Lane : > Ron Peterson writes: > > I just dropped my logging rules, stopped the database and restarted it, > > put my rules back in place, and now it works. Not sure why. Cached > > query plan? > > Maybe. We'd need a reproducible tes

Re: [GENERAL] alter column appears to work, but doesn't?

2011-09-05 Thread Ron Peterson
2011-09-05_15:03:00-0400 Tom Lane : > Ron Peterson writes: > > I just updated a table to have a larger column size as follows. > > > alter table attributes_log alter column attribute_name type varchar(48); > > How come this refers to "attributes_log" while y

[GENERAL] alter column appears to work, but doesn't?

2011-09-05 Thread Ron Peterson
racter varying(24) I'm using PostgreSQL 9.0.4 I tried to replicate this with a new database and a simple table, but could not. I had to drop (and then recreate) three rules and a view on this table before altering the column. This is a production database, so I need to treat it gently. --

Re: [GENERAL] Postgres DOD Certification Common Criteria Level

2011-01-02 Thread Ron Mayer
Eric McDonald wrote: > Greetings All: > > Does anyone here have any insight on to what EAL level Postgres is at > for DOD/Military installations? I see that there's an SE-Linux > fortified version on the Wiki, but no certifications are listed in the > contents. > > Any direction to certification

Re: [GENERAL] Survey on backing up unlogged tables: help us with PostgreSQL development!

2010-11-20 Thread Ron Mayer
Josh Berkus wrote: >> With the current patches, the data survives a restart just fine. > > Per -hackers, that's not guarenteed. "Not guaranteed" is fine. What people are asking for is "often survives". AFAIK we don't truncate the log file created by the log_filename GUC on every unclean crash an

Re: [GENERAL] Survey on backing up unlogged tables: help us with PostgreSQL development!

2010-11-19 Thread Ron Mayer
Glen Parker wrote: > As was already mentioned, application logs. Unlogged tables would be > perfect for that, provided they don't go *poof* every now and then for > no good reason. Nobody's going to be too heart broken if a handful of > log records go missing, or get garbled, after a server crash

Re: [GENERAL] Why facebook used mysql ?

2010-11-14 Thread Ron Mayer
ok had 1800 MySQL servers with 2 DBAs.[1] I wonder how that compares with large-scale Postgres deployments. Ron [1] http://perspectives.mvdirona.com/2008/04/22/1800MySQLServersWithTwoDBAs.aspx -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your s

Re: [GENERAL] Understanding PostgreSQL Storage Engines

2010-10-13 Thread Ron Mayer
any vendors offering engines? [ 1/2 :-) ] Ron [1] http://www.computerworld.com/s/article/9087918/Size_matters_Yahoo_claims_2_petabyte_database_is_world_s_biggest_busiest "Yahoo brought the database in-house and continued to enhance it, including tighter data compression, more parallel data proce

[GENERAL] postgres vs mysql conventional wisdom

2010-04-01 Thread Ron Mayer
On this first day of the month, I thought it might be interesting to re-visit the conventional wisdom about postgres vs mysql. Do these seem like fair observations? Storage engines - Advantage Postgres for having far more available. Postgre has such a wide range of storage engines to choose fr

Re: [GENERAL] Justifying a PG over MySQL approach to a project

2009-12-20 Thread Ron Mayer
Gauthier, Dave wrote: > The arguments against PG are not technical. A few more points that I didn't see in this thread yet that might help answer the non-technical questions: * There seem to be more commercial vendors providing support for Postgres than MySQL - because most mysql support came

Re: [GENERAL] Justifying a PG over MySQL approach to a project

2009-12-20 Thread Ron Mayer
Lincoln Yeoh wrote: > Ten or so years ago MySQL was better than Postgres95, and it would have > been easy to justify using MySQL over Postgres95 (which was really slow > and had a fair number of bugs). But Postgresql is much better than MySQL > now. That's just my opinion of course. Really?!? MyS

Re: [GENERAL] Possible causes for database corruption and solutions

2009-12-15 Thread Ron Mayer
Craig Ringer wrote: > On 16/12/2009 9:07 AM, Scott Marlowe wrote: >> I'd also recommend moving off of OSX as you're using a minority OS as >> far as databases are concerned, and you won't have a very large >> community to help out when things do go wrong > > It sounds like PostgreSQL is being used

Re: [GENERAL] Excessive (and slow) fsync() within single transaction

2009-12-09 Thread Ron Mayer
Scott Marlowe wrote: > Actually, it's usually the drives that lie about fsync, especially > consumer grade (and some server grade) SATA / PATA drives are known > for this. I'm still looking for any evidence of any drive that lies. Is there actually a drive which claims to support the IDE "FLUSH_C

Re: [GENERAL] Absolute value of intervals

2009-11-02 Thread Ron Mayer
On Mon, Nov 02, 2009 at 10:52:40AM +, Jasen Betts wrote: > what's the absolute value of '1month -30 days'::interval Curious what a use case for taking the absolute value of such mixed intervals might be. I could imagine such intervals being used for stuff like "XXX is due in Y months but need

Re: [GENERAL] generic modelling of data models; enforcing constraints dynamically...

2009-09-25 Thread Ron Mayer
Drifting off topic so I'm no longer ccing the lists. Sam Mason wrote: > >> The perl Fuse::DBI module's example sounds pretty similar to the >> system you described where he "file" seems to be a column in a table. >> http://www.rot13.org/~dpavlin/fuse_dbi.html > > FUSE looks pretty easy to get g

Re: [GENERAL] generic modelling of data models; enforcing constraints dynamically...

2009-09-25 Thread Ron Mayer
Sam Mason wrote: > It all depends on the problem domain of course, but this seems to work > OK for us! I really want to hack Samba around so that the users can > view the files directly from inside the database, but I'm not sure how > good an idea this really. "hack Samba"? Wouldn't it be easie

Re: [GENERAL] INTERVAL SECOND limited to 59 seconds?

2009-06-09 Thread Ron Mayer
Tom Lane wrote: > Ron Mayer writes: >> regression=# select interval '1 1' hour; > > Hmm, not sure about that one. We decided a week or two back that we > don't want the thing discarding higher-order field values, and this > seems pretty close to that.

Re: [GENERAL] INTERVAL SECOND limited to 59 seconds?

2009-06-09 Thread Ron Mayer
Tom Lane wrote: > I wrote: >> I'm inclined to say that these two cases are out of line with what >> the rest of the code does and we should change them. > ... > Now, all three of these cases throw "invalid input syntax" in 8.3, > so this is not a regression from released behavior. The question >

Re: [GENERAL] INTERVAL SECOND limited to 59 seconds?

2009-06-08 Thread Ron Mayer
Tom Lane wrote: > Ron Mayer writes: >> Looks like the original questions from the thread >> got resolved, but I found this behaviour surprising: > >> regression=# select interval '1' day to second; >> interval >> -- >> @ 1 hour >

Re: [GENERAL] INTERVAL SECOND limited to 59 seconds?

2009-06-07 Thread Ron Mayer
Finally got around to looking at this thread. Looks like the original questions from the thread got resolved, but I found this behaviour surprising: regression=# select interval '1' day to second; interval -- @ 1 hour (1 row) Should this be 1 second? If so I can send a patch. regre

Re: [GENERAL] INTERVAL data type and libpq - what format?

2009-05-20 Thread Ron Mayer
Sam Mason wrote: > You get an error because " 123 11" isn't a valid literal of an > (undecorated) INTERVAL type. Hmm. should it be? Skimming the spec makes me think it might be a valid day-time interval. Quoting the spec: ::= [ ] { | } ... ::= | ::= [ [ [ ] ] ]

Re: [GENERAL] Difference between array column type and separate table

2009-05-03 Thread Ron Mayer
Alban Hertroys wrote: > On May 2, 2009, at 9:33 AM, Mike Christensen wrote: > >> ... >> create table Threads ( ... Tags int2[], ...); >> >> To me this seems cleaner, but I'm wondering about performance. If I >> had millions of threads, is a JOIN going to be faster? ... > > ...I don't think ar

Re: [GENERAL] Full text search strategy for names

2009-04-16 Thread Ron Mayer
Rick Schumeyer wrote: > I want to be able to search a list of articles for title words as well > as author names I'm not sure the best strategy for the names. The > full text parser "parses" the names giving undesirable results. > > For example, > > select to_tsvector('claude Jones'); >

Re: [GENERAL] Are there performance advantages in storing bulky field in separate table?

2009-04-08 Thread Ron Mayer
Robert Treat wrote: > > You can be sure that discussion of this topic in this forum will soon be > visited by religious zealots, but the short answer is "nulls are bad, mmkay". > > A slightly longer answer would be that, as a general rule, attributes of your > relations that only apply to 1%

Re: [GENERAL] Are there performance advantages in storing bulky field in separate table?

2009-04-08 Thread Ron Mayer
Sam Mason wrote: > On Wed, Apr 08, 2009 at 04:56:35PM +0100, Ian Mayo wrote: >> One more thing: hey, did you hear? I just got some advice from Tom Lane! > > Statistically speaking; he's the person most likely to answer you by Even so, this might be the #1 advantage of Postgres over Oracle (cost

Re: [GENERAL] Maximum transaction rate

2009-03-19 Thread Ron Mayer
Marco Colombo wrote: > Yes, but we knew it already, didn't we? It's always been like > that, with IDE disks and write-back cache enabled, fsync just > waits for the disk reporting completion and disks lie about I've looked hard, and I have yet to see a disk that lies. ext3, OTOH seems to lie. ID

Re: [GENERAL] postgreSQL & amazon ec2 cloud

2009-03-19 Thread Ron Mayer
Tom Lane wrote: > Adrian Klaver writes: >> Nothing. I have created a Postgres instance on an EC2 virtual machine with >> attached EBS(Elastic Block Storage)..[...] > > ... I wonder whether you have any guarantees about database consistency > in that situation? PG has some pretty strong requirem

Re: [GENERAL] Maximum transaction rate

2009-03-18 Thread Ron Mayer
Marco Colombo wrote: > Ron Mayer wrote: >> Greg Smith wrote: >>> There are some known limitations to Linux fsync that I remain somewhat >>> concerned about, independantly of LVM, like "ext3 fsync() only does a >>> journal commit when the inode ha

Re: [GENERAL] Maximum transaction rate

2009-03-17 Thread Ron Mayer
Greg Smith wrote: > There are some known limitations to Linux fsync that I remain somewhat > concerned about, independantly of LVM, like "ext3 fsync() only does a > journal commit when the inode has changed" (see > http://kerneltrap.org/mailarchive/linux-kernel/2008/2/26/990504 ). The > way files

Re: [GENERAL] speaking of 8.4...

2009-02-26 Thread Ron Mayer
Joshua D. Drake wrote: > On Thu, 2009-02-26 at 15:27 -0800, Ron Mayer wrote: >> Joshua D. Drake wrote: >>> On Fri, 2009-02-27 at 10:19 +1300, Tim Uckun wrote: >>>> >>>> 8.4 was scheduled to be released march 1. ... >> >> I do notice that

Re: [GENERAL] speaking of 8.4...

2009-02-26 Thread Ron Mayer
Joshua D. Drake wrote: > On Fri, 2009-02-27 at 10:19 +1300, Tim Uckun wrote: >> >> [according to some page on the web site...] >> 8.4 was scheduled to be released march 1. Do we know what the > All schedules are subject to change within the community :) >> tentative date of release is?

Re: [GENERAL] High cpu usage after many inserts

2009-02-24 Thread Ron Mayer
Joshua D. Drake wrote: > On Wed, 2009-02-25 at 09:21 +0900, Jordan Tomkinson wrote: >> On Wed, Feb 25, 2009 at 12:05 AM, Aidan Van Dyk >> wrote: >> * Greg Smith [090201 00:00]: >> > Shouldn't someone have ranted about RAID-5 by this point in >> the thread? >> You m

Re: [GENERAL] where to divide application and database

2009-02-21 Thread Ron Mayer
Ivan Sergio Borgonovo wrote: > On Fri, 20 Feb 2009 06:50:22 -0800 > David Fetter wrote: >>> ... moving some of the checks >>> into the database and away from the application. >> Since a useful database has *many* applications instead of "the" >> application, I think this is an excellent move. > >

Re: [GENERAL] Pet Peeves?

2009-01-30 Thread Ron Mayer
Gregory Stark wrote: > One thing which has *not* been mentioned which i find positively shocking is > VACUUM. This was once our single biggest source of user complaints. Between > Autovacuum improvements and HOT previously and the free space map in 8.4 the > situation will be much improved. The ot

Re: [GENERAL] Pet Peeves?

2009-01-29 Thread Ron Mayer
Gregory Stark wrote: > I'm putting together a talk on "PostgreSQL Pet Peeves" for discussion at > FOSDEM 2009 this year. I have a pretty good idea what some them are of course, * The capitalization that makes everyone (customers, execs, etc) I introduce it to parse the name as Postgre-SQL. *

Re: [GENERAL] Very large tables

2008-11-28 Thread Ron Mayer
Grzegorz Jaśkiewicz wrote: true, if you don't want to search on values too much ,or at all - use float[]. But otherwise, keep stuff in a tables as such. It might be humongous in size, but at the end of the day - prime thing when designing a db is speed of queries. If he's worried about speed

Re: [GENERAL] Interval Format

2008-11-21 Thread Ron Mayer
Zagato wrote: I have som SQL that in 8.0.3 do: # SELECT '32 hours'::INTERVAL; interval - @ 1 day 8 hours And in 8.3.5 do: seg_veh2=# SELECT '@ 32 hours'::INTERVAL; interval @ 32 hours Why i unable to get my old style of interval, i really need to see the da

Re: [GENERAL] Postgres mail list traffic over time

2008-11-21 Thread Ron Mayer
Tom Lane wrote: Ron Mayer <[EMAIL PROTECTED]> writes: Joshua D. Drake wrote: Its because we eliminated the -patches mailing list. That's part of it. I've added -patches to the graph at http://0ape.com/postgres_mailinglist_size/ as well as a graph of hackers+patches combin

Re: [GENERAL] Postgres mail list traffic over time

2008-11-21 Thread Ron Mayer
Joshua D. Drake wrote: On Fri, 2008-11-21 at 08:18 -0800, Ron Mayer wrote: Bruce Momjian wrote: Tom Lane wrote: ... harder to keep up with the list traffic; so something is happening that a simple volume count doesn't capture. If measured in "bytes of the gzipped mbox" it ..

Re: [GENERAL] Postgres mail list traffic over time

2008-11-21 Thread Ron Mayer
Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian <[EMAIL PROTECTED]> writes: I also was confused by its flatness. I am finding the email traffic almost impossible to continue tracking, so something different is happening, but it seems it is not volume-related. Yes, my perception also is tha

Re: [GENERAL] Are there plans to add data compression feature to postgresql?

2008-10-31 Thread Ron Mayer
Chris Browne wrote: There's a way that compressed filesystems might *help* with a risk factor, here... By reducing the number of disk drives required to hold the data, you may be reducing the risk of enough of them failing to invalidate the RAID array. And one more way. If neither your databas

Re: [GENERAL] Are there plans to add data compression feature to postgresql?

2008-10-29 Thread Ron Mayer
Grant Allen wrote: ...warehouse...DB2...IBM is seeing typical storage savings in the 40-60% range Sounds about the same as what compressing file systems claim: http://opensolaris.org/os/community/zfs/whatis/ "ZFS provides built-in compression. In addition to reducing space usage by 2-3x, co

Re: [GENERAL] Are there plans to add data compression feature to postgresql?

2008-10-27 Thread Ron Mayer
You might want to try using a file system (ZFS, NTFS) that does compression, depending on what you're trying to compress. -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general

  1   2   3   4   5   6   7   8   9   10   >