Re: [GENERAL] Suse9.3

2005-08-11 Thread Hakan Kocaman
Hello, using 7.4.1 on Suse 8.0. Compiled from Source, there were no problems. Keep care of readline-support(you need the devel-rpm for readline), then you have more fun with psql. The docs are a good ressource for any question regarding instaltation. For me it was a simple ./configure && make

Re: [GENERAL] Change to PostgreSQL

2005-08-11 Thread F�lix Beltr
Hi Richard, Thanks for your answer. About your comments, in the original order: 1) Thanks for the links. I found in PostgreSQLs FAQ that any one can use the database for any purpose, including comercial development. But i couln't find if this applies to the .net driver too. 2) Yes I mean a sch

Re: [GENERAL] Suse9.3

2005-08-11 Thread Richard Huxton
Hrishikesh Deshmukh wrote: Hi All, Has anybody used postgresql 7.4.7 on Suse 9.3? If yes how easy or difficult was it to install? Any pointers/suggestions are welcome. No reason why it should be any more/less difficult than any other Linux distribution. Are there rpm's for that version on S

Re: [GENERAL] 5 new entries for FAQ

2005-08-11 Thread Tino Wildenhain
Am Mittwoch, den 10.08.2005, 17:38 -0400 schrieb Bruce Momjian: > "Consider a separate column containing an MD5 hash of the value\n" wouldnt a functional index over md5 hash of the original value be a bit better? ---(end of broadcast)--- TIP 1: i

[GENERAL] regarding isolation between threads

2005-08-11 Thread Surabhi Ahuja
 Dear All,   I am stuck in the following scenario: In a dual processor machine, I am running 5 threads. each of the threads is calling a particular stored procedure to insert a row in the table.   the insertion takes place in a transaction and i have set the transaction level to serializable.  

[GENERAL] about pg_dump with --blobs

2005-08-11 Thread Howard Kao
Hi all, We have a big database, around 1.2GB, and want to back it up. We used pg_dump with --blobs for large objects. However, the process cannot be completed and threw an error. Can anyone please elaborate on the --blobs, or backing up for large databases? Judging from the description of -b/-

Re: [GENERAL] about pg_dump with --blobs

2005-08-11 Thread Howard Kao
Sorry, forgot the error message. Basically we tried to restore a db and the following error message occurred: pg_restore: [archiver (db)] could not execute query: ERROR: invalid memory alloc request size 1836016426 On 8/11/05, Howard Kao <[EMAIL PROTECTED]> wrote: > Hi all, > > We have a big d

[GENERAL] regarding isolation between threads

2005-08-11 Thread Surabhi Ahuja
This is in continuation of my previous mail: each thread is using a different pgconn.   thanks again Surabhi Ahuja   Dear All,   I am stuck in the following scenario: In a dual processor machine, I am running 5 threads. each of the threads is calling a particular stored procedure to insert a ro

Re: [GENERAL] about pg_dump with --blobs

2005-08-11 Thread Richard Huxton
Howard Kao wrote: Sorry, forgot the error message. Basically we tried to restore a db and the following error message occurred: pg_restore: [archiver (db)] could not execute query: ERROR: invalid memory alloc request size 1836016426 I take it you don't have an object 1.8GBs in size? Do you

Re: [GENERAL] regarding isolation between threads

2005-08-11 Thread Martijn van Oosterhout
On Thu, Aug 11, 2005 at 03:17:53PM +0530, Surabhi Ahuja wrote: > This is in continuation of my previous mail: > each thread is using a different pgconn. > Please tell, in case I should provide more info in regard to this scenario? Yes. I've no idea what your problem might be, and I'm probably

Re: [GENERAL] function accepting a row

2005-08-11 Thread tgrzej
Od: Michael Fuhr <[EMAIL PROTECTED]> .. > * More support for composite types (row and record variables) in > PL/pgSQL > > For example, it now works to pass a rowtype variable to another > function as a single variable. > > If you're using a version older than 8.0 then you'll have to work > with

[GENERAL] regarding isolation between threads

2005-08-11 Thread Surabhi Ahuja
void *connect(void* threadid){    char command[100];    int *id_ptr, taskid;    id_ptr = (int *) threadid;    taskid = *id_ptr;     if(taskid == 0)    strcpy(command, "select insert (1)");    else if(taskid == 1)    strcpy(command, "select insert (1)");    else if(taskid == 2) 

Re: [GENERAL] regarding isolation between threads

2005-08-11 Thread Richard Huxton
Surabhi Ahuja wrote: void *connect(void* threadid) { char command[100]; int *id_ptr, taskid; id_ptr = (int *) threadid; taskid = *id_ptr; if(taskid == 0) strcpy(command, "select insert (1)"); else if(taskid == 1) strcpy(command, "select insert (1)"); ...

Re: [GENERAL] What's up with EnterpriseDB?

2005-08-11 Thread Christopher Browne
> I saw their announment today and they said they have Oracle compatiblility. > > What exactly does this mean? They don't go into any details. Did > they implement a Oracle compatible proc language or something? I believe you are correct. It's probably safer to say "they have implemented a more

Re: [GENERAL] World-wide Stop Order on PERL,Python,Java::->> Use

2005-08-11 Thread Jeff Boes
Al_Dev wrote: > World-wide Stop Order on PERL,Python,Java::->> Use Ruby instead > Al Dev > alavoor[at]-no-spam(dot)yahoo(dot)com There's irony for you. > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com Why yes, I am tired of spam. Thank you for asking!

Re: [GENERAL] Poll on your LAPP Preferences

2005-08-11 Thread Google Mike
Randal L. Schwartz wrote: > > "Google" == Google Mike <[EMAIL PROTECTED]> writes: > > Google> As a PostgreSQL admin or developer, you may be asked to deploy a Linux > Google> Apache PHP PostgreSQL application. > > Not me. I'll be deploying an OpenBSD, Apache, PostgreSQL, Perl server. > > o/~ y

[GENERAL] libpq.dll with ENABLE_THREAD_SAFETY

2005-08-11 Thread Pit Müller
Is the standard libpq.dll distributed by PostgreSQL8.0 for windows thread safe by default ? Pit ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's dataty

Re: [GENERAL] function accepting a row

2005-08-11 Thread Michael Fuhr
On Thu, Aug 11, 2005 at 12:20:17PM +0200, tgrzej wrote: > I tried to follow #37.1.2 from: > http://www.postgresql.org/docs/7.4/interactive/plpgsql.html > > where one can read: > "Functions written in PL/pgSQL can accept as arguments any scalar or > array data type supported by the server, and they

Re: [GENERAL] 5 new entries for FAQ

2005-08-11 Thread Bruce Momjian
Tino Wildenhain wrote: > Am Mittwoch, den 10.08.2005, 17:38 -0400 schrieb Bruce Momjian: > > "Consider a separate column containing an MD5 hash of the value\n" > > wouldnt a functional index over md5 hash of the original value > be a bit better? Yes, good point. Let me adjust the text. -- Br

Re: [GENERAL] What's up with EnterpriseDB?

2005-08-11 Thread Jim Mlodgenski
Title: Fwd: [GENERAL] What's up with EnterpriseDB? Once the flood gates of new features are opened up for 8.2, we'd be happy to submit a patch for anonymous blocks. Also, if there are other features we've added that makes since to roll back, let us know and we could submit that as well. Th

[GENERAL] ask for help about postgresql

2005-08-11 Thread 马建霞
hi, I'm trying to instal postgresql to support an open-source software named dspace. I have already installed sdk, tomcat5, postgresql8.0.3, but when I install dspace, I met error says [java] Exception:java.net.SocketException: Invalid argument or cannot assign requested address. I think p

Re: [GENERAL] regarding isolation between threads

2005-08-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-08-11 16:04:00 +0530: > void *connect(void* threadid) > { > char command[100]; > int *id_ptr, taskid; > id_ptr = (int *) threadid; > taskid = *id_ptr; > if(taskid == 0) > strcpy(command, "select insert (1)"); > else if(taskid == 1) >

Re: [GENERAL] ask for help about postgresql

2005-08-11 Thread Hakan Kocaman
hi, try this in pg_hba.conf , if the db is on the same machine: local all all trust if db is on another machine in the local network hostall all "ip_of_the_machine_to_connect_from" 255.255.255.0 trust Afterwards you n

Re: [GENERAL] about pg_dump with --blobs

2005-08-11 Thread Tom Lane
Howard Kao <[EMAIL PROTECTED]> writes: > Basically we tried to restore a db and the following error message occurred: > pg_restore: [archiver (db)] could not execute query: ERROR: invalid > memory alloc request size 1836016426 I'm wondering about corruption of the dump file. I don't think either

[GENERAL] Exceptions in PL/Perl?

2005-08-11 Thread Jeff Boes
How does one raise an exception from a PL/Perl function? Specifically, this is a trigger function. Is it as simple as "die "? ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org

Re: [GENERAL] World-wide Stop Order on PERL,Python,Java::->> Use

2005-08-11 Thread Chris Browne
[EMAIL PROTECTED] (Jeff Boes) writes: > Al_Dev wrote: >> World-wide Stop Order on PERL,Python,Java::->> Use Ruby instead > >> Al Dev >> alavoor[at]-no-spam(dot)yahoo(dot)com > > There's irony for you. > >> Tired of spam? Yahoo! Mail has the best spam protection around >> http://mail.yahoo.com >

[GENERAL] About using plpgsql funciton variable as the table name

2005-08-11 Thread Ying Lu
Greetings, I met a question about how to use *function variable *as the *table name* to select count(*) into an integer variable for the table. CREATE OR REPLACE FUNCTION update_code_map(VARCHAR, VARCHAR) RETURNS VARCHAR AS $$ DECLARE *tableName ALIAS FOR $1*; *rec_num

Re: [GENERAL] Exceptions in PL/Perl?

2005-08-11 Thread David Fetter
On Thu, Aug 11, 2005 at 10:15:11AM -0400, Jeff Boes wrote: > How does one raise an exception from a PL/Perl function? > Specifically, this is a trigger function. Is it as simple as "die > "? elog(ERROR, $errmsg) works. Cheers, D -- David Fetter [EMAIL PROTECTED] http://fetter.org/ phone: +1 510

Re: [GENERAL] Exceptions in PL/Perl?

2005-08-11 Thread Michael Fuhr
On Thu, Aug 11, 2005 at 10:15:11AM -0400, Jeff Boes wrote: > How does one raise an exception from a PL/Perl function? Specifically, > this is a trigger function. Is it as simple as "die "? Use elog: http://www.postgresql.org/docs/8.0/static/plperl-database.html -- Michael Fuhr

Re: [GENERAL] About using plpgsql funciton variable as the table

2005-08-11 Thread Richard Huxton
Ying Lu wrote: Greetings, I met a question about how to use *function variable *as the *table name* to select count(*) into an integer variable for the table. Look at: FOR-IN-EXECUTE http://www.postgresql.org/docs/8.0/static/plpgsql-control-structures.html#PLPGSQL-RECORDS-ITERATING -- Ric

Re: [GENERAL] About using plpgsql funciton variable as the table

2005-08-11 Thread Stephan Szabo
On Thu, 11 Aug 2005, Ying Lu wrote: > Greetings, > > I met a question about how to use *function variable *as the *table > name* to select count(*) into an integer variable for the table. > > > CREATE OR REPLACE FUNCTION update_code_map(VARCHAR, VARCHAR) RETURNS > VARCHAR AS $$ > DECLARE > *ta

Re: [GENERAL] regarding isolation between threads

2005-08-11 Thread Stephan Szabo
On Thu, 11 Aug 2005, Surabhi Ahuja wrote: > the stored procedure (just the pseudo code) > table x has a primary key k > insert(integer) > { > select from table if k = $1 > if not found > insert into x ($1); > else >insert into some_other_table($1); > end if >

Re: [GENERAL] World-wide Stop Order on PERL,Python,Java::->> Use

2005-08-11 Thread Csaba Nagy
[snip] > He's not spam. But anybody could easily forge his address while sending to the group. So that makes the mail itself no less spam. The best way to handle those mails currently is dump and ignore them. Otherwise threads like this one pop up... Cheers, Csaba. ---(

Re: [GENERAL] About using plpgsql funciton variable as the table

2005-08-11 Thread Ying Lu
Thank you all for the helping. I made a bit changes as the following and it works. CREATE OR REPLACE FUNCTION update_code_map(VARCHAR, VARCHAR) RETURNS VARCHAR AS $$ DECLARE tableName ALIAS FOR $1; st1_tabno_value ALIAS FOR $2; rec_num INTEGER; query_value

[GENERAL] new Perl Server-Side Language in 8.0

2005-08-11 Thread Brandon Metcalf
I'm looking for details on the new Perl server-side language introduced in 8.0. Specifically, I'm looking for changes between 7.4 and 8.0 and if there are any backward compatibility issues. I checked the website and docs, but didn't find anything. Thanks. -- Brandon --

Re: [GENERAL] insert performance riddle

2005-08-11 Thread Ed L.
On Wednesday August 10 2005 6:03 pm, Michael Fuhr wrote: > On Wed, Aug 10, 2005 at 05:02:46PM -0600, Ed L. wrote: > > I have two identical servers giving abysmal INSERT > > performance in pgsql 7.3.4, 7.4.8, and 8.1devel under no > > load or I/O contention at all (no dumps, no vacuums, no > > apps,

[GENERAL] No PUBLIC access by default?

2005-08-11 Thread Peter Fein
Hi all- Is there any way to disable PUBLIC access by default? When I create a new object (table, function, etc.), it has no ACL, as expected. However, the first time I run: GRANT ALL ON FUNCTION foo() to GROUP developers; Postgress seems to do: GRANT ALL ON FUNCTION foo() to PUBLIC; I assume

Re: [GENERAL] insert performance riddle

2005-08-11 Thread Ed L.
On Thursday August 11 2005 12:36 pm, Ed L. wrote: > On Wednesday August 10 2005 6:03 pm, Michael Fuhr wrote: > > On Wed, Aug 10, 2005 at 05:02:46PM -0600, Ed L. wrote: > > > I have two identical servers giving abysmal INSERT > > > performance in pgsql 7.3.4, 7.4.8, and 8.1devel under no > > > load

[GENERAL] Upgrading 7.3.9 -> 7.4.8 - trouble with blobs

2005-08-11 Thread Christian Goetze
I have a database with blobs, I dump it with the following command: pg_dump\ --host=$SENSAGE_DB_HOST\ --port=$SENSAGE_DB_PORT\ -U $SENSAGE_DB_ROOT_USER\ --blobs\ --create\ --format=t\ --file="$upgrade_dump"\ $SENSAGE_DB_NAME I then move the data directory to the side, install the new version in

Re: [GENERAL] new Perl Server-Side Language in 8.0

2005-08-11 Thread Michael Fuhr
On Thu, Aug 11, 2005 at 12:51:29PM -0500, Brandon Metcalf wrote: > I'm looking for details on the new Perl server-side language > introduced in 8.0. Specifically, I'm looking for changes between 7.4 > and 8.0 and if there are any backward compatibility issues. > > I checked the website and docs,

Re: [GENERAL] No PUBLIC access by default?

2005-08-11 Thread Alvaro Herrera
On Thu, Aug 11, 2005 at 12:28:44PM -0500, Peter Fein wrote: > Is there any way to disable PUBLIC access by default? When I create a > new object (table, function, etc.), it has no ACL, as expected. > However, the first time I run: > > GRANT ALL ON FUNCTION foo() to GROUP developers; > > Postgre

Re: [GENERAL] insert performance riddle

2005-08-11 Thread Michael Fuhr
On Thu, Aug 11, 2005 at 12:59:32PM -0600, Ed L. wrote: > > Michael, you seem to have nailed it. The local inserts (via > > Unix domain sockets?) that were running at 6 QPS ran at 6800 > > to 41000 QPS in a PL/pgSQL function. > > Here's another part of the riddle. The query durations for the > i

[GENERAL] ERROR: plphp: unable to register function "plphp_proc_4947785_trigger"

2005-08-11 Thread CSN
I'm using plphp to create a trigger. I don't see any syntax errors in it (I've checked it with php -l (lint)). When I update a row in the table with the trigger, I get this error: ERROR: plphp: unable to register function "plphp_proc_4947785_trigger" I've verified that plphp (and plphpu) is inst

[GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread CSN
I'm getting this warning in pgsql's log: LOG: plphp: PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference,

Re: [GENERAL] new Perl Server-Side Language in 8.0

2005-08-11 Thread Brandon Metcalf
m == [EMAIL PROTECTED] writes: m> On Thu, Aug 11, 2005 at 12:51:29PM -0500, Brandon Metcalf wrote: m> > I'm looking for details on the new Perl server-side language m> > introduced in 8.0. Specifically, I'm looking for changes between 7.4 m> > and 8.0 and if there are any backward compatibili

Re: [GENERAL] ERROR: plphp: unable to register function "plphp_proc_4947785_trigger"

2005-08-11 Thread CSN
Nevermind, I found some stray single quotes (in an array var) in a double-quoted string that appears to have been the problem. --- CSN <[EMAIL PROTECTED]> wrote: > I'm using plphp to create a trigger. I don't see any > syntax errors in it (I've checked it with php -l > (lint)). When I update a

[GENERAL] plphp crashing server

2005-08-11 Thread CSN
Uh oh, I think plphp is crashing the server. When I update a row in the table with the trigger, this happens: server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request. The connection to the server was lost. Attempting res

Re: [GENERAL] plphp crashing server

2005-08-11 Thread CSN
Jeez, nevermind again! Turns out this was the problem in the plphp script: $sql="select * from table where id=123"; $result=spi_exec_query($sqll); I'm still curious about the "Call-time pass-by-reference has been deprecated" warning if anybody knows. Thanks, CSN --- CSN <[EMAIL PROTECTED]> wr

Re: [GENERAL] plphp crashing server

2005-08-11 Thread Alvaro Herrera
On Thu, Aug 11, 2005 at 01:50:21PM -0700, CSN wrote: > And this is what shows up in the log: > > LOG: server process (PID 31665) was terminated by > signal 11 > LOG: terminating any other active server processes > > Wow. I still don't see anything wrong with the plphp > function - how could it

Re: [GENERAL] insert performance riddle

2005-08-11 Thread Ed L.
On Thursday August 11 2005 1:37 pm, Michael Fuhr wrote: > Have you done any client-side tests that eliminate Perl?  I'd > suggest writing a little C program so you can measure libpq's > performance without the extra layers of Perl and DBI/DBD::Pg. >  Test both local (Unix socket) and network (IPv4

Re: [GENERAL] No PUBLIC access by default?

2005-08-11 Thread Tom Lane
Alvaro Herrera <[EMAIL PROTECTED]> writes: > Actually, that last grant is implicit. When an ACL is found to be null, > it's considered to have a grant to public. No, it's considered to be whatever the default for the object type is. Read the GRANT manual page. regards, to

Re: [GENERAL] Upgrading 7.3.9 -> 7.4.8 - trouble with blobs

2005-08-11 Thread Tom Lane
Christian Goetze <[EMAIL PROTECTED]> writes: > pg_restore\ > --host=$SENSAGE_DB_HOST\ > --port=$SENSAGE_DB_PORT\ > -U $SENSAGE_DB_ROOT_USER\ > --create\ > --format=t\ > "$upgrade_dump" > Seems to work fine, except I get: > pg_restore: [archiver] WARNING: skipping large-object restoration IIRC, y

Re: [GENERAL] No PUBLIC access by default?

2005-08-11 Thread Guy Rouillier
Peter Fein wrote: > Hi all- > > Is there any way to disable PUBLIC access by default? When I create You can revoke permissions from the public schema, and you can even delete the public schema entirely. I did the first: revoke create on schema public from public revoke create on tablespace pg_

Re: [GENERAL] Upgrading 7.3.9 -> 7.4.8 - trouble with blobs

2005-08-11 Thread Christian Goetze
pg_restore: [archiver] WARNING: skipping large-object restoration IIRC, you get that if you're asking it to emit a text script rather than connect directly to the destination database server. I think you need a "-d databasename" switch to make that happen. Does this mean that

Re: [GENERAL] insert performance riddle

2005-08-11 Thread Steve Wormley
> > Michael, you nailed it again. My libpq test C program delivered > between 2400 QPS and 5000 QPS vs ~10 QPS for DBI/DBD::Pg on this > box. > > It remains unclear to me why the same DBI/DBD::Pg client code > would deliver performance 2-3 orders of magnitude better on > other roughly comparabl

Re: [GENERAL] Upgrading 7.3.9 -> 7.4.8 - trouble with blobs

2005-08-11 Thread Tom Lane
Christian Goetze <[EMAIL PROTECTED]> writes: >>> pg_restore: [archiver] WARNING: skipping large-object restoration >> >> IIRC, you get that if you're asking it to emit a text script rather than >> connect directly to the destination database server. I think you need a >> "-d databasename" switch

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-08-11 13:23:52 -0700: > I'm getting this warning in pgsql's log: > > LOG: plphp: PHP Warning: Call-time pass-by-reference > has been deprecated - argument passed by value; If > you would like to pass it by reference, modify the > declaration of [runtime function name]

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has

2005-08-11 Thread Joshua D. Drake
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2005-08-11 13:23:52 -0700: I'm getting this warning in pgsql's log: LOG: plphp: PHP Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-08-11 15:45:18 -0700: > Roman Neuhauser wrote: > ># [EMAIL PROTECTED] / 2005-08-11 13:23:52 -0700: > > > >>I'm getting this warning in pgsql's log: > >> > >>LOG: plphp: PHP Warning: Call-time pass-by-reference > >>has been deprecated - argument passed by value; If > >>

[GENERAL] Long running update

2005-08-11 Thread Akash Garg
Hello, I currently running an update statement that updates every row in a very large table. This query will obviously take a long time to run. My question -- is there any way to know how much time it will take once it starts? Even something that could help me approximate the speed at which it's

Re: [GENERAL] Long running update

2005-08-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-08-11 16:17:09 -0700: > Hello, > I currently running an update statement that updates every row in a > very large table. This query will obviously take a long time to run. > My question -- is there any way to know how much time it will take > once it starts? Even someth

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread CSN
I'm using PHP5, and I'm not passing by reference. My first stop WAS plphp.commandprompt.com, but none of their mailing list links for plphp work. CSN > # jd ( at ) commandprompt ( dot ) com / 2005-08-11 15:45:18 -0700: > > Roman Neuhauser wrote: > > ># cool_screen_name90001 ( at ) yahoo ( dot )

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-08-11 16:49:25 -0700: > I'm using PHP5, and I'm not passing by reference. My > first stop WAS plphp.commandprompt.com, but none of > their mailing list links for plphp work. Can you post the code that triggers the warning? -- How many Vietnam vets does it take to s

Re: [GENERAL] Long running update

2005-08-11 Thread Tom Lane
Akash Garg <[EMAIL PROTECTED]> writes: > I currently running an update statement that updates every row in a > very large table. This query will obviously take a long time to run. > My question -- is there any way to know how much time it will take > once it starts? Even something that could help

Re: [GENERAL] No PUBLIC access by default?

2005-08-11 Thread Peter Fein
Tom Lane wrote: > Alvaro Herrera <[EMAIL PROTECTED]> writes: > >>Actually, that last grant is implicit. When an ACL is found to be null, >>it's considered to have a grant to public. > > > No, it's considered to be whatever the default for the object type is. > Read the GRANT manual page. I'm o

Re: [GENERAL] insert performance riddle

2005-08-11 Thread Michael Fuhr
On Thu, Aug 11, 2005 at 03:29:29PM -0600, Ed L. wrote: > Michael, you nailed it again. My libpq test C program delivered > between 2400 QPS and 5000 QPS vs ~10 QPS for DBI/DBD::Pg on this > box. > > It remains unclear to me why the same DBI/DBD::Pg client code > would deliver performance 2-3 o

Re: [GENERAL] No PUBLIC access by default?

2005-08-11 Thread Tom Lane
Peter Fein <[EMAIL PROTECTED]> writes: > If I read my ACL's correctly, =UC/postgres means full access for PUBLIC. > Why is that happening? Because that's the way it's set up in template1. CREATE DATABASE just copies the source database, it doesn't editorialize on the contents thereof.

[GENERAL] Turning Off PotgrSQL Output Messages

2005-08-11 Thread Behzad Mahini
I have tried different options to turnoff the output mode of psql (turning off the STDERR & STDOUT and redirecting it to another file), and I have not been successful. The steps I have taken to capture the output of my script in an output file using the ‘\o’ option, are as follows:   # \o

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread CSN
Sure- CREATE or REPLACE FUNCTION email_activated_member () RETURNS trigger AS $$ $new=$_TD['new']; $old=$_TD['old']; if(($_TD['event']=='INSERT' and $new['active']='t') or ($_TD['event']=='UPDATE' and $new['active']=='t' and $old['active']=='f')) { $link=$_TD['new']; $sql="select * fr

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has

2005-08-11 Thread Joshua D. Drake
CSN wrote: I'm using PHP5, and I'm not passing by reference. My first stop WAS plphp.commandprompt.com, but none of their mailing list links for plphp work. You are correct. This is a mistake on our part. Perhaps next time a little note to support or info@ saying, "Hey what is up with this l

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2005-08-11 17:36:49 -0700: > --- Roman Neuhauser <[EMAIL PROTECTED]> wrote: > > Can you post the code that triggers the warning? > > Sure- > > > CREATE or REPLACE FUNCTION email_activated_member () > RETURNS trigger AS $$ > > $new=$_TD['new']; > $old=$_TD['old']; > >

Re: [GENERAL] plphp: PHP Warning: Call-time pass-by-reference has been deprecated

2005-08-11 Thread CSN
--- Roman Neuhauser <[EMAIL PROTECTED]> wrote: > # [EMAIL PROTECTED] / 2005-08-11 > 17:36:49 -0700: > > --- Roman Neuhauser <[EMAIL PROTECTED]> wrote: > > > Can you post the code that triggers the > warning? > > > > Sure- > > > > > > CREATE or REPLACE FUNCTION email_activated_member > () >

Re: [GENERAL] Long running update

2005-08-11 Thread Greg Stark
Roman Neuhauser <[EMAIL PROTECTED]> writes: > Yeah, it would be nice if select, insert, update, delete could > be set to log their progress at configured intervals. One feature that would be handy for doing this would be if Postgres supported READ DIRTY. Few databases support it, and Pos

Re: [GENERAL] function accepting a row

2005-08-11 Thread Tomek Grzejszczyk
Michael Fuhr napisal(a): PL/pgSQL functions can *accept* these types of arguments, but in versions earlier than 8.0 they have trouble *passing* such arguments to another function. Now I get it. Thank you. Tomek Grzejszczyk ---(end of broadcast)---

Re: [GENERAL] Long running update

2005-08-11 Thread Tom Lane
Greg Stark <[EMAIL PROTECTED]> writes: > One feature that would be handy for doing this would be if Postgres supported > READ DIRTY. Few databases support it, and Postgres currently doesn't, but it > would be extremely handy for peeking to see how much progress an update, > delete, or insert has ma