Re: [ADMIN] How to calculate row sizes

2005-01-03 Thread Chris Hoover
Peter Eisentraut wrote: Chris Hoover wrote: Would someone please be so kind as to point me to a listing of field type sizes, and also how to calculate the space usage of the associated indexes. FAQ 4.6 This faq is not very helpful. I really need to know the values for each type of colum

Re: [ADMIN] How to calculate row sizes

2005-01-03 Thread Peter Eisentraut
Chris Hoover wrote: > Would someone please be so kind as to point me to a listing of field > type sizes, and also how to calculate the space usage of the > associated indexes. FAQ 4.6 -- Peter Eisentraut http://developer.postgresql.org/~petere/ ---(end of broadcast)-

[ADMIN] How to calculate row sizes

2005-01-03 Thread Chris Hoover
I need some help. I need to calculate the max amount of space a row in each of my tables will take. However, I am having a difficult time finding the information needed to do this. Would someone please be so kind as to point me to a listing of field type sizes, and also how to calculate the

Re: [ADMIN] Rules on a view overwrite default values. Any way to

2005-01-03 Thread Bradley Kieser
Thanks Tom and Stephan! This works perfectly! Brad Tom Lane wrote: Bradley Kieser <[EMAIL PROTECTED]> writes: The problem is that rules on a view mean that the default values for NOT NULL columns (used extensively) no longer trigger! The way you're supposed to fix this is to attach default

[ADMIN] Problems with Postgresql 8.0.0

2005-01-03 Thread Amauri Pimenta
Hey Guys, When i drop a table or change the type of field and others, Pgadmin III freezes or Pgisql and etc. Is be impossible to work with this version of postgresql. Did you never happens this type of problems with you? What it hapens? Please, help me ..and if i install a older

Re: [ADMIN] Rules on a view overwrite default values. Any way to

2005-01-03 Thread Stephan Szabo
On Mon, 3 Jan 2005, Bradley Kieser wrote: > Hi, > > I use views extensively to implement security on tables. This requires > each table to have a view. All updates, inserts and deletes take place > through the view. The view has rules for each of these operations > defining security for that table

Re: [ADMIN] Rules on a view overwrite default values. Any way to reinstate them?

2005-01-03 Thread Tom Lane
Bradley Kieser <[EMAIL PROTECTED]> writes: > The problem is that rules on a view mean that the default values for NOT > NULL columns (used extensively) no longer trigger! The way you're supposed to fix this is to attach default values to the view itself. ALTER TABLE myview ALTER COLUMN updated_t

Re: [ADMIN] Rules on a view overwrite default values. Any way to

2005-01-03 Thread Bradley Kieser
Hmm... I have tested this and it works a treat for cols that I ONLY want to put the default values into, but sadly the coalesce function doesn't accept default as one of its parameters, so I can't use this for columns that I want to default only if null. :-( Scott Marlowe wrote: On Mon, 2005-01

Re: [ADMIN] Rules on a view overwrite default values. Any way to

2005-01-03 Thread Bradley Kieser
Hey Scott, that's ingenious, only thing is that I use NOT NULL for many data columns too, where the value may or may not be passed in. Will try with a COALESCE and will post back here. Thx again! Brad Scott Marlowe wrote: On Mon, 2005-01-03 at 11:02, Bradley Kieser wrote: Hi, I use views exte

Re: [ADMIN] Rules on a view overwrite default values. Any way to

2005-01-03 Thread Scott Marlowe
On Mon, 2005-01-03 at 11:02, Bradley Kieser wrote: > Hi, > > I use views extensively to implement security on tables. This requires > each table to have a view. All updates, inserts and deletes take place > through the view. The view has rules for each of these operations > defining security fo

[ADMIN] Rules on a view overwrite default values. Any way to reinstate them?

2005-01-03 Thread Bradley Kieser
Hi, I use views extensively to implement security on tables. This requires each table to have a view. All updates, inserts and deletes take place through the view. The view has rules for each of these operations defining security for that table. Under other conditions, the view also removes com

[ADMIN] Slow after running pg_dump

2005-01-03 Thread Ganesan
Hi, I am doing pg_dump for my database on daily basis (afternoon backup) and after I did pg_dump the database become slow for accessing. Is there anything I could do to make the database access fast. I am doing VACUUM and ANALYZE for the database at night and as well night backup. Please advic

[ADMIN] initial windows install : can't createuser or createdb - what user / pass to use?

2005-01-03 Thread Henry Kon
I've just installed postgresql on windows version 8.0.0 rc-2 and am trying to do very first things like createuser or createdb but all I get is messages like: createuser: could not connect to database template1: FATAL: password authentication failed for user "x" How do I add users or do othe

Re: [ADMIN] initial windows install : can't createuser or createdb - what user / pass to use?

2005-01-03 Thread Henry Kon
the initial admin user comes from the service installation screen. from this web site I just found. http://pginstaller.projects.postgresql.org/ HK On Fri, 31 Dec 2004 04:48:25 -0500, Henry Kon <[EMAIL PROTECTED]> wrote: > I've just installed postgresql on windows version 8.0.0 rc-2 and am > t

[ADMIN] Postgresql 8.0.0 frezzes and stop!

2005-01-03 Thread Amauri Pimenta
Hey guys, all right? Well, when create a table or drop table and etc, the pgadminIII frezzes. My postgresql stops to function and i dont connect the server any more! This version is a beta version. Then, i would like to use another version, Do you could tell me another version and where i can dow

[ADMIN] Slow after running pg_dump

2005-01-03 Thread Ganesan
Hi,   I am doing pg_dump for my database on daily basis (afternoon backup) and after I did pg_dump the database become slow for accessing.   Is there anything I could do to make the database access fast.   I am doing VACUUM and ANALYZE for the database at night and as well night back