[GENERAL] Encoding Sort order

2007-05-31 Thread Richard Broersma Jr
I understand that it is possible for tables from different databases that have the exact same data but different Encoding can sort rows in differet orders. Could this allow affect the order that triggers and rules are fired? Regards, Richard Broersma Jr. ---(end of

Re: [GENERAL] Foreign keys and indexes

2007-06-05 Thread Richard Broersma Jr
ndexes on FKs. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] CREATE RULE with WHERE clause

2007-06-05 Thread Richard Broersma Jr
se the where syntax in your query since it does not and cannot reference a NEW or OLD tuple. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Surrogate VS natural keys

2007-06-20 Thread Richard Broersma Jr
ips using UNIQUE natural keys. Would a design like this be practical? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Possible bug (or I don't understand how foreign keys should work with partitions)

2007-06-22 Thread Richard Broersma Jr
T-CAVEATS Overcoming this limitation is on the todo list, but as far as I know it isn't slated to be fixed in the upcomming 8.3. Perhaps 8.4 will include this feature. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 2: Don&#

Re: [GENERAL] Rule vs Trigger

2007-06-25 Thread Richard Broersma Jr
ment. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Re: [GENERAL] CHECK

2007-06-25 Thread Richard Broersma Jr
user defined column type). http://www.postgresql.org/docs/8.2/interactive/ddl-constraints.html http://www.postgresql.org/docs/8.2/interactive/sql-createdomain.html Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

[GENERAL] View Triggers

2007-06-26 Thread Richard Broersma Jr
the safe utilization of update triggers? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] Checking for a number

2007-06-27 Thread Richard Broersma Jr
--- Osvaldo Rosario Kussama <[EMAIL PROTECTED]> wrote: > Try: > SELECT your_field ~ '.*[[:digit:]]{2}$'; This could be simplified a little. :o) WHERE your_field ~ '\\d{2}$'; ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will i

Re: [GENERAL] Looking for help regarding getting the latest inserted sequence value.

2007-06-30 Thread Richard Broersma Jr
tement, you could insert into two or more tables. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] Trigger Priority

2007-07-03 Thread Richard Broersma Jr
programmatic way to control how triggers are > fired if there > is more than one trigger for a particular type (before, after) the insert, > update, delete > commands. The triggers fire in alphbetical order. Regards, Richard Broersma Jr. ---(end of broadcas

Re: [GENERAL] Postgres Geometry

2007-07-16 Thread Richard Broersma Jr
--- Bob Pawley <[EMAIL PROTECTED]> wrote: > I have developed a PostgreSQL database c/w a Delphi interface with which to > input data. > If so, are there any tools that may assist me in developing this graphic > interface? This link seemed enteresting to me. http://www.netbeans.org/download/f

Re: [GENERAL] PostgreSQL, PGDAY, PGParty and OSCON 2007 Rocked!

2007-07-27 Thread Richard Broersma Jr
--- "Joshua D. Drake" <[EMAIL PROTECTED]> wrote: > Hello, > > For those who were too square to be there, For us squares, are there any pictures avaliable of this event? Regards, Richard Broersma Jr. ---(end of broadcast)-

Re: [GENERAL] plperl syntax highlighting for vi

2007-07-31 Thread Richard Broersma Jr
.vim file? TIA, Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: Timestamp in pg_dump output, was Re: [GENERAL] How I can know a back up database is up to date

2007-08-10 Thread Richard Broersma Jr
#x27;t...it simply says "PostgreSQL database dump" which is only > helpful to a point. :-) If you need to, you can append your own timestamp to the dump file if you need it. I rolled this functionality into a .bat file. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] can i use an array as a table (in the from clause)

2007-08-13 Thread Richard Broersma Jr
esTable( col1, col2 ) WHERE col2 < 5 GROUP BY col1 ORDER BY col1; col1 |avg --+ 1 | 1.5000 2 | 3.5000 (2 rows) Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP

Re: [GENERAL] Yet Another COUNT(*)...WHERE...question

2007-08-15 Thread Richard Broersma Jr
ne of the links that describe the method of implementing a materialized view. http://www.jonathangardner.net/PostgreSQL/materialized_views/matviews.html other useful docs like this one can be found here: http://www.postgresql.org/docs/techdocs.2 Regards, Richard Broersma Jr. --

Re: [GENERAL] Yet Another COUNT(*)...WHERE...question

2007-08-15 Thread Richard Broersma Jr
your query this way: SELECT * FROM your_table WHERE item_nbr > [: last item on previous page :] ORDER BY item_nbr LIMIT 15; This method was discuss on the list a couple of months ago. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Customizing psql console to show execution times

2007-08-15 Thread Richard Broersma Jr
command prompt. The one you want is "\timing". However, notice that "\timing" and explain analyze do not exactly agree on the results they produce. IIRC, "\time" also counts its own overhead. Regards, Richard Broersma Jr. ---(end of bro

Re: [GENERAL] Fastest way to import only ONE column into a table? (COPY doesn't work)

2007-08-16 Thread Richard Broersma Jr
uld turn fsync back on. My guess is that a join and update on 6 million records in just going to take a while. Hopefully this isn't an operation that you will need to preform regularly. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Table description

2007-08-20 Thread Richard Broersma Jr
tributes \d+ [table_name] to see additional table attributes Regards, Richard Broersma Jr. ---(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

Re: [GENERAL] PostgreSQL vs Firebird feature comparison finished

2007-08-23 Thread Richard Broersma Jr
UNKNOWN; -- return all people who might meet this criteria if their null field where known. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [GENERAL] Export data to MS Excel

2007-09-01 Thread Richard Broersma Jr
ability for the users to "Refresh" the exported data directly from excel using the build in functionality of excel. http://pgfoundry.org/projects/psqlodbc/ http://www.sls.psi.ch/controls/help/tutorials/Excel_ODBC/index.html Regards, Richard Broersma Jr. ---

Re: [GENERAL] Statistics collection question

2007-09-03 Thread Richard Broersma Jr
(cost=0.00..3.41 > Time: 2.990 ms Thats odd, I wonder why the EXPLAIN ANALYZE time id some much less that the logged select statement times? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Partial index with regexp not working

2007-09-11 Thread Richard Broersma Jr
er_id ~ '[a-z]' IIRC, for any index like this to work, doesn't the REGEXP need to be anchored to either the start or end of the string? Regards, Richard Broersma Jr. ---(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 datatypes do not match

Re: [GENERAL] Event-driven programming?

2007-09-12 Thread Richard Broersma Jr
gresql.org/docs/8.2/static/sql-notify.html Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Cannot declare record members NOT NULL

2007-09-12 Thread Richard Broersma Jr
NULL; > > $$ > > > SELECT movie_id, movie_name FROM get_movies (); > => returns a SETOF of (int4 NULL, text NULL) I don't know if this will work, but here is another idea: SELECT movie_id, movie_name FROM get_movies() AS ( int4 NOT NULL, text NOT NULL ); Re

Re: [GENERAL] Cannot declare record members NOT NULL

2007-09-12 Thread Richard Broersma Jr
t's not even valid syntax... It isn't valid SQL spec syntax but it is a Postgresql-ism for functions return types: http://www.postgresql.org/docs/8.2/interactive/sql-select.html notice this "from-type" listing for functions. Regards, Richard Broersma Jr. --

Re: [GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER

2007-09-18 Thread Richard Broersma Jr
x.html#SQL-CREATEINDEX-STORAGE-PARAMETERS I found this: "B-trees use a default fillfactor of 90, but any value from 10 to 100 can be selected." Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 9: In versions below 8.0, the pl

Re: [GENERAL] ON INSERT => execute AWK/SH/EXE?

2007-09-18 Thread Richard Broersma Jr
at plbat doesn't exist :-). Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER

2007-09-18 Thread Richard Broersma Jr
oblem with the performance of disk writing though-put from UPDATEs and INSERTs? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

[GENERAL] Windows Auto-Vacuum in 8.2.4 or 8.2.5

2007-09-18 Thread Richard Broersma Jr
.4 or 8.2.5. Does any know if it was? Regards, Richard Broersma Jr. ---(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 datatypes do not match

Re: [GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER

2007-09-19 Thread Richard Broersma Jr
or. Larger indexes require more time to be read from disk to memory and will require more time to sequentially scan to find to find the cross-reference table page location of records of interest. So the net effect is that larger indexes will make SELECT statement slower. This is my under

Re: [GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER

2007-09-19 Thread Richard Broersma Jr
> Not quite. Once a page has reached it's fill factor percentage full, > no more inserts will happen on that page, only updates. Also, I > think you have large/small backwards wrt fill factor. If you have a > fill factor of, say, 40% then once a page has reached 40% full no > more inser

Re: [GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER

2007-09-19 Thread Richard Broersma Jr
); Primary key will create an implied index. Fill factor is applied to that implied index. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER

2007-09-19 Thread Richard Broersma Jr
--- Erik Jones <[EMAIL PROTECTED]> wrote: > Also, note that once we have HOT... I am not sure what the acronym "HOT" stands for. Does it have something to do with MVCC? Regards, Richard Broersma Jr. ---(end of broadcast)-

Re: [GENERAL] Windows Auto-Vacuum in 8.2.4 or 8.2.5

2007-09-21 Thread Richard Broersma Jr
I thought I would give this question a second try. --- Richard Broersma Jr <[EMAIL PROTECTED]> wrote: > A while back it was pointed out the that the Windows version of 8.2.3 had a > bug that prevented > auto-vacuum from working correctly. > > http://archives.postgresql.o

Re: [GENERAL] Windows Auto-Vacuum in 8.2.4 or 8.2.5

2007-09-21 Thread Richard Broersma Jr
and I will check to see if I notice a difference. Ofcourse, maybe auto-vacuum does work but I have a configuration error some where. Thanks for the consideration! Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1: if posting/readi

Re: [GENERAL] Windows Auto-Vacuum in 8.2.4 or 8.2.5

2007-09-21 Thread Richard Broersma Jr
But to start off with, here are the settings that I currently have in my postgresql.conf for auto-vacuum. I will post-back with any results whether I see auto-vacuum working in 8.2.5 or not. Thanks! Regards, Richard

Re: [GENERAL] Windows Auto-Vacuum in 8.2.4 or 8.2.5

2007-09-21 Thread Richard Broersma Jr
--- Richard Broersma Jr <[EMAIL PROTECTED]> wrote: > I will dis-able the hourly manual vacuum/analyze script that I implemented as > a work-around to > this problem to see if auto-vacuum is ever triggered. it appears to be working fine in 8.2.5: proj02u20411=> begin

Re: [GENERAL] Why the ERROR: duplicate key violates uniqueconstraint "master_pkey" is raised? - Is this a Bug?

2007-09-24 Thread Richard Broersma Jr
is type of operation is the Hierarchical Nested Set data model. Inserting/updating/deleting nodes and branches into the table requires updating the primary key of a lot of records. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 9: In ver

Re: [GENERAL] decode access privileges

2007-09-26 Thread Richard Broersma Jr
--- John Smith <[EMAIL PROTECTED]> wrote: > what does this mean? > {postgres=arwdRxt/postgres,username=r/postgres} This link describes each of the letters: http://www.tldp.org/LDP/intro-linux/html/sect_03_04.html Regards, Richard Broersma Jr. ---(end

Re: [GENERAL] 3 tables join update

2007-09-29 Thread Richard Broersma Jr
st. Doing this is impossible. For this to work, you should be using an INSERT query to _ADD_ records to foo that do not yet exist. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ign

Re: [GENERAL] Request: Anyone using bogus / "humorous" X-Message-Flag headers, could we please turn them off

2007-10-08 Thread Richard Broersma Jr
e seem email I've posted has produce broken lines. I am not sure if this was already mentioned, does anyone know of non-html windows email clients that work well for this mailing list? Regards, Richard Broersma Jr. ---(end of broadcast)--- TI

Re: [GENERAL] Lifting WHERE conditions out of inner select

2007-10-08 Thread Richard Broersma Jr
id AND R.synset2id = S.synsetid INNER JOIN synset AS T ON S1.synsetid = T.synsetid WHERE W.lemma = 'scramble' AND R.linked = 1 AND R.pos='v' ORDER BY lemma; Regards, Richard Broersma Jr. ---(end of broadcast)--

Re: [GENERAL] Lifting WHERE conditions out of inner select

2007-10-08 Thread Richard Broersma Jr
OOPs! --- Richard Broersma Jr <[EMAIL PROTECTED]> wrote: > --- "John D. Burger" <[EMAIL PROTECTED]> wrote: > > My question is, should the planner have figured this out, and we're > > just losing out because we're stuck in 7.4? Or is there some s

[GENERAL] <> ALL( ... ) and <> ANY ( ... ) didn't behave as expected

2007-10-10 Thread Richard Broersma Jr
Y ( SELECT gender FROM Children AS C1 WHERE C1.parentid = P.parentid ); Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subs

Re: [GENERAL] <> ALL( ... ) and <> ANY ( ... ) didn't behave as expected

2007-10-10 Thread Richard Broersma Jr
oy'. Under the > obvious assumptions about gender, the result is of course empty - > except it's not clear to me what should happen for childless people ... Thanks everyone that makes sense! Regards, Richard Broersma Jr. ---(end of broadcast)---

Re: [GENERAL] uniquely indexing Celko's nested set model

2007-10-19 Thread Richard Broersma Jr
sible for any LEFT or RIGHT to have to same > > value. > a check constraint ought to do it True, but how do I insure that one record's left does not equal another record's right? Regards, Richard Broersma Jr. ---(end of broadcast)-

[GENERAL] uniquely indexing Celko's nested set model

2007-10-19 Thread Richard Broersma Jr
Is it possible to constraint both the LEFT and RIGHT fields of a record to use the same index? I am looking for a way to ensure for all LEFTs and RIGHTs in a table, that is it is impossible for any LEFT or RIGHT to have to same value. ---(end of broadcast)---

Re: [GENERAL] uniquely indexing Celko's nested set model

2007-10-20 Thread Richard Broersma Jr
rks with adjacency list model? If the nested set model is chosen, would having a table and index fill factor of 50% be a good idea in this case if periodic updates were expected? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 3: H

Re: [GENERAL] Select Command

2007-10-22 Thread Richard Broersma Jr
--- On Sun, 10/21/07, Adrian Klaver <[EMAIL PROTECTED]> wrote: > > I have a column with data structured as follows. > > > > 32TT - 0002 > > 32LT- 0004 > > 32PT-0005 > > > > Is there a way of selecting all of the rows containing > LT in that column?? > > > > I have attempted variations of ' *LT* ' w

Re: [GENERAL] PostgreSQL and AutoCad

2007-10-29 Thread Richard Broersma Jr
ata stored in the database. :-) Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Raid Chunk Sizes for DSS type DB

2007-10-29 Thread Richard Broersma Jr
--- On Mon, 10/29/07, Ow Mun Heng <[EMAIL PROTECTED]> wrote: > (Raid1 = No Fault tolerance since 3 drives) Raid1 with three drives will have fault tolerance. You will have three disks with the same image. This is triple redundancy. This could greatly improve select performance. Having said th

Re: [GENERAL] [ADMIN] "global/pg_control": Permission denied

2007-11-15 Thread Richard Broersma Jr
ectory supposed to be marked read only? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] [ADMIN] "global/pg_control": Permission denied

2007-11-15 Thread Richard Broersma Jr
--- On Thu, 11/15/07, Richard Broersma Jr <[EMAIL PROTECTED]> wrote: > My desktop (acting as a db-server for my discipline's > group) has it power cycled this morning at 4:10 >... > C:\Program > Files\PostgreSQL\8.2\bin>2007-11-15 06:36:13 > PANIC: could

Re: [GENERAL] VB ADODB .Open failing

2007-11-20 Thread Richard Broersma Jr
ver configuration, you might also try posting to the PostgreSQL-ODBC mailing list. Also, why did you choose the ANSI driver over the Unicode driver? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1: if posting/reading through Usene

Re: [GENERAL] POLL: Women-sized t-shirts for PostgreSQL

2007-11-21 Thread Richard Broersma Jr
an the US. It seems sized like a medium to large and it fits me like a glove. But there is a plus side to its sizing, I never need to iron out the wrinkles to give it that nice pressed look. :o) Regards, Richard Broersma Jr. ---(end of broadcast)--

Re: [GENERAL] POLL: Women-sized t-shirts for PostgreSQL

2007-11-21 Thread Richard Broersma Jr
be used. I personally wouldn't even mind having a PG polo that has 3rd part vendor logos on the sleeves if that would help make PG polo shirts available. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] Bad Schema Design or Useful Trick?

2007-11-21 Thread Richard Broersma Jr
ts( part_nbr, part_type) ON DELETE CASCADE ON UPDATE CASCADE); Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] ODBC, access, and joins

2007-11-23 Thread Richard Broersma Jr
ll odbc linked tables (to any flavor of RDBMS) will incorrectly treat nulls and false. All attemps to update a record using MS-access and ODBC with a null boolean will result in failure. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1

Re: [GENERAL] Primary Key

2007-11-26 Thread Richard Broersma Jr
plicated VIN numbers or if the VIN's they are given do not pass the the VIN check-sum (if such a think exists). Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate sub

[GENERAL] 60 Seconds to connected to Postgresql using ODBC or PGAdmin

2007-11-28 Thread Richard Broersma Jr
sent to you, how many columns should I try to create in a table in order to reproduce the problem you where having with needing OIDs created in your tables? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner wi

Re: [GENERAL] 60 Seconds to connected to Postgresql using ODBC or PGAdmin

2007-11-28 Thread Richard Broersma Jr
--- On Wed, 11/28/07, Richard Huxton <[EMAIL PROTECTED]> wrote: > Name lookups. Something is trying to look up a name, > failing and it's > timing out after 60 seconds. It seems the OP's connection string was set to localhost. Would this still indicate a Name Loopup problem? Regards, Richard

[GENERAL] viewing definition of "CREATE TYPE name AS ENUM..."

2007-11-29 Thread Richard Broersma Jr
After a type is created, is it possible to view the definition of this type? ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [GENERAL] viewing definition of "CREATE TYPE name AS ENUM..."

2007-11-29 Thread Richard Broersma Jr
--- On Thu, 11/29/07, Usama Dar <[EMAIL PROTECTED]> wrote: > See if they help you > http://www.postgresql.org/docs/8.3/static/functions-enum.html I will give this a try, thanks! Regards, Richard Broersma Jr. ---(end of broadcast)---

Re: [GENERAL] SQL design pattern for a delta trigger?

2007-12-10 Thread Richard Broersma Jr
--- On Mon, 12/10/07, Ted Byers <[EMAIL PROTECTED]> wrote: > but how do you > do it using SQL in an RDBMS? I believe that there is an ANSI SQL command "MERGE" that is yet to be implemented into PostgreSQL. Regards, Richard Broersma Jr. --

Re: [GENERAL] if exists...does it exists for insert statments?

2007-12-11 Thread Richard Broersma Jr
re-written: INSERT INTO SP SELECT a, b FROM VALUES ( 'cesp', 'sp' ) AS tmp( a, b ) LEFT JOIN Sp ON (Sp.col1,Sp.col2)=(tmp.a,tmp.b) WHERE (Sp.col1,Sp.col2) IS NULL; Regards, Richard Broersma Jr. ---(end of broadcast)

Re: [GENERAL] if exists...does it exists for insert statments?

2007-12-11 Thread Richard Broersma Jr
Sp.col2)=(tmp.a,tmp.b) WHERE (Sp.col1,Sp.col2) IS NULL; I forgot the parentheses that the FROM clause requires when using the VALUES predicate. Also remember that this only works in PostgreSQL versions >= 8.2. Regards, Richard Broersma Jr. ---(end of broadcast)

[GENERAL] Creating Aggregate functions in PLpgSQL

2007-12-11 Thread Richard Broersma Jr
Is it possible to create aggregate functions using pl/pgsql? If not possible in plpgsql, is there any other way to create these types of functions? If anyone could point to the correct documentation I would be most appreciative. Regards, Richard Broersma Jr. ---(end of

Re: [GENERAL] Creating Aggregate functions in PLpgSQL

2007-12-11 Thread Richard Broersma Jr
ind the hypotenuse after having summing of multiple 2 coordinate vectors(the EEs use the term phasers) for each MCC cubical. It seems they have need for quite a few other little aggregate functions that they would like me to make if I can get this one done first. Anyway thank for the push in the

Re: [GENERAL] Creating Aggregate functions in PLpgSQL

2007-12-11 Thread Richard Broersma Jr
--- On Tue, 12/11/07, Tom Lane <[EMAIL PROTECTED]> wrote: > Also see the overview at > http://www.postgresql.org/docs/8.3/static/xaggr.html Thanks Tom! ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate

[GENERAL] Southern California Linux Expo

2007-12-12 Thread Richard Broersma Jr
Are there any planes in the works for a booth and talks for PostgreSQL? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED

Re: [GENERAL] Creating Aggregate functions in PLpgSQL

2007-12-12 Thread Richard Broersma Jr
banks to help offset the effective of reactive power inherent in the inductive load of motors. This is a perfect problem for a custom aggregate. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] For the SQL gurus out there

2007-12-13 Thread Richard Broersma Jr
with the adjacency list model. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly

Re: [GENERAL] Creating Aggregate functions in PLpgSQL

2007-12-13 Thread Richard Broersma Jr
--- On Thu, 12/13/07, Jorge Godoy <[EMAIL PROTECTED]> wrote: > Actually pF is measured from -1 to 1. > > they tell you that they want doing some pF correction on > the facility and you > need to have that counted as well. Thanks for the correct, and good point. :-) Rega

Re: [GENERAL] mssql migration and boolean to integer problems

2007-12-14 Thread Richard Broersma Jr
u20411=> select cast( 1 as boolean), proj02u20411=> cast( 0 as boolean), proj02u20411=> cast( -1 as boolean ), proj02u20411=> cast( 2 as boolean); bool | bool | bool | bool --+--+--+------ t | f| t| t Regards, Richard Broersma Jr. ---(en

[GENERAL] Exactly what is DEFERRABLE

2007-12-21 Thread Richard Broersma Jr
I noticed from the 8.3 manual (CREATE TABLE section): NOT DEFERRABLE ... Only foreign key constraints currently accept this clause. All other constraint types are not deferrable. Does this imply that custom CONSTRAINT TRIGGERs are not DEFERRABLE? Or are they? Regards, Richard Broersma Jr

[GENERAL] Requirements for Constraint Trigger's Function

2007-12-21 Thread Richard Broersma Jr
What is the proper way for the function of a constraint trigger to signal where or not referential integrity was compromised? Should it return some sort of value? Should it raise an exception? Regards, Richard Broersma Jr. ---(end of broadcast

Re: [GENERAL] Exactly what is DEFERRABLE

2007-12-21 Thread Richard Broersma Jr
--- On Fri, 12/21/07, Richard Broersma Jr <[EMAIL PROTECTED]> wrote: > Does this imply that custom CONSTRAINT TRIGGERs are not > DEFERRABLE? Or are they? Sorry dumb question. They must be deferrable since their create statement allows for differable. Regard,s Richard

[GENERAL] Constraint Trigger's referenced_table

2007-12-21 Thread Richard Broersma Jr
How does a Constraint Trigger react to a referenced table when the constraint is created implementing the FROM clause? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Requirements for Constraint Trigger's Function

2007-12-22 Thread Richard Broersma Jr
--- On Sat, 12/22/07, Michael Glaesemann <[EMAIL PROTECTED]> wrote: > > Should it return some sort of value? Should it raise > an exception? > > The latter. Thanks Michael! Regards, Richard Broersma Jr. ---(end of broadcast)--

Re: [GENERAL] Constraint Trigger's referenced_table

2007-12-22 Thread Richard Broersma Jr
the ON table or FROM table to raise the raise the trigger. So is the purpose of knowing the reference_table OID, is that it helps to generalize the logic of the CONSTRAINT TRIGGERS? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: exp

Re: [GENERAL] Constraint Trigger's referenced_table

2007-12-22 Thread Richard Broersma Jr
n triggers on the two tables? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get throug

Re: [GENERAL] Constraint Trigger's referenced_table

2007-12-22 Thread Richard Broersma Jr
--- On Sat, 12/22/07, Tom Lane <[EMAIL PROTECTED]> wrote: > There's always the source code: > src/backend/utils/adt/ri_triggers.c Thanks. I will do my best and give it a try :-) ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ?

Re: [GENERAL] Constraint Trigger's referenced_table

2007-12-23 Thread Richard Broersma Jr
table" predicated of the CREATE Constraint Trigger enable this kind of notification to perform cross checking even though there are strictly no pk/fk relations between these table? Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

Re: [GENERAL] Constraint Trigger's referenced_table

2007-12-23 Thread Richard Broersma Jr
traints that have ON UPDATE or ON DELETE actions set. I think I understand now. Thanks for the clarification. Regards, Richard Broersma JR. ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

[GENERAL] possible psql \d bug in 8.3 beta2

2007-12-23 Thread Richard Broersma Jr
-+-- history | managers| table | teaminst <--where is project.managers project | project_tls | table | teaminst project | projects| table | teaminst (3 rows) instrumentation=> Regards, Richard Broersma Jr. ---(end of broadcast)--

Re: [GENERAL] possible psql \d bug in 8.3 beta2

2007-12-23 Thread Richard Broersma Jr
ut any particular schema specification will > only show tables > that could be accessed by an unqualified table name. I see. Thanks for the clarification. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] how to alter an enum type

2007-12-24 Thread Richard Broersma Jr
to alter the column on your table to use your new type. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] pg_ctl start fails on Windows

2007-12-24 Thread Richard Broersma Jr
, my Postgresql directory was altered to be READ-ONLY. Once this happened, postgresql wan't able to start. After spending a quited a bit of time to dicover the cause of the problem, I simply had to reset the directoy to be write-able. I hope this helps. Regards, Richard Broersma Jr.

Re: [GENERAL] how to alter an enum type

2007-12-24 Thread Richard Broersma Jr
using a select statement. This way the contents of the type can be seen in a base table. and it would be easy to recreate the type when new elements are added or removed. I'll have to play around with this in the future to see what is possible. Regards, Richard Broersma Jr. --

Re: [GENERAL] copy database by copying datafiles ?

2007-12-24 Thread Richard Broersma Jr
ys use tar to spit the file up to make the transition a bit more manageable. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

[TLM] Re: [GENERAL] pg_ctl start fails on Windows

2007-12-27 Thread Richard Broersma Jr
, my Postgresql directory was altered to be READ-ONLY. Once this happened, postgresql wan't able to start. After spending a quited a bit of time to dicover the cause of the problem, I simply had to reset the directoy to be write-able. I hope this helps. Regards, Richard Broersma Jr.

[TLM] Re: [GENERAL] how to alter an enum type

2007-12-27 Thread Richard Broersma Jr
to alter the column on your table to use your new type. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] weird date/times in mailing list

2007-12-27 Thread Richard Broersma Jr
these posts are prefixed with [TLM]. I've noticed that one of the emails that I posted a couple of days ago was reciently reposted with the prefix [TLM]. I wonder if someone is bouncing emails from this list. Regards, Richard Broersma Jr. ---(end of broadcast)---

[GENERAL] timestamptz & 'infinity' & date

2007-12-31 Thread Richard Broersma Jr
input syntax for type date: "infinity" instrumentation=> SELECT 'infinity'::timestamptz; timestamptz - infinity (1 row) instrumentation=> SELECT 'infinity'::timestamptz::date; date -- <-- this blank I determine was a NULL. (1 row) Is

[GENERAL] visibility rules for AFTER UPDATE Constraint Triggers Function

2008-01-01 Thread Richard Broersma Jr
e non-committed records. I.E. the record that should be equal to NEW is in fact equal to OLD. Is this correct? Is there a way to adjust the visibility so that yet-to-be committed tuples are seen by the trigger function? Regards, Richard Broersma Jr. ---(end of broa

Re: [GENERAL] visibility rules for AFTER UPDATE Constraint Triggers Function

2008-01-02 Thread Richard Broersma Jr
Sees NEW. I was my understanding that all single DML statement are wrapped in their own transaction so I thought that these two statements should preform the same. Regards, Richard Broersma Jr.-- -- PostgreSQL database dump -- -- Started on 2008-01-02 05:35:55 SET client_encoding =

Re: [GENERAL] visibility rules for AFTER UPDATE Constraint Triggers Function

2008-01-02 Thread Richard Broersma Jr
t; case that's the UPDATE, in the second it's the COMMIT. Thanks for the help Tom. This information is good to know. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 9: In versions below 8.0, the planner will ignore your desire to

  1   2   3   >