Re: [GENERAL] Is PostGreSql's Data storage mechanism inferior?

2008-01-30 Thread Richard Broersma Jr
. If you don't get too much feed back on this subject, just remember that topics like this come up frequently to the point of list member exhaustion. You can find such discussions if you search the list archive. Regards, Richard Broersma Jr. ---(end of broadcast

Re: [GENERAL] referencing to computed columns in where clause

2008-01-29 Thread Richard Broersma Jr
--- On Tue, 1/29/08, Ivan Sergio Borgonovo [EMAIL PROTECTED] wrote: other than defining a function such that I can write: SELECT ( a-b ) as pippo FROM Yourtable WHERE ( a-b ) = 7 UNION ALL SELECT ( a*b ) as pippo FROM Yourtable WHERE ( a*b ) 12 AND a 3 UNION ALL

Re: [GENERAL] altering foreign keys

2008-01-22 Thread Richard Broersma Jr
REFERENCES parent_table( primary_column ) ON UPDATE CASCADE; Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] many to one of many modeling question

2008-01-11 Thread Richard Broersma Jr
referential integrity ON UPDATE CASCADE. This means that they database ~would~ maintain/enforce the object-type portion of the foreign key automatically for you. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 1: if posting/reading

Re: [GENERAL] many to one of many modeling question

2008-01-07 Thread Richard Broersma Jr
), ... ); Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] many to one of many modeling question

2008-01-07 Thread Richard Broersma Jr
--- On Mon, 1/7/08, Erik Jones [EMAIL PROTECTED] wrote: From: Erik Jones [EMAIL PROTECTED] Subject: Re: [GENERAL] many to one of many modeling question To: Richard Broersma Jr [EMAIL PROTECTED] Cc: Postgres General List pgsql-general@postgresql.org, Kevin Hunter [EMAIL PROTECTED], Caktus

Re: [GENERAL] Announcing PostgreSQL RPM Buildfarm

2008-01-07 Thread Richard Broersma Jr
--- On Mon, 1/7/08, Devrim GÜNDÜZ [EMAIL PROTECTED] wrote: wrote: what is a botherboard? Brotherboard -- motherboard is a bit old. Maybe a Freudian slip? ;) ---(end of broadcast)--- TIP 5: don't forget to increase your free space map

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

2008-01-02 Thread Richard Broersma Jr
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 = 'UTF8'; SET

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

2008-01-02 Thread Richard Broersma Jr
, 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 choose an index scan

[GENERAL] visibility rules for AFTER UPDATE Constraint Triggers Function

2008-01-01 Thread Richard Broersma Jr
-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 broadcast

[GENERAL] timestamptz 'infinity' date

2007-12-31 Thread Richard Broersma Jr
instrumentation= SELECT 'infinity'::timestamptz; timestamptz - infinity (1 row) instrumentation= SELECT 'infinity'::timestamptz::date; date -- -- this blank I determine was a NULL. (1 row) Is this correct? Shouldn't it also return an error? Regards, Richard Broersma Jr

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

2007-12-27 Thread Richard Broersma Jr
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. ---(end

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

2007-12-27 Thread Richard Broersma Jr
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
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)--- TIP 4

Re: [GENERAL] how to alter an enum type

2007-12-24 Thread Richard Broersma Jr
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
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. ---(end

Re: [GENERAL] how to alter an enum type

2007-12-24 Thread Richard Broersma Jr
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. ---(end

Re: [GENERAL] copy database by copying datafiles ?

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

Re: [GENERAL] Constraint Trigger's referenced_table

2007-12-23 Thread Richard Broersma Jr
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
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
| 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)--- TIP 1: if posting/reading through

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

2007-12-23 Thread Richard Broersma Jr
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] 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)--- TIP 4: Have you

Re: [GENERAL] Constraint Trigger's referenced_table

2007-12-22 Thread Richard Broersma Jr
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: explain analyze is your friend

Re: [GENERAL] Constraint Trigger's referenced_table

2007-12-22 Thread Richard Broersma Jr
? 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] 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?

[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 Broersma Jr

[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] mssql migration and boolean to integer problems

2007-12-14 Thread Richard Broersma Jr
), 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. ---(end of broadcast)--- TIP 9

Re: [GENERAL] For the SQL gurus out there

2007-12-13 Thread Richard Broersma Jr
, 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. :-) Regards, Richard Broersma Jr

[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
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] if exists...does it exists for insert statments?

2007-12-11 Thread Richard Broersma Jr
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)--- TIP 1: if posting/reading through Usenet, please send

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

2007-12-11 Thread Richard Broersma Jr
(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)--- TIP 1: if posting

[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

Re: [GENERAL] Creating Aggregate functions in PLpgSQL

2007-12-11 Thread Richard Broersma Jr
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 right direction! Regards, Richard Broersma Jr. Anyway

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

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. ---(end of broadcast

[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)--- TIP 5: don't

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

2007-11-28 Thread Richard Broersma Jr
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 will ignore your desire to choose an index scan if your joining column's datatypes

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

Re: [GENERAL] Primary Key

2007-11-26 Thread Richard Broersma Jr
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 subscribe-nomail command to [EMAIL PROTECTED] so

Re: [GENERAL] ODBC, access, and joins

2007-11-23 Thread Richard Broersma Jr
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: if posting/reading through Usenet, please send an appropriate subscribe-nomail command

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

2007-11-21 Thread Richard Broersma Jr
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)--- TIP 6: explain analyze

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

2007-11-21 Thread Richard Broersma Jr
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
ON UPDATE CASCADE); Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4: Have you searched our list archives? http://archives.postgresql.org/

Re: [GENERAL] VB ADODB .Open failing

2007-11-20 Thread Richard Broersma Jr
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 Usenet, please send an appropriate subscribe-nomail command to [EMAIL

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

2007-11-15 Thread Richard Broersma Jr
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\bin2007-11-15 06:36:13 PANIC: could not open control file global/pg_control

Re: [GENERAL] PostgreSQL and AutoCad

2007-10-29 Thread Richard Broersma Jr
difficult but still possible using lisp or vba. Auto cad has prebuilt tools to extract/link data from blocks to any ODBC compliant database. Of course, the holy grail would be to eliminate auto cad altogether and then render drawings from the data stored in the database. :-) Regards, Richard Broersma

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

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* ' with out success. I

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

2007-10-20 Thread Richard Broersma Jr
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: Have you checked our extensive

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

2007-10-19 Thread Richard Broersma Jr
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)--- TIP 4: Have you searched our list archives

[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

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

2007-10-10 Thread Richard Broersma Jr
); 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] ALL( ... ) and ANY ( ... ) didn't behave as expected

2007-10-10 Thread Richard Broersma Jr
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)--- TIP 5: don't forget to increase your free space map settings

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

2007-10-08 Thread Richard Broersma Jr
know of non-html windows email clients that work well for this mailing list? 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] Lifting WHERE conditions out of inner select

2007-10-08 Thread Richard Broersma Jr
.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)--- TIP 3: Have you checked our extensive FAQ? http

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 subtle difference in semantics I'm missing? The select

Re: [GENERAL] 3 tables join update

2007-09-29 Thread Richard Broersma Jr
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 ignore your desire to choose

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 of broadcast

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 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 versions below 8.0

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.org/pgsql-general/2007-04

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

2007-09-21 Thread Richard Broersma Jr
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/reading through Usenet, please

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

2007-09-21 Thread Richard Broersma Jr
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 Broersma Jr

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 transaction; BEGIN proj02u20411

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

2007-09-19 Thread Richard Broersma Jr
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 understanding for tables indexes and fill factor. I hope it helps. Regards, Richard Broersma Jr

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 inserts

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

2007-09-19 Thread Richard Broersma Jr
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)--- TIP 5: don't forget

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

2007-09-18 Thread Richard Broersma Jr
-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 planner will ignore your desire to choose

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

2007-09-18 Thread Richard Broersma Jr
, 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
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
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] Event-driven programming?

2007-09-12 Thread Richard Broersma Jr
/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
(); = 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 ); Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4

Re: [GENERAL] Cannot declare record members NOT NULL

2007-09-12 Thread Richard Broersma Jr
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. ---(end of broadcast)--- TIP 6: explain analyze is your friend

Re: [GENERAL] Partial index with regexp not working

2007-09-11 Thread Richard Broersma Jr
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] Statistics collection question

2007-09-03 Thread Richard Broersma Jr
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] Export data to MS Excel

2007-09-01 Thread Richard Broersma Jr
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. ---(end of broadcast

Re: [GENERAL] PostgreSQL vs Firebird feature comparison finished

2007-08-23 Thread Richard Broersma Jr
. Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq

Re: [GENERAL] Table description

2007-08-20 Thread Richard Broersma Jr
+ [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 datatypes do not match

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

2007-08-16 Thread Richard Broersma Jr
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] Yet Another COUNT(*)...WHERE...question

2007-08-15 Thread Richard Broersma Jr
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. ---(end of broadcast

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

2007-08-15 Thread Richard Broersma Jr
[: 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
, 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 broadcast)--- TIP 3: Have you checked our extensive FAQ? http

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

2007-08-13 Thread Richard Broersma Jr
BY col1 ORDER BY col1; col1 |avg --+ 1 | 1.5000 2 | 3.5000 (2 rows) Regards, Richard Broersma Jr. ---(end of broadcast)--- TIP 4: Have you searched our list archives

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
. :-) 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] plperl syntax highlighting for vi

2007-07-31 Thread Richard Broersma Jr
Broersma Jr. ---(end of broadcast)--- TIP 6: explain analyze is your friend

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)--- TIP 9: In versions below

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.

Re: [GENERAL] Trigger Priority

2007-07-03 Thread Richard Broersma Jr
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 broadcast)--- TIP 2: Don't

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

2007-06-30 Thread Richard Broersma Jr
, 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

[GENERAL] View Triggers

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

  1   2   3   >