Re: [SQL] vacuum analyze slows sql query

2004-11-03 Thread Andrew Sullivan
On Tue, Nov 02, 2004 at 06:50:31PM -0800, patrick ~ wrote: > We have a nightly "garbage collection" process that runs and purges > any old data. After this process a 'vacuum analyze' is kicked off > (regardless of whether or not any data was actually purged). > > At this point I should mention th

Re: [SQL] vacuum analyze slows sql query

2004-11-03 Thread Jim Buttafuoco
have you reindexes your tables. When I was running 7.1.4, I ran a vacuum and reindex nightly. Otherwise your index files will keep getting bigger and bigger (this has been fixed in 7.4). Jim -- Original Message --- From: patrick ~ <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sen

[SQL] trigger status

2004-11-03 Thread hook
What's the easy way to tell if a trigger has fired??? thanks ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Re: [SQL] trigger status

2004-11-03 Thread Michael Fuhr
On Wed, Nov 03, 2004 at 08:57:35AM -0600, hook wrote: > What's the easy way to tell if a trigger has fired??? Tell from where? You could log messages from the trigger (e.g., with RAISE INFO in PL/pgSQL), but that might not be what you're talking about. What are you trying to do? -- Michael Fu

[SQL] CREATE TYPE

2004-11-03 Thread Ameen - Etemady
I want to create a data type that have tow arguments in the defenition, like the varchar type: create table mytmp(name varchar(10)); I like to do it like this: create table mytmp(name myvarchar(10,"en_US")); whow can it be done by "CREATE TYPE" I want to implement the internal functions (compare,

Re: [SQL] CREATE TYPE

2004-11-03 Thread Jeff
On Nov 3, 2004, at 10:56 AM, Ameen - Etemady wrote: I like to do it like this: create table mytmp(name myvarchar(10,"en_US")); you can't unless you modify the parser. It has special cases to support varchar (and numeric) syntax. -- Jeff Trout <[EMAIL PROTECTED]> http://www.jefftrout.com/ http://ww

Re: [SQL] vacuum analyze slows sql query

2004-11-03 Thread Andrew Sullivan
On Wed, Nov 03, 2004 at 10:31:33AM -0800, patrick ~ wrote: > Just to clarify, the sliggishness isn't only during the vacuum > period. There are more more serious issues during the vacuum, > but i am not touching on those. The sluggishness is persistant > throughout daily operations. Then I suspe

Re: [SQL] vacuum analyze slows sql query

2004-11-03 Thread patrick ~
On Wed, Nov 03, 2004 at 07:01:00AM -0500, Andrew Sullivan wrote: > On Tue, Nov 02, 2004 at 06:50:31PM -0800, patrick ~ wrote: > > We have a nightly "garbage collection" process that runs and > > purges any old data. After this process a 'vacuum analyze' > > is kicked off (regardless of whether or

Re: [SQL] vacuum analyze slows sql query

2004-11-03 Thread Greg Stark
patrick ~ <[EMAIL PROTECTED]> writes: > I noticed that a freshly created db with freshly inserted data (from > a previous pg_dump) would result in quite fast results. However, > after running 'vacuum analyze' the very same query slowed down about > 1250x (Time: 1080688.921 ms vs Time: 864.522 ms

Re: [SQL] CREATE TYPE

2004-11-03 Thread sad
Hello i note something related to this discussion > create table mytmp(name myvarchar(10,"en_US")); i meant that "en_US" is a locale name, then it means natural language and also character encoding -- those both things are not a matter of SQL-TYPE at all. It is wrong to represent application