Re: [GENERAL] Help with transactions

2005-03-21 Thread Stephen Howie
2(table1_id, newdata3); IF table2_id > 0 THEN RETURN TRUE; ELSE RETURN FALSE; END IF; END; ' LANGUAGE plpgsql SECURITY DEFINER; END=== Also, in my original schema I'm getting an increment of 2 every time I run nextval. I can't dup

[GENERAL] Help with transactions

2005-03-18 Thread Stephen Howie
fail if the trigger fails? To me that defeats the purpose of having a trigger after insert. Thanks for any help -- - Stephen Howie begin:vcard fn:Stephen Howie n:Howie;Stephen email;internet:[EMAIL PROTECTED] tel;work:260-760-5910 tel;fax:260-436-9472 tel;cell:260-704-6262

Re: [GENERAL] 50 MB Table

2000-03-07 Thread Howie
lly ) and should speed it up a bit. id also suggest grabbing more ram while its (relatively) inexpensive. > [SNIP] --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "You do not have the right to free health care. That would be nice, but from the looks of public housing, we're just not interested in health care."

Re: [GENERAL] Deleting large objects sans index

2000-02-19 Thread Howie
RC_ROOT/contrib/lo/ that handles automagic deletes of LO's if the corresponding oid is removed. the release in 6.5.2 had a bug where it didnt check for NULL oids, though. i havent taken the time to patch it and mail it back to the dev team. --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "You do not have the right to free health care. That would be nice, but from the looks of public housing, we're just not interested in health care."

Re: PostgreSQL Portable Runtime (was Re: [GENERAL] Future of PostgreSQL)

1999-12-30 Thread Howie
bocat.de ) has a working EOAdaptor for MacOS X Server, OPENSTEP/Mach, and OPENSTEP/NT. ive been using it for quite a few internal projects under MacOS X Server. works great. > [SNIP] --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "I've learned that you can

Re: [GENERAL] pgsql 7.x...

1999-12-27 Thread Howie
On Sun, 26 Dec 1999, Mike Mascari wrote: > Howie wrote: > > > will this function/index problem be fixed in 7.x ? > > > > ircbot=> explain select * from logins where dttime = NOW(); > [SNIP] > emptoris=> explain select * from sales where saledate = &#

[GENERAL] pgsql 7.x...

1999-12-26 Thread Howie
LAN: Index Scan using logins_dttime_idx on logins (cost=2.54 rows=11 width=52) EXPLAIN ( logins actually has 755,728 rows right now ) --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "I've learned that you cannot make someone love you. All you can do is stalk them and hope they panic and give in."

Re: [GENERAL] Future of PostgreSQL

1999-12-26 Thread Howie
that Oracle does ), some additional grants ( 'grant connect to' ), 'alter table add constraint '... tablespace support would put pgsql s far ahead of most other rdbmses. --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "I've learned tha

Re: [GENERAL] Mail to DB.

1999-11-28 Thread Howie
nd Subject: in a table ( for queries ). --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "Tell a man that there are 400 billion stars and he'll believe you. Tell him a bench has wet paint and he has to touch it."

Re: [GENERAL] stored procedure revisited

1999-10-13 Thread Howie
r more moderately and > accurately data mart) support also -- the point: the priority? so either (A) work on implementing tablespaces or (B) donate some money to postgresql, inc. --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "Just think how much deeper the ocean would be if sponges didn't live there."

Re: [GENERAL] Foreign Key

1999-10-06 Thread Howie
On Wed, 6 Oct 1999, Herouth Maoz wrote: > At 01:10 +0200 on 06/10/1999, Howie wrote: > > > > for now, refint ( $PGSQL_SRC_ROOT/contrib/spi/ ) is what one should be > > using for foreign keys. requires two triggers, one on the parent and one > > on the child. works

Re: [GENERAL] Foreign Key

1999-10-05 Thread Howie
requires two triggers, one on the parent and one on the child. works nicely. --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "Just think how much deeper the ocean would be if sponges didn't live there."

Re: [GENERAL] lo_* interface ...

1999-08-31 Thread Howie
ta in a separate tablespace. might be something to look into once postgres supports tablespaces. else your db dir/partition fills up _very_ quickly. --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "The distance between insanity and genius is measured only by success."

Re: [GENERAL] PostgreSQL table data structure generator...

1999-08-31 Thread Howie
ou could use GNUstep's ( http://www.gnustep.org ) database library ( aka Enterprise Objects Framework 1.x ), which provides an OO wrapper for database independent stuff. you dont have to deal with SQL; you deal with the objects. quite nice. NeXT ( now Apple ) has been doing that for quite some

Re: [GENERAL] Large Object questions...

1999-08-09 Thread Howie
row was removed. the one thing i miss is the ability to determine a lo's size ( hinthintnudgenudgewinkwink ). --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "The distance between insanity and genius is measured only by success."

[GENERAL] Re: [SQL] referential integrity

1999-08-04 Thread Howie
u can use refint ( $PGSQL_SRC_ROOT/contrib/spi/refint.* ), which handles referential integrity. check_primary_key() and check_foreign_key() are the two functions involved. youd also need two triggers, one per table. i could've sworn this got added to the FAQ... --- Howie <[EMAIL PROTEC

[GENERAL] Large Object questions...

1999-07-29 Thread Howie
x27;s directory ( xinv* ). they're also still in the pg_type table. shouldnt the oid's ( and their corresponding xinv* files ) have been removed when i deleted the rows from the table? how does one remove these large objects from both the pg_type table and the disk ( removing the x

Re: [GENERAL] Foreign Keys in PostgreSQL

1999-07-15 Thread Howie
ys. two functions are involved, check_foreign_key() and check_primary_key(). --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "The distance between insanity and genius is measured only by success."

Re: [GENERAL] New FAQ item

1999-07-11 Thread Howie
? With Oracle? try it and find out :) id like to know, but dont have any MS-Windows machines here. --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "The distance between insanity and genius is measured only by success."

[GENERAL] problem with PostgreSQL 6.5 on Linux

1999-06-25 Thread Howie
re that im using 6.5's initdb. yes, ive made sure that initdb is looking in the 6.5 dir for its template. yes, its writing to a 6.5 dir. so, errr, what gives? --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "The distance between insanity and genius is measured only by success."

Re: [GENERAL] bug in 6.4.2?

1999-05-31 Thread Howie
think. > Should work fine when 6.5 is released. i had figured the client was caching OIDs. _really_ looking forward to 6.5, keep up the great work! --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "Do a little dance, make a little code, compile tonight... compile tonight."

[GENERAL] bug in 6.4.2?

1999-05-31 Thread Howie
ppen again ? thanks in advance. --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "Do a little dance, make a little code, compile tonight... compile tonight."

Re: [GENERAL] Why PostgreSQL is better than other commerial softwares?

1998-12-17 Thread Howie
atabases ( terabytes ) oracle has some nice tools available, as does postgres. the difference is that postgres' tools are normally opensource/free whereas you pay, sometimes pay big bucks, for oracle's. --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org "Oh my god, they killed init! YOU BASTARDS!"

Re: [GENERAL] slow queries

1998-09-25 Thread Howie
ioned before ), my queries were sped up by roughly 10 seconds... odd odd odd. --- Howie <[EMAIL PROTECTED]> URL: http://www.toodarkpark.org [[NSNotificationCenter defaultCenter] addObserver:systemAdministrator selector:@selector(disableUserAccount:) name:@"UserIsWhining" object:aLuser];