Re: [GENERAL] Cognitive dissonance

2010-06-09 Thread Brian Modra
downloads: open the file docs/8.1/interactive/index.html in your web browser. e.g. links docs/8.1/interactive/index.html HTML is "text", so you can search using grep e.g. grep -r "ALTER TABLE .* ADD COLUMN" docs/8.1 > > > -- > Sent via pgsql-general mailing lis

Re: [GENERAL] Clustering, parallelised operating system, super-computing

2010-05-13 Thread Brian Modra
On 14/05/2010, Bruce Momjian wrote: > Brian Modra wrote: >> Hi, >> I've been told that PostgreSQL and other similar databases don't work >> well on a parallelised operating system because they make good use of >> shared memory which does not cross the b

[GENERAL] Clustering, parallelised operating system, super-computing

2010-05-13 Thread Brian Modra
eate table race_entry ( person text references person(username) match full on delete cascade on update cascade, ... ); -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 69 77 082 5 Jan Louw Str, Prince Albert, 6930 Postal: P.O. Box 2, Prince Albert 6930 So

Re: [GENERAL] Performance issues when the number of records are around 10 Million

2010-05-11 Thread Brian Modra
ttp://www.postgresql.org/mailpref/pgsql-general > Have you checked if the indexes don't have lots of dead references? Try to create new indexes, and then delete the old indexes (or just use reindex if this is not an online database in production). -- Brian Modra Land line: +27 23 5411 462 Mo

Re: [GENERAL] how to get the deleted data

2010-05-05 Thread Brian Modra
On 06/05/2010, AI Rumman wrote: > Unauthorized user deleted some critical data from the database. > I don't have any log. > > Is it possible to get what was the command used to delete the data? > Is your server saving WAL's? -- Brian Modra Land line: +27 23 5411 462 M

Re: [GENERAL] Fuzzy string matching of product names

2010-04-05 Thread Brian Modra
Then to search: select * from your_table where simplified_name = yourSimplifyFunction('Coca-Cola'); This is really fast, because the match is using the index rather than a sequential scan. > > Thanks, > Peter Geoghegan > > -- > Sent via pgsql-general mailing list

Re: [GENERAL] Advice on webbased database reporting

2010-04-02 Thread Brian Modra
t; Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general > -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 69 77 082 5 Jan Louw Str, Prince Albert, 6930 Postal: P.O. Box 2, Pri

Re: [GENERAL] split to table by space

2010-01-02 Thread Brian Modra
:= substring(temp from i1 for (i - i1)); outlen := outlen + 1; while i <= len loop ch := cast(substring(temp from i for 1) as character(1)); exit when ch != ' ' and ch != ',' and ch != '.' and ch != '-'; i := i + 1; end loop; i1 := i

Re: [GENERAL] Out of space making backup

2009-12-25 Thread Brian Modra
r/lib/postgresql/backups/start_backup tar zcf - data |ssh lead "cat > /var/lib/postgresql/backups/20091223.tgz" echo "DONE" [r...@www pgsql]# cat backup.sh #!/bin/bash cd /var/lib/pgsql ./back1.sh > backups/backup.log 2>&1 > -- > Sent via pgsql-general mailing

Re: [GENERAL] Objects / Procedure creation date or modified date

2009-12-16 Thread Brian Modra
w.com/questions/899203/how-do-i-find-the-last-time-that-a-postgresql-database-has-been-updated -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 69 77 082 5 Jan Louw Str, Prince Albert, 6930 Postal: P.O. Box 2, Prince Albert 6930 South Africa http://www.zwartberg.com/ -- Sent via pgsql-gener

Re: [GENERAL] howto escape my string

2009-11-24 Thread Brian Modra
d > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general > -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 69 77 082 5 Jan Louw Str, Prince Albert, 6930 Postal:

Re: [GENERAL] How is the right query for this condition ?

2009-11-22 Thread Brian Modra
x27;); getmatchingrecord --- 123 (1 row) > Sincerely > -bino- > > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general > -- Brian Modra Lan

Re: [GENERAL] Strange performance degradation

2009-11-20 Thread Brian Modra
al@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general > -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 69 77 082 5 Jan Louw Str, Prince Albert, 6930 Postal: P.O. Box 2, Prince Albert 6930 South Africa http://www.

Re: [GENERAL] xml import/export tools and performance

2009-11-06 Thread Brian Modra
ll you how easy/difficult it would be to write a converter. > -- > Ivan Sergio Borgonovo > http://www.webthatworks.it > > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpre

Re: [GENERAL] Postgres for mobile website?

2009-11-03 Thread Brian Modra
), then it will be "light" from the phone's perspective. > The website is update 2 times month. I can easly sincronize the databases > Postgres to SQLite. What do you think about this solution? It depends a lot on the type of application and the type of data. > Best Regards.

Re: [GENERAL] Many instances of postgres.exe

2009-10-15 Thread Brian Modra
. It has a load of memory though... 50Mb is very little memory considering you are talking about a professional database system > Bob -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 69 77 082 5 Jan Louw Str, Prince Albert, 6930 Postal: P.O. Box 2, Prince Albert 6930 So

Re: [GENERAL] query is taking longer time after a while

2009-09-29 Thread Brian Modra
2009/9/29 Sam Mason : > On Tue, Sep 29, 2009 at 02:25:52PM +0200, Brian Modra wrote: >> 2009/9/29 tomrevam : >> > My DB is auto-vacuuming all the time. The specific table I'm talking about >> > gets vacuumed at least every 2 hours (usually a little more frequently t

Re: [GENERAL] variables in ad hoc queries

2009-09-29 Thread Brian Modra
the function in SQLs wherever you'd usually use an integer > or is it just not possible? > > Iain > > -- > 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] query is taking longer time after a while

2009-09-29 Thread Brian Modra
2009/9/29 tomrevam : > > > > Brian Modra-2 wrote: >> >> When did you last do an analyse and re-create indexes? >> Is the table UPDATEd to or DELETEd from, or just INSERTed ? >> Is your DB auto vacuuming? >> > > My DB is auto-vacuuming all the t

Re: [GENERAL] query is taking longer time after a while

2009-09-29 Thread Brian Modra
eral mailing list archive at Nabble.com. > > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general > -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 69

[GENERAL] ideal server

2008-10-17 Thread Brian Modra
eed a bigger host. Any advice will be appreciated. Brian -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 183 8059 5 Jan Louw Str, Prince Albert, 6930 Postal: P.O. Box 2, Prince Albert 6930 South Africa

Re: [GENERAL] [ADMIN] how to create cluster(loadbanacing) of postgresql server

2008-01-29 Thread Brian Modra
ses and > dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is > believed to be clean. -- Brian Modra Land line: +27 23 5411 462 Mobile: +27 79 183 8059 6 Jan Louw Str, Prince Albert, 6930 Postal: P.O. Box 2, Prince Albert 6930 South Africa