Re: [GENERAL] dump / restore questions

2004-05-23 Thread Tom Lane
Joseph Shraibman <[EMAIL PROTECTED]> writes: > I recently dumped and restored a 7.4.2 database. It took 30 minutes for > the data to load (6 gig) and 45 for the indexes to be created (3 gig). Increasing sort_mem might help. > Why are the primary keys created after the other indexes? AFAICS in

Re: [GENERAL] how many record versions

2004-05-23 Thread Marc Slemko
On Mon, 24 May 2004, David Garamond wrote: > Manfred Koizar wrote: > > You mean InnoDB cannot handle the load? > > Perhaps it's more appropriate to say that the disk becomes the bottleneck. Was this attempting to do each update in a separate transaction? If so, that is certainly expected, with w

Re: [GENERAL] how many record versions

2004-05-23 Thread David Garamond
Greg Stark wrote: Actually, each record will be incremented probably only thousands of times a day. But there are many banners. Each record has a (bannerid, campaignid, websiteid, date, countrycode) "dimensions" and (impression, click) "measures". In the past when I had a very similar situation we

Re: [GENERAL] how many record versions

2004-05-23 Thread David Garamond
Manfred Koizar wrote: You mean InnoDB cannot handle the load? Perhaps it's more appropriate to say that the disk becomes the bottleneck. -- dave ---(end of broadcast)--- TIP 3: if posting/reading through Usenet, please send an appropriate subscri

[GENERAL] dump / restore questions

2004-05-23 Thread Joseph Shraibman
I recently dumped and restored a 7.4.2 database. It took 30 minutes for the data to load (6 gig) and 45 for the indexes to be created (3 gig). Why are the primary keys created after the other indexes? That means that the table data had been evicted from the cache and has to be reloaded. What

Re: [GENERAL] pg_dump error

2004-05-23 Thread Tom Lane
Philip <[EMAIL PROTECTED]> writes: > Okay, now I'm stumped! Since I don't even know what "pga_images" is for > I don't no how much trouble I'm in! Not a lot; that's not a system catalog but something that PgAccess creates. If you're not using PgAccess anymore, you can probably just drop the table

Re: [GENERAL] pg_dump error

2004-05-23 Thread Paul Thomas
On 23/05/2004 20:32 Philip wrote: [snip] Okay, now I'm stumped! Since I don't even know what "pga_images" is for I don't no how much trouble I'm in! Should I worry? Am I doomed? Can it be repaired? Will my computer explode and infect my neighborhood? (Have I used too many question-marks?) Nothing e

Re: [GENERAL] DB cache size strategies

2004-05-23 Thread Andrew Sullivan
On Wed, Feb 11, 2004 at 12:26:06AM -0500, Tom Lane wrote: > Giving PG half the RAM is counterproductive no matter what --- that > pretty much guarantees that every page that's in RAM will be in RAM > twice, once in PG buffers and once in kernel buffers. The two Well, unless you're using an OS whi

Re: [GENERAL] how many record versions

2004-05-23 Thread Greg Stark
David Garamond <[EMAIL PROTECTED]> writes: > Actually, each record will be incremented probably only thousands of times a > day. But there are many banners. Each record has a (bannerid, campaignid, > websiteid, date, countrycode) "dimensions" and (impression, click) "measures". In the past when

Re: [GENERAL] how many record versions

2004-05-23 Thread Tom Lane
Manfred Koizar <[EMAIL PROTECTED]> writes: > On Sun, 23 May 2004 23:32:48 +0700, David Garamond > <[EMAIL PROTECTED]> wrote: >> I'm contemplating of moving to Postgres, but am worried with the MVCC >> thing. I've previously tried briefly using InnoDB in MySQL but have to >> revert back to MyISAM

[GENERAL] pg_dump error

2004-05-23 Thread Philip
I'm rather new to database stuff. I've been using postgresql for a couple years, but that doesn't mean I understand what I'm doing. I have simply followed the "HOW-TOs". But now I think I'm about to learn a bit more about the inner workings... Last week my cron-triggered system-backup began report

Re: [GENERAL] how many record versions

2004-05-23 Thread Manfred Koizar
On Sun, 23 May 2004 23:32:48 +0700, David Garamond <[EMAIL PROTECTED]> wrote: >Actually, each record will be incremented probably only thousands of >times a day. But there are many banners. Each record has a (bannerid, >campaignid, websiteid, date, countrycode) "dimensions" and (impression, >cli

Re: [GENERAL] how many record versions

2004-05-23 Thread David Garamond
Manfred Koizar wrote: begin; update t set val=val+1; -- 1000 times commit; How many record versions does it create? 1 or 1000? 1000 I'm implementing a banner counter which is incremented at least 2-3 millions a day. How many rows? I would VACUUM that table after every few hundred updates or whene

Re: [GENERAL] DB design opinions - Foreign Key usage

2004-05-23 Thread Bruno Wolff III
On Sat, May 22, 2004 at 12:42:53 -0400, Vamsikrishna Mudrageda <[EMAIL PROTECTED]> wrote: > Intro: > Hi all, my name is Vams, and I am fairly new to postgresql and totally new to > mailing lists, so please bare with me. I have used hypersonic sql and mysql, > and now I am trying out postgresql

Re: [GENERAL] how many record versions

2004-05-23 Thread Tom Lane
David Garamond <[EMAIL PROTECTED]> writes: > begin; > update t set val=val+1; -- 1000 times > commit; > How many record versions does it create? 1 or 1000? 1000. > I'm implementing a > banner counter which is incremented at least 2-3 millions a day. I > thought I'd cheat by only commiting afte

Re: [GENERAL] how many record versions

2004-05-23 Thread Bruno Wolff III
On Sun, May 23, 2004 at 02:44:31 +0700, David Garamond <[EMAIL PROTECTED]> wrote: > begin; > update t set val=val+1; -- 1000 times > commit; > > How many record versions does it create? 1 or 1000? I'm implementing a > banner counter which is incremented at least 2-3 millions a day. I > thought

[GENERAL] DB design opinions - Foreign Key usage

2004-05-23 Thread Vamsikrishna Mudrageda
Intro: Hi all, my name is Vams, and I am fairly new to postgresql and totally new to mailing lists, so please bare with me. I have used hypersonic sql and mysql, and now I am trying out postgresql... and so far, very impressive. GJ dev team. Problem: For the location table, should I use tw

[GENERAL] how many record versions

2004-05-23 Thread David Garamond
begin; update t set val=val+1; -- 1000 times commit; How many record versions does it create? 1 or 1000? I'm implementing a banner counter which is incremented at least 2-3 millions a day. I thought I'd cheat by only commiting after every few minutes. Would that work or would I still create as m