Re: [ADMIN] VACUUM FULL

2004-09-24 Thread Brian McCane
On Sun, 12 May 2002, Dan Langille wrote: > > On 12 May 2002 at 12:49, Brian McCane wrote: > > > I am on FreeBSD 5.0. > > There is a reason why you must be on 5.0? That is not recommended for > "sane" people. > > 5.0 is -current and not the best place to

Re: [ADMIN] Intentionally splitting data in a table across files. (fwd)

2001-06-06 Thread Brian McCane
On Wed, 6 Jun 2001, Tom Lane wrote: > "Nick Fankhauser" <[EMAIL PROTECTED]> writes: > > Does PostgreSQL support (or some day will support) "partitioned tables"? > > It's not on anyone's radar screen AFAIK. > > > Alternately, does anyone have an idea about how to address this need in a > > diff

Re: [ADMIN] Please help - tks

2001-10-19 Thread Brian McCane
cnt=0 > fi > > psql dbname -c "UPDATE ... $line ..." > let cnt=$cnt+1 > > done < filename > > - > > I will leave it up to the reader to modify this to his/her *specific* need... > > --brett > >

Re: [ADMIN] delete/vacuum not freeing disk space

2001-10-18 Thread Brian McCane
On Thu, 18 Oct 2001, Tom Lane wrote: > Brian McCane <[EMAIL PROTECTED]> writes: > > An interesting point was that the duplicated key was actually in the > > table, but the existing unique index was happy as a clam. > > Hmm. What datatype is the key, and what PG versi

Re: [ADMIN] Please help - tks

2001-10-18 Thread Brian McCane
following and feed it using standard input. Please NOTE, I didn't test this, and even if I did, you shouldn't trust me :). - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid th

[ADMIN] Time Zones and Brain Damage :)

2001-11-20 Thread Brian McCane
s me a headache (and makes me 5-6 hours early for all of my appointments :). - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid those Usenet http://freenews.maxbaud.net/ | that open wh

Re: [ADMIN] Vacuum

2001-11-29 Thread Brian McCane
ctly. So, at least at first, I recommend that you look at the SQL that is generated, and make sure you understand what it is trying to do BEFORE you use it. - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock

Re: [ADMIN] table test

2001-11-30 Thread Brian McCane
; Thank you very much. > > > > Have a nice day ;-) > > TooManySecrets > > > > -- > > Manuel Trujillo [EMAIL PROTECTED] > > Technical Engineer http://www.motograndprix.com > > Dorna Sports S.L. +34 93 4702864 > > > > --

Re: [ADMIN] delete/vacuum not freeing disk space

2001-10-12 Thread Brian McCane
r the copy is made the old index is DROP'd, and the new one is ALTER'd to the old name. Unfortunately, this means that you must have enough room for the new index plus the old at the same time, but I am sure that most people have lots of spare room. I seem to remember th

Re: [ADMIN] delete/vacuum not freeing disk space

2001-10-17 Thread Brian McCane
On Sun, 14 Oct 2001, Marc Spitzer wrote: > In article <[EMAIL PROTECTED]>, Brian McCane wrote: > > > > Being the perpetually lazy person that I am, I have written a PERL script > > that takes care of indexes on a live system. You tell the script the > > databas

[ADMIN] Listing Triggers

2002-01-30 Thread Brian McCane
rigger with oid's to a file, found the triggers using grep, and then deleted them by oid. - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid those Usenet http://freenews.max

Re: [ADMIN] Listing Triggers

2002-01-30 Thread Brian McCane
On Wed, 30 Jan 2002, Arguile wrote: > Brian McCane wrote: > > How can I list the triggers on a specific table? > > Just as I was typing this I noticed Tom already replied. Just incase you > want to know all triggers referencing the table in addition to those on it > (eg. fo

[ADMIN] Useless index

2002-02-14 Thread Brian McCane
o my client :). Is there any way to get the equivalent index from PostgreSQL? This is a major show stopper for me at this point. I have looked through Chapter 7 of the 'idocs', but I didn't find anything that would help. - brian Wm. Brian McCane| Life is full of do

Re: [ADMIN] Useless index

2002-02-14 Thread Brian McCane
On Thu, 14 Feb 2002, Tom Lane wrote: > Brian McCane <[EMAIL PROTECTED]> writes: > > CREATE INDEX foo_index ON foo (bazid, score desc) ; > > > Which would be exactly what I want, and would complete in a split second. > > Instead, this thing runs FOREVER (okay

Re: [ADMIN] Useless index

2002-02-14 Thread Brian McCane
should be possible to have the optimizer leave col1 in a "high impedence" state, and then allow col2 to make a decision. I have not looked at the code, but if we have a known value for col1 as a constant, I would think we could let subsequent information make the decision and then just bubble

[ADMIN] Strange locking behaviour

2002-02-22 Thread Brian McCane
d? I set 'nextupdate' to tomorrow specifically to prevent the 5 minute update from doing anything until the historical data is available. Any ideas? - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you

[ADMIN] Performance question

2002-02-26 Thread Brian McCane
PostgreSQL without Multibyte support? Or has the indexing, etc. been optimized so much for multibyte that it is actually faster than single byte stuff? - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally s

Re: [ADMIN] One sequence for different tables

2002-03-11 Thread Brian McCane
. > > > > ---(end of broadcast)--- > TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED]) > Wm. Brian McCane

Re: [ADMIN] postmaster shutdown

2002-03-13 Thread Brian McCane
are doing access via ODBC. I'd be happy to provide any more > information if it could help in solving the problem - and I'd be very > happy about helpful advice. > > Thanks in advance, > >Markus > > ---(end of broadcast)---

[ADMIN] ALTER TABLE ... SET DEFAULT

2002-04-11 Thread Brian McCane
e_epoch()::integer', but that failed as well. Is it possible to make the default value of an integer field use a function similar to how we use 'now()' for date and timestamp fields? - brian Wm. Brian McCane| Life is full of doors that won't open Search

Re: [ADMIN] ALTER TABLE ... SET DEFAULT

2002-04-12 Thread Brian McCane
ed in a transaction block. -brian On Fri, 12 Apr 2002, Brian McCane wrote: > > > > I have a field called 'updated' of type 'integer' in a table. I have > created a function called 'since_epoch' which is declared with iscacheable > and returns the

Re: [ADMIN] ALTER TABLE ... SET DEFAULT

2002-04-12 Thread Brian McCane
Been there, done that :). It put the current epoch value in as the default value for updated. - brian On Fri, 12 Apr 2002, Tom Lane wrote: > > Brian McCane <[EMAIL PROTECTED]> writes: > > alter table foo alter column updated set default 'since_epoch()' ; > &

Re: [ADMIN] ALTER TABLE ... SET DEFAULT

2002-04-12 Thread Brian McCane
on a hundred times, I get a hundred different answers. Once I do a 'BEGIN', the result never changes again until I 'COMMIT', which is what I would expect according to the docs I have found. - brian On Fri, 12 Apr 2002, Tom Lane wrote: > > Brian McCane <[EMAIL PRO

Re: [ADMIN] Query planner quirk?

2002-04-15 Thread Brian McCane
his. > > > > > ---(end of broadcast)--- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html > Wm. Brian McCane| Life is full of doors that won't o

[ADMIN] Bad plan

2002-04-19 Thread Brian McCane
27; is '(did, sid)'. So, the planner should know that for any 'did', there will be no duplicate 'sid', and each 'sid' is tied to a specific 'id' in 'v'. Alternatively, there might be a better way to write this query. Any ideas? I can't thi

Re: [ADMIN] SERIAL Field

2002-05-06 Thread Brian McCane
ant > > > ---(end of broadcast)--- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.ne

[ADMIN] VACUUM FULL

2002-05-10 Thread Brian McCane
termine which index I actually use most (foo_ad), and then clustering the data that way, or is there some other agent at work here. - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid

Re: [ADMIN] VACUUM FULL

2002-05-11 Thread Brian McCane
exes provided by contrib/tsearch can also > lead to significant improvement in search performance. > > regds > mallah. > > On Saturday 11 May 2002 05:48 am, Brian McCane wrote: > > Okay, I guess I misunderstood something about "VACUUM FULL". My > > understan

Re: [ADMIN] VACUUM FULL

2002-05-11 Thread Brian McCane
On Sat, 11 May 2002, Tom Lane wrote: > > Brian McCane <[EMAIL PROTECTED]> writes: > > It appeared while the VACUUM FULL was occurring, that the index files were > > sort of rewritten in place. > > No, it just has to make new index entries for the rows it moves. It

Re: [ADMIN] VACUUM FULL

2002-05-11 Thread Brian McCane
, restore the data, and re-enable the triggers? - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid those Usenet http://freenews.maxbaud.net/ | that open when you don't want them t

Re: [ADMIN] VACUUM FULL

2002-05-12 Thread Brian McCane
consider allowing someone into the machine, but it doesn't make me excited to contemplate it. - brian On Sun, 12 May 2002, Tom Lane wrote: > > Brian McCane <[EMAIL PROTECTED]> writes: > > Okay, now I am a little scared. Before I started rebuilding indexes, I > >

Re: [ADMIN] VACUUM FULL

2002-05-13 Thread Brian McCane
On Sun, 12 May 2002, Dan Langille wrote: > > On 12 May 2002 at 12:49, Brian McCane wrote: > > > I am on FreeBSD 5.0. > > There is a reason why you must be on 5.0? That is not recommended for > "sane" people. > > 5.0 is -current and not the best place to

[ADMIN] no one parent tuple found

2002-05-14 Thread Brian McCane
e to debug this issue in the vacuum code, but I would need some assistance figuring out what I need to do. - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid those Usenet http://freen

Re: [ADMIN] Interval to number

2002-05-20 Thread Brian McCane
ence > with a one day period. > > Are there any better ways of converting a timestamp to an integer? > > > Thanks > > Gareth > > > > ---(end of broadcast)--- > TIP 5: Have you checked our exten

Re: [ADMIN] Indexes on separate disk ?

2002-06-16 Thread Brian McCane
a single disk. > > > > Thanks > > Charlie > > > > ---(end of broadcast)--- > > TIP 5: Have you checked our extensive FAQ? > > > > http://www.postgresql.org/users-lounge/docs/faq.html > > -

Re: [ADMIN] Removing records that violate foreign key

2002-06-18 Thread Brian McCane
y suggestions on a quick way to do this? > > -- > Cliff Wells, Software Engineer > Logiplex Corporation (www.logiplex.net) > (503) 978-6726 x308 (800) 735-0555 x308 > > ---(end of broadcast)------- > TIP 6: Have you searched our list arc

[ADMIN] Missing pg_clog file

2002-10-27 Thread Brian McCane
d then insert from the temporary table, but this is gonna take a long time. - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid those Usenet http://freenews.maxbaud.net/ | that open w

[ADMIN] Compression of text fields

2003-08-20 Thread Brian McCane
m is not as good as deflate - brian Wm. Brian McCane| Life is full of doors that won't open Search http://recall.maxbaud.net/ | when you knock, equally spaced amid those Usenet http://freenews.maxbaud.net/ | that open when you don't want them to. Auction http://www.

Re: [ADMIN] Re: Database over multiple drives

2001-06-06 Thread Wm Brian McCane
Yes!! I have done this very successfully. I have mounts: /usr/local/pgsql/data 8Gig slice on Primary IDE-Slave /usr/local/pgsql/data28Gig slice on Secondary IDE-Master /usr/local/pgsql/data34Gig slice on Primary IDE-Master Then I move files from data/base/ to data2/base/ and creat