Re: [GENERAL] help w/ SRF function

2007-09-18 Thread A. Kretschmer
am Mon, dem 17.09.2007, um 9:21:22 +0800 mailte Ow Mun Heng folgendes: > CREATE OR REPLACE FUNCTION foo_func(fromdate timestamp, todate > timestamp, code text) > RETURNS SETOF foo AS > $BODY$ > SELECT > TRH.ID, > TRH.data1, > TRH.data2, > FROM D > INNER JOIN

Re: [GENERAL] Problem dropping table

2007-09-18 Thread Mikko Partio
On 9/18/07, Ken Logan <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-09-18 at 11:10 -0700, Alan Hodgson wrote: > > On Tuesday 18 September 2007 10:30, Ken Logan <[EMAIL PROTECTED]> wrote:> > When we try to drop the table we get the error:> ERROR: "member_pkey" is an > index > You have to remove t

Re: [GENERAL] Q:Aggregrating Weekly Production Data. How do you do it?

2007-09-18 Thread Ow Mun Heng
On Tue, 2007-09-18 at 09:55 -0500, Scott Marlowe wrote: > On 9/17/07, Ow Mun Heng <[EMAIL PROTECTED]> wrote: > > > Just wondering how everyone is doing aggregration of production data. > > Where I work, we aggregate by the minute in the application, then dump > those stats entries into the databa

[GENERAL] Uninstall mess Postgresql 7.3.4, 8.1.4 on Redhat 9

2007-09-18 Thread MargaretGillon
I had two versions of postgresql running on a Redhat 9 server. Today I shut down the 7.3.4 version and uninstalled it using the RPM's. Unfortunately, as far as I can tell, this deleted the postgres user account and the system's knowledge of the posgresql 8.1.4 software. The system will no long

[GENERAL] Version 8.2.5 for Windows doesn't startup normally after upgrading from 8.2.4

2007-09-18 Thread Walter Roeland
Hello, I just upgraded from 8.2.4 to 8.2.5 on Windows but the service doesn't startup normally. This is the first time I have trouble with an upgrade of version 8.2. I have the following non standard configuration: - Program directory: C:\Archivos de programa\PostgreSQL\8.2\bin - Data Directory:

Re: [GENERAL] Tsearch2 - spanish

2007-09-18 Thread Felipe de Jesús Molina Bravo
Hi You are rigth, the output of "show lc_ctype;" is C. Then I did is: prueba1=# show lc_ctype; lc_ctype - es_MX.ISO8859-1 (1 row) and do it % initdb -D /YOUR/PATH -E LATIN1 --locale es_ES.ISO8859-1 (how you do say) and "createdb -E iso8859-1 prueba1" and finally ts

Re: [GENERAL] Problem dropping table

2007-09-18 Thread Ken Logan
On Tue, 2007-09-18 at 11:10 -0700, Alan Hodgson wrote: > On Tuesday 18 September 2007 10:30, Ken Logan <[EMAIL PROTECTED]> wrote: > > When we try to drop the table we get the error: > > ERROR: "member_pkey" is an index > > You have to remove the table from it's Slony set before you can drop it.

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

2007-09-18 Thread Greg Williamson
Richard Broersma Jr wrote: --- Gregory Williamson <[EMAIL PROTECTED]> wrote: A very low fill factor means that pages are "sparse" and so inserts and updates are less likely to trigger massive b-tree rebalancings. I take it that "massive b-tree rebalancings" could cause a problem with

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

2007-09-18 Thread Richard Broersma Jr
--- Gregory Williamson <[EMAIL PROTECTED]> wrote: > A very low fill factor means that pages are > "sparse" and so inserts and updates are less likely to trigger massive b-tree > rebalancings. I take it that "massive b-tree rebalancings" could cause a problem with the performance of disk writi

[GENERAL] Windows Auto-Vacuum in 8.2.4 or 8.2.5

2007-09-18 Thread Richard Broersma Jr
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/msg00139.php I wasn't able to determine from the release notes if this bug was fixed in versions 8.2.4 or 8.2.5

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

2007-09-18 Thread Gregory Williamson
Sorry for top-posting -- challenged reader. Can't speak directly to PostgreSQL but in Informix the fill factor is useful for tweaking indexes. A very high fill factor is useful for tables that are static -- any inserts or changes to the index trigger a *lot* of moving of b-tree branches. But th

Re: [GENERAL] Q:Aggregrating Weekly Production Data. How do you do it?

2007-09-18 Thread btober
Ow Mun Heng wrote: > Data which runs in the vicinity of a few million a week. > > What are the methods which will effectively provide the > min/max/average/count/stdev of the weekly sample size based on different > products/software mix etc. > > and still be able to answer correctly, what's the av

Re: [GENERAL] pgcrypto: is an IV needed with pgp_sym_encrypt()?

2007-09-18 Thread Bill Moseley
On Tue, Sep 18, 2007 at 11:26:17AM +0300, Marko Kreen wrote: > Few bytes being same is normal. Those are PGP packet header, > telling "this is symmetrically encrypted session key packet, > with length X" plus some more details. I see. So, you are saying no need to generate my own IV to prepend t

Re: [GENERAL] Performance Issues (was: "like" vs "substring" again)

2007-09-18 Thread John D. Burger
Christian Schröder wrote: Or would it be possible to tweak how the planner determines the selectivity? I have read in the docs (chapter 54.1) that in case of more than one condition in the where clause, independency is assumed. In my case ("... where test like '11%' and test not like '113

Re: [GENERAL] Problem dropping table

2007-09-18 Thread Alan Hodgson
On Tuesday 18 September 2007 10:30, Ken Logan <[EMAIL PROTECTED]> wrote: > When we try to drop the table we get the error: > ERROR: "member_pkey" is an index You have to remove the table from it's Slony set before you can drop it. Slony does some hackish things to subscriber tables that make the

[GENERAL] Problem dropping table

2007-09-18 Thread Ken Logan
We are using postgresql 8.2.3 with slony1 1.2.8 and we're having problems trying to drop a table on the slony1 secondary that was sucessfully dropped on the master database. I'm sure this is just because I'm missing something, but it doesn't seem like there should be any reason the table cannot b

[GENERAL] Performance Issues (was: "like" vs "substring" again)

2007-09-18 Thread Christian Schröder
Hi list, I am still fighting with the really slow database queries (see http://www.nabble.com/%22like%22-vs-%22substring%22-again-t4447906.html), and I still believe that the cause of the problem is that the query planner makes incorrect estimations about the selectivity of the "where" clauses

Re: [GENERAL] Optimizing "exists"

2007-09-18 Thread Tom Lane
Steve Crawford <[EMAIL PROTECTED]> writes: > If the sub-select returns a large result set, will there be any benefit > to adding "limit 1" to the sub-select or does the query planner > automatically deduce that "limit 1" is the correct interpretation? It does, although poking at it I notice a bit

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

2007-09-18 Thread Richard Broersma Jr
--- "A. Kretschmer" <[EMAIL PROTECTED]> wrote: > You can do this, you need a untrusted language like plperlU or plsh. > Then you can write a TRIGGER and call external programs. This may be a silly question, will plsh work on a windows server? I am pretty sure that plbat doesn't exist :-). Rega

Re: [GENERAL] update command question?

2007-09-18 Thread Martijn van Oosterhout
On Sun, Sep 16, 2007 at 08:03:56PM -0700, Charles.Hou wrote: > i have the log analysis report by using the pgFouine. in the part of > Slowest queries, the update commands " update com_status set > travel=620.70001220703 where no=1" have the high Av.duration(s). how > should i do to solve this prob

[GENERAL] tradeoffs for multi-schema or multi-db

2007-09-18 Thread Gauthier, Dave
Here's the situation... I have 2 different apps that both require a separate shema, or maybe db. There is actually one column in one table of each ot these db/schemas that are in common and a desire to :cross" between them in some cases. For example, an app for keeping track of the census resul

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

2007-09-18 Thread Steve Atkins
On Sep 17, 2007, at 9:50 AM, Bima Djaloeis wrote: Hi there, I am new to PostgreSQL, is it possible to create something so that 1) If I insert / update / delete an item from my DB... 2) ... an awk / shell / external program is executed in my UNIX System? If yes, how do I do this and if no,

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

2007-09-18 Thread Erik Jones
On Sep 17, 2007, at 11:50 AM, Bima Djaloeis wrote: Hi there, I am new to PostgreSQL, is it possible to create something so that 1) If I insert / update / delete an item from my DB... 2) ... an awk / shell / external program is executed in my UNIX System? If yes, how do I do this and if no,

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

2007-09-18 Thread A. Kretschmer
am Mon, dem 17.09.2007, um 18:50:46 +0200 mailte Bima Djaloeis folgendes: > Hi there, > > I am new to PostgreSQL, is it possible to create something so that > > 1) If I insert / update / delete an item from my DB... > 2) ... an awk / shell / external program is executed in my UNIX System? > > I

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

2007-09-18 Thread Scott Marlowe
On 9/17/07, Bima Djaloeis <[EMAIL PROTECTED]> wrote: > Hi there, > > I am new to PostgreSQL, is it possible to create something so that > > 1) If I insert / update / delete an item from my DB... > 2) ... an awk / shell / external program is executed in my UNIX System? > > If yes, how do I do this a

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

2007-09-18 Thread Rodrigo De León
On 9/17/07, Bima Djaloeis <[EMAIL PROTECTED]> wrote: > Thanks for reading, any help is appreciated. Triggers + Untrusted PL/Perl, see: 1) http://www.postgresql.org/docs/8.2/static/plperl-triggers.html 2) http://www.postgresql.org/docs/8.2/static/plperl-trusted.html ---(end

Re: [GENERAL] Alter sequence restart with selected value...

2007-09-18 Thread Jeff Ross
Scott Marlowe wrote: On 9/18/07, Jeff Ross <[EMAIL PROTECTED]> wrote: I'm using copy to insert a bunch of rows into a new table with a unique primary key. Copy is correctly incrementing the primary key, but apparently the sequence itself is never updated because when I go to insert again I get

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

2007-09-18 Thread Richard Broersma Jr
--- Phoenix Kiula <[EMAIL PROTECTED]> wrote: > What constitutes a "small fill factor"? Would 70 be good? I guess my > current must have been the default, which the manual says is 100. On the following link: http://www.postgresql.org/docs/8.2/interactive/sql-createindex.html#SQL-CREATEINDEX-STORA

index fillfactor (was Re: [GENERAL] For index bloat: VACUUM ANALYZE vs REINDEX/CLUSTER)

2007-09-18 Thread Bill Moran
In response to "Phoenix Kiula" <[EMAIL PROTECTED]>: > Thanks for a very informative post! One question: > > > I'm not sure how to find the current value, but a smaller fill factor > > on busy tables should lead to less fragmentation, thus more efficient > > indexes over time. Keep in mind that a

[GENERAL] Optimizing "exists"

2007-09-18 Thread Steve Crawford
Does the planner automatically add "limit 1" to "exists" sub-selects? In other words, take an update like: update foo set itexists = exists (select 1 from bar where bar.something = foo.something); If the sub-select returns a large result set, will there be any benefit to adding "limit 1" to th

Re: [GENERAL] Database reverse engineering

2007-09-18 Thread Paul Boddie
On 13 Sep, 06:12, [EMAIL PROTECTED] (Ow Mun Heng) wrote: > On Mon, 2007-09-10 at 13:00 -0600, RC Gobeille wrote: > > Or this one: > >http://schemaspy.sourceforge.net/ > > Can't seem to get it to connect to PG using the example. > > java -jar schemaSpy_3.1.1.jar -t pgsql -u operator -p operator -o >

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

2007-09-18 Thread Phoenix Kiula
Thanks for a very informative post! One question: > I'm not sure how to find the current value, but a smaller fill factor > on busy tables should lead to less fragmentation, thus more efficient > indexes over time. Keep in mind that a smaller fill factor will also > lead to larger indexes initia

[GENERAL] help w/ SRF function

2007-09-18 Thread Ow Mun Heng
Hi, I want to use a SRF to return multi rows. current SRF is pretty static. create type foo_type as ( id smallint data1 int data2 int ) CREATE OR REPLACE FUNCTION foo_func() RETURNS SETOF foo AS $BODY$ SELECT TRH.ID, TRH.data1, TRH.data2, FROM D

Re: [GENERAL] Alter sequence restart with selected value...

2007-09-18 Thread Scott Marlowe
On 9/18/07, Jeff Ross <[EMAIL PROTECTED]> wrote: > I'm using copy to insert a bunch of rows into a new table with a unique > primary key. Copy is correctly incrementing the primary key, but > apparently the sequence itself is never updated because when I go to > insert again I get a constraint vio

[GENERAL] update command question?

2007-09-18 Thread Charles.Hou
i have the log analysis report by using the pgFouine. in the part of Slowest queries, the update commands " update com_status set travel=620.70001220703 where no=1" have the high Av.duration(s). how should i do to solve this problem? why this simple command can take up the most time? Av.duration(

Re: [GENERAL] NOT NULL Issue

2007-09-18 Thread Geoffrey Myers
Tom Lane wrote: "Gustav Lindenberg" <[EMAIL PROTECTED]> writes: Why is '' not considered null is postgres (8.1.3) Because they're different. The SQL spec says that an empty string is different from NULL, and so does every database in the world except Oracle. Oracle, however, does not define

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

2007-09-18 Thread Bima Djaloeis
Hi there, I am new to PostgreSQL, is it possible to create something so that 1) If I insert / update / delete an item from my DB... 2) ... an awk / shell / external program is executed in my UNIX System? If yes, how do I do this and if no, thanks for telling. Thanks for reading, any help is app

Re: [GENERAL] keeping 3 tables in sync w/ each other

2007-09-18 Thread Sascha Bohnenkamp
> Can I use inheritance? References? inheritance ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] Alter sequence restart with selected value...

2007-09-18 Thread Jeff Ross
I'm using copy to insert a bunch of rows into a new table with a unique primary key. Copy is correctly incrementing the primary key, but apparently the sequence itself is never updated because when I go to insert again I get a constraint violation. Here's the start of the new table creation: CR

Re: [GENERAL] read-only queries on PITRslaves, any progress?

2007-09-18 Thread Alexander Staubo
On 9/18/07, Merlin Moncure <[EMAIL PROTECTED]> wrote: > Florian has been hard at work on getting the lazy xid assignment patch > in for 8.3, which is now complete. AIUI, this is an important step > towards read only pitr slave (with other advantages too), and shows > that things are moving along.

[GENERAL] Inline Function documentation

2007-09-18 Thread Brijesh Shrivastav
Hi! All, I have come cross many posting that talks about INLINE FUNCTION and their utility in helping optimizer decide the right plan. However, other than few posting in different forums I haven't been able to get my hands on any sort of documentation that explains which function can be converted

Re: [GENERAL] Tsearch2 - spanish

2007-09-18 Thread Teodor Sigaev
prueba=# select to_tsvector('espanol','melón'); ERROR: Affix parse error at 506 line and prueba=# select lexize('sp','melón'); lexize - {melon} (1 row) Looks very strange, can you provide list of dictionaries and configurati

Re: [GENERAL] stability issues

2007-09-18 Thread Scott Marlowe
On 9/18/07, Willy-Bas Loos <[EMAIL PROTECTED]> wrote: > Hi, > > I'm running a PostgreSQL 8.1.9 server on Debian etch (default installation, > w/ PostGIS from Debian repositories). > The machine has double Xeon 5130, 4 GB of DDR2 ECC Reg. RAM and a > two-sata-disc Raid 0 cluster. I don't know the br

Re: [GENERAL] stability issues

2007-09-18 Thread Tom Lane
"Willy-Bas Loos" <[EMAIL PROTECTED]> writes: > I'm running a PostgreSQL 8.1.9 server on Debian etch (default installation, > w/ PostGIS from Debian repositories). > The machine has double Xeon 5130, 4 GB of DDR2 ECC Reg. RAM and a > two-sata-disc Raid 0 cluster. I don't know the brand of the memory

Re: [GENERAL] Q:Aggregrating Weekly Production Data. How do you do it?

2007-09-18 Thread Scott Marlowe
On 9/17/07, Ow Mun Heng <[EMAIL PROTECTED]> wrote: > Just wondering how everyone is doing aggregration of production data. Where I work, we aggregate by the minute in the application, then dump those stats entries into the database en masse from each machine. So, we wind up with rows something l

Re: [GENERAL] read-only queries on PITRslaves, any progress?

2007-09-18 Thread Merlin Moncure
On 9/18/07, Alexander Staubo <[EMAIL PROTECTED]> wrote: > On 9/15/07, Marinos Yannikos <[EMAIL PROTECTED]> wrote: > > this might not be the best place to ask, but has there been any further > > progress or an alternative project to Florian Pflug's SoC 2007 proposal > > about enabling PITR slaves to

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

2007-09-18 Thread Bill Moran
In response to "Phoenix Kiula" <[EMAIL PROTECTED]>: > > If you find that reindexing improves performance, then you should > > investigate further. Depending on the exact nature of the problem, > > there are many possible solutions, three that come to mind: > > * Add RAM/SHM > > Can I add SHM wit

Re: [GENERAL] Q:Aggregrating Weekly Production Data. How do you do it?

2007-09-18 Thread John D. Burger
Ow Mun Heng wrote: The results are valid (verified with actual data) but I don't understand the logic. All the Statistical books I've read marked stdev as sqrt (sum(x - ave(x))^2 / (n - 1). The formula is very different, hence the confusion. A formula is not an algorithm. In particular, the

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

2007-09-18 Thread Sander Steffann
Hi, > Now, I can merrily increase the shared_buffers, but the manual warns > me against increasing the value too much because it is "per > transaction" value. Shared_buffers is not per-transaction. Where did you find this information? - Sander ---(end of broadcast)

Re: [GENERAL] read-only queries on PITRslaves, any progress?

2007-09-18 Thread Alexander Staubo
On 9/15/07, Marinos Yannikos <[EMAIL PROTECTED]> wrote: > this might not be the best place to ask, but has there been any further > progress or an alternative project to Florian Pflug's SoC 2007 proposal > about enabling PITR slaves to serve read-only queries? It seems like an > elegant way to load

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

2007-09-18 Thread Phoenix Kiula
On 18/09/2007, Sander Steffann <[EMAIL PROTECTED]> wrote: > Hi, > > > Can I add SHM with merely by managing the entry in sysctl.conf? My > > current values: > > > > kernel.shmmax = 536870912 > > kernel.shmall = 536870912 > > > > My "shared_buffers" in postgresql.conf is "2". From the website >

Re: [GENERAL] Q:Aggregrating Weekly Production Data. How do you do it?

2007-09-18 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/17/07 23:34, Ow Mun Heng wrote: > Just wondering how everyone is doing aggregration of production data. > > Data which runs in the vicinity of a few million a week. > > What are the methods which will effectively provide the > min/max/average/c

Re: [GENERAL] Recall: August Monthly techdata split fi

2007-09-18 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/18/07 05:54, Ow Mun Heng wrote: > On Tue, 2007-09-18 at 06:52 -0400, Geoffrey wrote: >> [EMAIL PROTECTED] wrote: >>> Robert Wickert would like to recall the message, "August Monthly >>> techdata split file printers for France and Denmark ". >> In

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

2007-09-18 Thread Sander Steffann
Hi, > Can I add SHM with merely by managing the entry in sysctl.conf? My > current values: > > kernel.shmmax = 536870912 > kernel.shmall = 536870912 > > My "shared_buffers" in postgresql.conf is "2". From the website > http://www.desknow.com/kb/idx/12/061/article/ I notice that shmmax > shou

[GENERAL] New PostgreSQL RPM sets are available for Fedora / RHEL

2007-09-18 Thread Devrim GÜNDÜZ
Hi, The PostgreSQL New RPM Sets 2007-09-17 Versions: 8.2.5, 8.1.10, 8.0.14, 7.4.18, 7.3.20 Set labels: 8.2.5-1PGDG, 8.1.10-1PGDG, 8.0.14-1PGDG, 7.4.18-1PGDG, 7.3.20-1PGDG

Re: [GENERAL] keeping 3 tables in sync w/ each other

2007-09-18 Thread btober
Ow Mun Heng wrote: Hi, I have 3 tables foo foo_loading_source1 foo_loading_source2 which is something like create table foo (a int, b int, c int) create table foo_loading_source1 (a int, b int, c int) create table foo_loading_source2 (a int, b int, c int) Is there a way which can be made eas

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

2007-09-18 Thread Phoenix Kiula
> Unfortunately, folks like Phoenix are looking for yes/no answers, and > with many of these questions, the _correct_ answer is "it depends on > your workload" I wanted merely to simplify the advice that gets dispensed on this list, often conflicting to novice ears like mine. So I appreciate your

Re: [GENERAL] statements of an unfinished transaction

2007-09-18 Thread Martijn van Oosterhout
On Tue, Sep 18, 2007 at 02:04:32PM +0300, Sabin Coanda wrote: > Hi there, > > I'd like to find the sessions that provide unclosed transactions (i.e. > marked as in transaction). > > Is any way to find the SQL statements that belong to such a transaction, or > the transaction time start, or any

[GENERAL] statements of an unfinished transaction

2007-09-18 Thread Sabin Coanda
Hi there, I'd like to find the sessions that provide unclosed transactions (i.e. marked as in transaction). Is any way to find the SQL statements that belong to such a transaction, or the transaction time start, or any other helpful data ? TIA, Sabin ---(end of bro

Re: [GENERAL] Recall: August Monthly techdata split fi

2007-09-18 Thread Geoffrey
Ow Mun Heng wrote: On Tue, 2007-09-18 at 06:52 -0400, Geoffrey wrote: [EMAIL PROTECTED] wrote: Robert Wickert would like to recall the message, "August Monthly techdata split file printers for France and Denmark ". In my experience, attempting to 'recall' an email message is a fruitless endeav

Re: [GENERAL] Recall: August Monthly techdata split fi

2007-09-18 Thread Rodrigo De León
On 9/18/07, Geoffrey <[EMAIL PROTECTED]> wrote: > In my experience, attempting to 'recall' an email message is a fruitless > endeavor. Seems to me that this is a 'Microsoft' creation. I really > don't understand the purpose, because by the time you consider > 'recalling' the email message, it's a

Re: [GENERAL] Recall: August Monthly techdata split fi

2007-09-18 Thread Ow Mun Heng
On Tue, 2007-09-18 at 06:52 -0400, Geoffrey wrote: > [EMAIL PROTECTED] wrote: > > Robert Wickert would like to recall the message, "August Monthly > > techdata split file printers for France and Denmark ". > > In my experience, attempting to 'recall' an email message is a fruitless > endeavor.

Re: [GENERAL] Recall: August Monthly techdata split fi

2007-09-18 Thread Geoffrey
[EMAIL PROTECTED] wrote: Robert Wickert would like to recall the message, "August Monthly techdata split file printers for France and Denmark ". In my experience, attempting to 'recall' an email message is a fruitless endeavor. Seems to me that this is a 'Microsoft' creation. I really don't

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

2007-09-18 Thread Rodrigo De León
On 9/18/07, Ow Mun Heng <[EMAIL PROTECTED]> wrote: > On Tue, 2007-09-18 at 06:01 -0400, Bill Moran wrote: > > * (with newer version) reduce the fill factor and REINDEX > > What is fill factor? See "Index Storage Parameters": http://www.postgresql.org/docs/8.2/static/sql-createindex.html -

[GENERAL] FW: August Monthly techdata split file p

2007-09-18 Thread rwickert
ok they're both done -Original Message- From: Robert Wickert Sent: 18 September 2007 11:05 To: Gurvan Meyer Subject: RE: August Monthly techdata split file printers for France and Denmark the reports can always be found here .. \\147.114.32.180\monthly_sales_reports\ just find the yea

Re: [GENERAL] JOIN with ORDER on both tables does a sort when it souldn't

2007-09-18 Thread Dániel Dénes
Tom Lane <[EMAIL PROTECTED]> wrote: > Dániel Dénes <[EMAIL PROTECTED]> writes: > > But even then, it won't realize that the result are in correct > > order, and does a sort! Why? > > In general the output of a nestloop doesn't derive any ordering > properties from the inner scan. It might happen

[GENERAL] Recall: August Monthly techdata split fi

2007-09-18 Thread rwickert
Robert Wickert would like to recall the message, "August Monthly techdata split file printers for France and Denmark ". * Robert Wickert Senior Software Developer CONTEXT Tel:+44 (0)20 8394 7739 Fax:+44 (0)20 8394 7701 Email Address: [EMAIL PRO

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

2007-09-18 Thread Ow Mun Heng
On Tue, 2007-09-18 at 06:01 -0400, Bill Moran wrote: > * (with newer version) reduce the fill factor and REINDEX What is fill factor? ---(end of broadcast)--- TIP 5: don't forget to increase your free space map settings

[GENERAL] stability issues

2007-09-18 Thread Willy-Bas Loos
Hi, I'm running a PostgreSQL 8.1.9 server on Debian etch (default installation, w/ PostGIS from Debian repositories). The machine has double Xeon 5130, 4 GB of DDR2 ECC Reg. RAM and a two-sata-disc Raid 0 cluster. I don't know the brand of the memory nor the HDDs. The Riad controller is a 3Ware 80

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

2007-09-18 Thread Bill Moran
"Filip Rembiałkowski" <[EMAIL PROTECTED]> wrote: > > 2007/9/18, Joshua D. Drake <[EMAIL PROTECTED]>: > > > If you overrun your max_fsm_pages then vacuum analyze IS NOT ENOUGH. If > > you do not overrun your max_fsm_pages, yes vacuum analyze can deal with > > the issue. > > Are you sure? I have a

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

2007-09-18 Thread Filip Rembiałkowski
2007/9/18, Joshua D. Drake <[EMAIL PROTECTED]>: > If you overrun your max_fsm_pages then vacuum analyze IS NOT ENOUGH. If > you do not overrun your max_fsm_pages, yes vacuum analyze can deal with > the issue. Are you sure? I have a situation where above is no true. postgres version 8.1.8. while v

Re: [GENERAL] help w/ SRF function

2007-09-18 Thread Trevor Talbot
On 9/17/07, Ow Mun Heng <[EMAIL PROTECTED]> wrote: > > > CREATE OR REPLACE FUNCTION foo_func(fromdate timestamp, todate > > > timestamp, code text) > > > LANGUAGE 'sql' IMMUTABLE STRICT; > > But If I were to use ALIASINg, I get an error > > > > eg: DECLARE > > DECLARE > > fromdate ALIAS fo

Re: [GENERAL] keeping 3 tables in sync w/ each other

2007-09-18 Thread Filip Rembiałkowski
2007/9/18, Ow Mun Heng <[EMAIL PROTECTED]>: > Hi, > > I have 3 tables > > foo > foo_loading_source1 > foo_loading_source2 > > which is something like > > create table foo (a int, b int, c int) > create table foo_loading_source1 (a int, b int, c int) > create table foo_loading_source2 (a int, b int,

Re: [GENERAL] pgcrypto: is an IV needed with pgp_sym_encrypt()?

2007-09-18 Thread Marko Kreen
On 9/18/07, Bill Moseley <[EMAIL PROTECTED]> wrote: > I'm just starting with pgcrypto, and I'm curious if it's > needed/recommended to use an initialization vector/value (IV) with > the pgp_sym_encrypt() function. > > The docs hint that an IV is used automatically, but encrypting plain > text that

[GENERAL] RFC : best way to distrubute IO from queries (low end server)

2007-09-18 Thread Ow Mun Heng
Final specs for the server is just an ordinary desktop fitted w/ 3 7200rpm 500GB drives & 1 7200 80GB drive / 1 GB ram / 2G processor (single core) number of records will be between 3 to 30 million rows. Currently the process is 1. pull from mssql 2. \copy into PG temp table 3. insert into fina