Re: [GENERAL] Norm SQL?

2001-05-11 Thread Karl DeBisschop
Tom Lane wrote: > > Renaud Thonnart <[EMAIL PROTECTED]> writes: > > Which is the SQL norm of PostgreSQL? > > I suppose it is SQL3 ? > > AFAIK, SQL3 is not a recognized standard. We are converging (slowly) > on full support for SQL92, and we have some SQL99 features (and will > have more over t

Re: [GENERAL] Changing from default configuration options in 7.1?

2001-04-19 Thread Karl DeBisschop
Steve Wampler wrote: > > I just upgraded from 7.0.3 to 7.1 (using the RH rpms) with no > major problems. Nice! > > However, I'm getting some strange behaviour from the init > script (/etc/rc.d/init.d/postgresql). In particular, a > restart when the database is running fails because the > "sle

Re: [GENERAL] OID as Primary Key

2001-03-25 Thread Karl DeBisschop
Jonas Bengtsson wrote: > > Can't you do a dump with the oid's? > > But when I want to know the primary key of the inserted row > I have to do an extra select query. If I use oid I just use > pg_getlastoid() in php. > And it is redundant data to store another integer. > > Comments? I have often

Re: [GENERAL] MySQL file system

2001-01-16 Thread Karl DeBisschop
s PostgreSQL/FS" It's not earth shattering, and sure there are other solutions. But it's cute and could be useful. Add some bugs and a few security compromises, and it almost looks like M$. -- Karl DeBisschop [EMAIL PROTECTED] Learning Network/Information Pleas

Re: [GENERAL] How passwords can be crypted in postgres?

2001-01-02 Thread Karl DeBisschop
wrong -- you need to fetch the salt from the database first. But even so, if you then transmit this ENCRYPTED password, it can be sniffed, and the results of that sniff are all that are needed to access the system. -- Karl DeBisschop [EMAIL PROTECTED] Learning Network/

[GENERAL] Tips for investigating DBMS failure

2000-10-16 Thread Karl DeBisschop
001016.12:36:23.343 [4533] DEBUG: Data Base System was interrupted being in production at Mon Oct 16 12:35:44 2000 001016.12:36:23.365 [4533] DEBUG: Data Base System is in production state at Mon Oct 16 12:36:23 2000 001016.12:36:23.365 [4533] proc_exit(0) 001016.12:36:23.365 [4533] sh

Re: [GENERAL] Database Diagram Drawing Tools ?

2000-07-29 Thread Karl DeBisschop
ons in UML. Worked for me. -- Karl DeBisschop [EMAIL PROTECTED] Family Education Network/Information Please http://www.infoplease.com Netsaint Plugin Developer [EMAIL PROTECTED]

Re: [GENERAL] Database Diagram Drawing Tools ?

2000-07-29 Thread Karl DeBisschop
nd we found dia to handle the task easily. And for no $$$. I second the recommendation. -- Karl DeBisschop [EMAIL PROTECTED] Family Education Network/Information Please http://www.infoplease.com Netsaint Plugin Developer [EMAIL PROTECTED]

Re: [GENERAL] responses to licensing discussion

2000-07-05 Thread Karl DeBisschop
nclude some similar form of active acknowlegement. Otherwise you will never be able to distribute source, and it won't be open source anymore. -- Karl DeBisschop

Re: [GENERAL] where find postgres7.0 RPMs?

2000-05-27 Thread Karl DeBisschop
0/redhat-RPM/RPMS/redhat-6.x/ -- Karl DeBisschop www.infoplease.com

Re: [GENERAL] getting libperl.so

2000-05-17 Thread Karl DeBisschop
ose any Perl modules you may have installed > > > that don't come with the source distribution. or 'ar -a libperl.a' into a directory then gcc the resulting .o files into a single libperl.so You will have to run ldconfig and tweak the makefile because perl won't know that .so is available, but I've used this just fine on RedHat, which also doesn't include a shared libperl. Karl DeBisschop www.infoplease.com

Re: [GENERAL] getting libperl.so

2000-05-17 Thread Karl DeBisschop
Tom Lane wrote: > Karl DeBisschop <[EMAIL PROTECTED]> writes: > > or 'ar -a libperl.a' into a directory then gcc the resulting .o files into a > > single libperl.so > > That will only work on platforms where code is compiled > position-independent by defau

Re: [GENERAL] 7.0 RPM?

2000-05-10 Thread Karl DeBisschop
Thomas Lockhart wrote: > > > 7.0RC5 is database-compatible with the final, earlier betas are *not*. > > > You can use pg_upgrade to update from any 6.5-or-later version if you > > > are feeling adventurous, but I'd definitely suggest making a backup > > > first in case things go wrong and you hav

Re: [GENERAL] 7.0 RPM?

2000-05-09 Thread Karl DeBisschop
u should be able to do that without a dump/restore cycle, which was my prime concern. Karl DeBisschop

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-25 Thread Karl DeBisschop
> From: "Keith G. Murphy" <[EMAIL PROTECTED]> > > Karl DeBisschop wrote: > > > > To summarize, I stated that the following does not work with > > postgresql: > > > > > $dbh->{AutoCommit} = 0; > >

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-25 Thread Karl DeBisschop
> From: <[EMAIL PROTECTED]> > On Fri, 25 Feb 2000, Karl DeBisschop wrote: > > > > > >>To summarize, I stated that the following does not work with > > >>postgresql: > > >> > > >>> $dbh->

Re: [GENERAL] Re: [HACKERS] TRANSACTIONS

2000-02-25 Thread Karl DeBisschop
esopnsibility to cehck for valid data. The usefulness of the idion is that in a mutli-user environment, this is a basic way to update data that may or may not already have a key in the table. You can't do a "SELECT COUNT" because in the time between when you SELECT and INSERT (assumi

Re: [GENERAL] identifying performance hits: how to ???

2000-01-12 Thread Karl DeBisschop
out a year of use for important (maybe even 'mission-critical') purposes, we have only had one problem that was not easily solved ourselves. And Postgresql, Inc. solved that one for us. With alot less aggravation than most of our 'mainstream' vendors when we have a problem in

[GENERAL] Cannot index large table in 6.5.3 on Linux

1999-12-21 Thread Karl DeBisschop
local machine) Compiler used (example: gcc 2.8.0) : gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release) I would appreciate any suggestions on additional possibilities for diagnosis or repair. -- Karl DeBisschop <[EMAIL PROTECTED]> 617.832.0332 (Fax: 617.956.2696)

Mirroring a DB (was Re: [GENERAL] \d shows all my tables twice)

1999-12-11 Thread Karl DeBisschop
> > By the way, I know about using pg_dump to backup the database and I do > > that. Is there a good way to maintain a second identical copy of the > > database on another machine? Will simply copying the dump over and > > restoring it with psql do the trick? Would I need to delete an old

Re: [GENERAL] Re: [HACKERS] postgres processes

1999-06-11 Thread Karl DeBisschop
machine, use it only for redirects to the pages that call postgres (assuming this is not your whole site). Then throttle the second server back as described above (we haven't actually done this - but it seems it should work). -- Karl DeBisschop <[EMAIL PROTECTED]> 617.832.0332 (Fax:

Re: [GENERAL] TUPLES <> HEAP

1999-04-20 Thread Karl DeBisschop
Not sure that you can drop/create system indexes (I didn't notice that when I posted earlier - sorry). But the the same idea may apply - can you dump and recreate the database tables. $ pg_dump existing > existing.dump $ psql -e secondtry < exidting.dump BTW, do you need to cross-post to all t

Re: [GENERAL] How to get seq after insert]

1999-04-15 Thread Karl DeBisschop
the insert, or an error code (a negative number). But the OID can be obtained by $oid = sth->{'pg_oid_status'}; -- Karl DeBisschop <[EMAIL PROTECTED]> 617.832.0332 (Fax: 617.956.2696) Information Please - your source for FREE online reference http://www.infoplease.com - Your Ultimate Fact Finder http://kids.infoplease.com - The Great Homework Helper

Re: [GENERAL] user-defined aggreaget functions

1999-04-14 Thread Karl DeBisschop
Oops - Stupid mistake. I thought i had filtered put all of the nulls and blank entries from the source table, but I hadn't. Of course the match doesn't work on a blank entry. the user-defined aggregate functions do work properly, and as expected. Sorry to trouble everyone.

[GENERAL] user-defined aggreaget functions

1999-04-14 Thread Karl DeBisschop
pr $num + $a * 1000] ' LANGUAGE 'pltcl'; The function works fine in the statement => SELECT uid2int(uid),ipd from rhd; but fails in => SELECT uid2int(uid),uid2int(ipd) from rhd; ERROR: pltcl: can't read "pre": no such variable where both uid and ip

Re: [GENERAL] insert iff !exist

1999-04-11 Thread Karl DeBisschop
> How can you > > if(update row fails because doesn't exist, ie. returns 0)then(insert row) Depends on what interface you are using. In perl DBI, the return value of the a $dbh->do("update...") should be the nomber of rows inserted. Same with doing a sequence of $sth=$dbh->prepare("update

Re: [GENERAL] using Oids to retrieve a row

1999-03-26 Thread Karl DeBisschop
are you doing this in psql? Or perl, php, or some other? perl and php both have methods for getting the oid of the last inserted row (use "$oid = $sth->{'pg_oid_status'};" in perl and "$oid = pg_GetLastOid($result_id);" in php ) Look at the php documentation, or do 'perldoc DBD::Pg' to see mor

Re: [GENERAL] database-level locking

1999-03-19 Thread Karl DeBisschop
odify pghba.conf, to revoke access to databases > for every user/domain; delete smth, whatever you want and restore access. > I'm not sure if it break current connections, rollback transactions etc. > - you should test it ;) > > At 13:57 99-03-19 -0500, Karl DeBisschop wrote:

[GENERAL] database-level locking

1999-03-19 Thread Karl DeBisschop
Does anyone know a way to lock a database under postgres while leaving available the other databases managed by postmaster? We are running postgreSQL 6.4.2 on our web site for content serving and for registration information. There are 4 separate databases served by postmatser to support these