Re: [GENERAL] Update tsvector trigger

2008-08-06 Thread Richard Huxton
x asasaxax wrote: Hi, i´m trying to do a trigger that its called when update or insert, that update the tsvectors, for text-search. Here´s my code: CREATE OR REPLACE FUNCTION atualiza_vectors() RETURNS trigger AS $$ BEGIN IF NEW.texto<>NULL THEN UPDATE x SET vectors =

Re: [GENERAL] FTS on patterns

2008-08-06 Thread Richard Huxton
Vyacheslav Kalinin wrote: On Tue, Aug 5, 2008 at 6:53 PM, Tom Lane <[EMAIL PROTECTED]> wrote: There's support for prefix text search in CVS HEAD, but not in any released version ... regards, tom lane Oh, does that mean it won't be released until 8.4? New features are

[GENERAL] Invocation overhead for procedural languages

2008-08-06 Thread Giorgio Valoti
Hi all, I think I’ve read somewhere in the documentation that the invocation of functions written in procedural languages (with the exception of plpgsql) incur in performance hit due to the call the language interpreter. Is that correct or am I completely off track? Thank you in advance --

Re: [GENERAL] bytea encode performance issues

2008-08-06 Thread Sim Zacks
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom Lane wrote: > We've seen complaints about toast fetch time before. I don't think > there's any really simple solution. You could experiment with disabling > compression (SET STORAGE external) but I'd bet on that being a net loss > unless the dat

Re: [GENERAL] Initdb problem on debian mips cobalt: Bus error

2008-08-06 Thread Tom Lane
[ cc'ing Remi to see if he remembers anything about how he got around this ] Stefan Kaltenbrunner <[EMAIL PROTECTED]> writes: > FWIW: there also seems to be a fairly indepth discussion on the cobalt > related netbsd list from last year about a problem that looks very > similiar (at least to you

Re: [GENERAL] Invocation overhead for procedural languages

2008-08-06 Thread Martin Gainty
if you're using apache yes your module's performance is related to how many child processes are spawned by mod_prefork http://httpd.apache.org/docs/2.2/mod/prefork.html HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and

Re: [GENERAL] Invocation overhead for procedural languages

2008-08-06 Thread Pavel Stehule
2008/8/6 Giorgio Valoti <[EMAIL PROTECTED]>: > Hi all, I think I've read somewhere in the documentation that the invocation > of functions written in procedural languages (with the exception of plpgsql) > incur in performance hit due to the call the language interpreter. Is that > correct or am I c

Re: [GENERAL] bytea encode performance issues

2008-08-06 Thread Tom Lane
Sim Zacks <[EMAIL PROTECTED]> writes: > After the alter table, then I have to update each row with an > update dbmail_messageblks set messageblk=messageblk; > so that it uses the new storage. I wouldn't actually bet on that changing anything at all ... I'd try something like messageblk = messagebl

Re: [GENERAL] bytea encode performance issues

2008-08-06 Thread Richard Huxton
Sim Zacks wrote: DBMail is a pre-built application, so until I am ready to start playing with its internals I don't really have a choice about a number of its features. Have you heard of this? Might be worth a quick look: http://www.archiveopteryx.org/overview -- Richard Huxton Archonet L

Re: [GENERAL] Initdb problem on debian mips cobalt: Bus error

2008-08-06 Thread Glyn Astill
> Mind you, I'd not especially recommend trying to run CVS HEAD for > production purposes, but it would be real interesting at this point > to see if you can compile it and run the regression tests with the > toolchain you've got. > I've no problem doing that, this machine is a toy not a product

Re: [GENERAL] Initdb problem on debian mips cobalt: Bus error

2008-08-06 Thread Jaime Casanova
On 8/6/08, Glyn Astill <[EMAIL PROTECTED]> wrote: > > Mind you, I'd not especially recommend trying to run CVS HEAD for > > production purposes, but it would be real interesting at this point > > to see if you can compile it and run the regression tests with the > > toolchain you've got. > > > > I'

[GENERAL] compat-postgresql-libs rpm bug in 64bit mode

2008-08-06 Thread Kevin Murphy
I'm using compat-postgresql-libs-4-1PGDG.rhel5.x86_64.rpm on CentOS 5 in 64bit mode. The package did not create a libpq.so.4 link in /usr/lib64/, which caused Apache to fail. Regards, Kevin Murphy -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your

[GENERAL] looking for psql without server-installation

2008-08-06 Thread Christian.Strobl
hi all, maybe a simple question, but i found no answer. what is the best way to get a psql-client at a linux system without the need of a server. is there a configure-option (i don't find any) to compile only psql without der server? thanks and greetings from munich christian p.s. besides this i a

Re: [GENERAL] looking for psql without server-installation

2008-08-06 Thread Raymond O'Donnell
On 06/08/2008 16:38, [EMAIL PROTECTED] wrote: hi all, maybe a simple question, but i found no answer. what is the best way to get a psql-client at a linux system without the need of a server. is [snip] p.s. besides this i am also interested, if there is a solution of this problem for windows

Re: [GENERAL] compat-postgresql-libs rpm bug in 64bit mode

2008-08-06 Thread Devrim GÜNDÜZ
Hi, On Wed, 2008-08-06 at 11:19 -0400, Kevin Murphy wrote: > I'm using compat-postgresql-libs-4-1PGDG.rhel5.x86_64.rpm on CentOS 5 > in 64bit mode. > > The package did not create a libpq.so.4 link in /usr/lib64/, which > caused Apache to fail. http://yum.pgsqlrpms.org/8.3/redhat/rhel-5-x86_64

[GENERAL] Postgres as the embedded database

2008-08-06 Thread Mike Gould
I am looking to hear from people that are using PostGres as their backend in a commerically available product and how much work would be needed to ensure that our configurations are optimized for each platform along with normal database routines? What has the stability factor been once installe

Re: [GENERAL] Postgres as the embedded database

2008-08-06 Thread Steve Atkins
On Aug 6, 2008, at 10:04 AM, Mike Gould wrote: I am looking to hear from people that are using PostGres as their backend in a commerically available product and how much work would be needed to ensure that our configurations are optimized for each platform along with normal database routin

Re: [GENERAL] Invocation overhead for procedural languages

2008-08-06 Thread Giorgio Valoti
On 06/ago/08, at 16:04, Pavel Stehule wrote: 2008/8/6 Giorgio Valoti <[EMAIL PROTECTED]>: Hi all, I think I've read somewhere in the documentation that the invocation of functions written in procedural languages (with the exception of plpgsql) incur in performance hit due to the call the la

[GENERAL] GUI for master-slave?

2008-08-06 Thread Bill Wordsworth
Is there any GUI for master-slave (I prefer CLI too)? Are there any PostgreSQL-specific detailed videos that clearly illustrate replication, PITR, failover, load-balance, backup etc (I need it for a pitch)? Any recommended commercial off-the-shelf/plug-and-play type products or (hosted? (SimpleDB

Re: [GENERAL] Postgres as the embedded database

2008-08-06 Thread Merlin Moncure
On Wed, Aug 6, 2008 at 1:04 PM, Mike Gould <[EMAIL PROTECTED]> wrote: > I am looking to hear from people that are using PostGres as their backend in > a commerically available product and how much work would be needed to ensure > that our configurations are optimized for each platform along with no

Re: [GENERAL] compat-postgresql-libs rpm bug in 64bit mode

2008-08-06 Thread Kevin Murphy
Devrim GÜNDÜZ wrote: Hi, On Wed, 2008-08-06 at 11:19 -0400, Kevin Murphy wrote: I'm using compat-postgresql-libs-4-1PGDG.rhel5.x86_64.rpm on CentOS 5 in 64bit mode. The package did not create a libpq.so.4 link in /usr/lib64/, which caused Apache to fail. http://yum.pgsqlrpms.org/8

[GENERAL] C function on Windows 2003/XP

2008-08-06 Thread Oisin Glynn
I am trying to follow the instructions on the 8.0 interactive comments (http://www.postgresql.org/docs/8.0/interactive/xfunc-c.html) to build a c function using MSDEV and PostgreSQL 8.3 on Windows XP/2003 I am running into errors around. fatal error C1083: Cannot open include file: 'libintl.h

[GENERAL] lossing pg_stat's data

2008-08-06 Thread Chirag Dave
While testing on 8.3, i see that upon postmaster restart , i am loosing data from pg_stat_user_tables. as i understand in 8.3 only way to reset is by calling |pg_stat_reset(). Sorry for the long post: Here is my test case: sample=# SELECT version();

Re: [GENERAL] Invocation overhead for procedural languages

2008-08-06 Thread Ragnar
On mið, 2008-08-06 at 20:48 +0200, Giorgio Valoti wrote: > On 06/ago/08, at 16:04, Pavel Stehule wrote: > > > > > it's depend. Start of interpret is only one overhead. > > Other is date > > conversions to language compatible types (without C and plpgsql). > So is plpgsql slower on date conversio

Re: [GENERAL] looking for psql without server-installation

2008-08-06 Thread John DeSoi
On Aug 6, 2008, at 11:57 AM, Raymond O'Donnell wrote: On 06/08/2008 16:38, [EMAIL PROTECTED] wrote: hi all, maybe a simple question, but i found no answer. what is the best way to get a psql-client at a linux system without the need of a server. is [snip] p.s. besides this i am also intere

[GENERAL] Create Table Dinamic

2008-08-06 Thread Anderson dos Santos Donda
Hello All! Its my first time here in maillist and I started work with postgre on last moth. My questions is: Threre is a way to create tables dinamic? Example: To create a table we use CREATE TABLE TableName .. In my db, I have many tables with diferents names but with same colums Example

Re: [GENERAL] Create Table Dinamic

2008-08-06 Thread mian wang
Hi: CREATE OR REPLACE FUNCTION MakeTables ( NameTable text ) RETURNS void as $$ BEGIN execute 'CREATE TABLE '||$1||' ( id int, name text )'; END; $$ LANGUAGE 'plpgsql'; 2008/8/7 Anderson dos Santos Donda <[EMAIL PROTECTED]> > Hello All! > > Its my first time here in maillist and I started wo

Re: [GENERAL] C function on Windows 2003/XP

2008-08-06 Thread Craig Ringer
Oisin Glynn wrote: > I am trying to follow the instructions on the 8.0 interactive comments > (http://www.postgresql.org/docs/8.0/interactive/xfunc-c.html) to build a > c function using MSDEV and PostgreSQL 8.3 on Windows XP/2003 > > I am running into errors around. fatal error C1083: Cannot open

Re: [GENERAL] Create Table Dinamic

2008-08-06 Thread Craig Ringer
Anderson dos Santos Donda wrote: > PS : If somebody want knows why I need to create this function, is because > in my db have 1000 tables with the some colums, and each time I have a new > client, I need to create this tables manually. While EXECUTE or CREATE TABLE ... LIKE is the answer to the i

Re: [GENERAL] lossing pg_stat's data

2008-08-06 Thread Tom Lane
Chirag Dave <[EMAIL PROTECTED]> writes: > While testing on 8.3, i see that upon postmaster restart , i am loosing > data from pg_stat_user_tables. Hm, I don't see any such behavior here. Are you sure you are shutting the postmaster down normally? We do throw away stats during a crash recovery,

Re: [GENERAL] bytea encode performance issues

2008-08-06 Thread Merlin Moncure
On Wed, Aug 6, 2008 at 9:16 AM, Sim Zacks <[EMAIL PROTECTED]> wrote: > We are using UTF-8, and I am testing SQL-ASCII at the moment. DBMail is > a pre-built application, so until I am ready to start playing with its > internals I don't really have a choice about a number of its features. > The reas

Re: [GENERAL] Invocation overhead for procedural languages

2008-08-06 Thread Pavel Stehule
2008/8/6 Giorgio Valoti <[EMAIL PROTECTED]>: > > On 06/ago/08, at 16:04, Pavel Stehule wrote: > >> 2008/8/6 Giorgio Valoti <[EMAIL PROTECTED]>: >>> >>> Hi all, I think I've read somewhere in the documentation that the >>> invocation >>> of functions written in procedural languages (with the excepti

Re: [GENERAL] bytea encode performance issues

2008-08-06 Thread Sim Zacks
> I don't quite follow that...the whole point of utf8 encoded database > is so that you can use text functions and operators without the bytea > treatment. As long as your client encoding is set up properly (so > that data coming in and out is computed to utf8), then you should be > ok. Dropping

Re: [GENERAL] looking for psql without server-installation

2008-08-06 Thread Tomasz Ostrowski
On 2008-08-06 17:38, [EMAIL PROTECTED] wrote: > what is the best way to get a psql-client at a linux system without > the need of a server. On Fedora/RedHat/CentOS or other yum based distribution: # yum install postgresql For Debian/Ubuntu or other dpkg based distribution I think it will be: # dp

Re: [GENERAL] bytea encode performance issues

2008-08-06 Thread Sim Zacks
I ran the update, but now (obviously) it wants to vacuum again and vacuum on that table took 9 hours yesterday. Do the statistics change when changing the storage type? Meaning does it really need to vacuum? Thank you Sim Tom Lane wrote: > Sim Zacks <[EMAIL PROTECTED]> writes: >> After the alter