Re: [ADMIN] "dumpProcLangs(): handler procedure for language

2002-12-09 Thread Daniel Kalchev
Brian, No data in the system is corrupted, just most of the dump and output routines in order PostgreSQL versions assume that oid == int (signed int), which is not true since few releases... or maybe never was true. Note that if you reference anything by oid, you should change your queries from

Re: [ADMIN] "dumpProcLangs(): handler procedure for language

2002-12-09 Thread Daniel Kalchev
I have had similar troubles, related to oid overflow. I had to modify pg_dump to properly cast queries that contain oids. This is against 7.1.3 source. The patch was hacked quickly, in order to get a corrupted database reloaded, and this while I was traveling in another country... so it is far f

Re: [ADMIN] "dumpProcLangs(): handler procedure for language

2002-12-09 Thread Brian Fujito
Nope- checked the filename. The libs match up. Thanks for your help, though--I appreciate it. Please see my reply to Tom regarding OID's... any insight on how to fix that? thank you all, brian On Tue, 2002-12-10 at 00:26, Dan Langille wrote: > On 10 Dec 2002 at 0:02, Tom Lane wrote: > > > Br

Re: [ADMIN] "dumpProcLangs(): handler procedure for language

2002-12-09 Thread Brian Fujito
Thanks again for your input. I think you're right about the OID's. Watching the query logs, the pg_dump failed just after: 021210.00:58:25.578 [25527] query: SELECT * FROM pg_language WHERE lanispl ORDER BY oid MYDB=> select * from pg_language where lanispl order by oid; lanname | lanispl | l

Re: [ADMIN] "dumpProcLangs(): handler procedure for language

2002-12-09 Thread Dan Langille
On 10 Dec 2002 at 0:02, Tom Lane wrote: > Brian Fujito <[EMAIL PROTECTED]> writes: > >> What exactly are you doing to drop and re-add the language? I > >> should think CREATE LANGUAGE would fail if the handler proc isn't > >> there. > > > I've tried both ways: > > > createlang/droplang from the

Re: [ADMIN] "dumpProcLangs(): handler procedure for language

2002-12-09 Thread Tom Lane
Brian Fujito <[EMAIL PROTECTED]> writes: >> What exactly are you doing to drop and re-add the language? I should >> think CREATE LANGUAGE would fail if the handler proc isn't there. > I've tried both ways: > createlang/droplang from the command line as user postgres > and: > CREATE FUNCTION pl

Re: [ADMIN] "dumpProcLangs(): handler procedure for language

2002-12-09 Thread Brian Fujito
Thanks for your input-- I've tried both ways: createlang/droplang from the command line as user postgres and: CREATE FUNCTION plpgsql_call_handler () RETURNS OPAQUE AS '/usr/lib/pgsql/plpgsql.so' LANGUAGE 'C'; CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql' HANDLER plpgsql_call_ha

Re: [ADMIN] Insuring consistant backups

2002-12-09 Thread Dan Langille
On 9 Dec 2002 at 21:33, [EMAIL PROTECTED] wrote: > Does postgresql have a similar facility, or do I have to script some > solution, perhaps forcing all sessions to be dropped before doing a > pg_dump ? >From man pg_dump and http://www.postgresql.org/idocs/index.php?app- pgdump.html: pg_dump make

Re: [ADMIN] Insuring consistant backups

2002-12-09 Thread Bruce Momjian
pg_dump does a snapshot at backup start, so your backups will be consistent even if there is activity. --- [EMAIL PROTECTED] wrote: > > > Hi: > > A question regarding backups. Commercial databases I've administered have

[ADMIN] Insuring consistant backups

2002-12-09 Thread spinler
Hi: A question regarding backups. Commercial databases I've administered have had some facility to freeze or redirect transactions when a backup is being taken from a database which is online, in order to insure that the backup snapshots a consistant database. Does postgresql have a similar fa

Re: [ADMIN] PostgreSQL 7.3 Installation on SCO

2002-12-09 Thread Bruce Momjian
It should have worked, but edit Makefile.shlib and remove that offending export from the link line. That may fix it. --- Shibashish wrote: > Dear Sir, > > I use SCO Open Server 5.0.5 on an intel box. Although I have instal

Re: [ADMIN] [BUGS] 7.3 RMPS bugs ( pgdb.py and postgresql launch script

2002-12-09 Thread Jean-Luc Lachance
Lamar Owen wrote: >[...] > > 2) when postgres is launched the script do: > > echo " [ OK ] " > > but should be more correctly: > > echo_success > > Hmmm. I thought that used to work right let me check. It will work the same (if the format did not change), but I can mod

Re: [ADMIN] [BUGS] 7.3 RMPS bugs ( pgdb.py and postgresql launch script )

2002-12-09 Thread Lamar Owen
On Sunday 08 December 2002 11:45, Gaetano Mendola wrote: > the file pgdb.py distribuited with Postgresql 7.3 RPM ( RedHat 8.0) > is affectd by an error that not permit anymore to use the > pgdb interface for python. Then the official 7.3 tarball is also buggy. > There is also in the script for la

Re: [ADMIN] "dumpProcLangs(): handler procedure for language plpgsql not found" on 7.0.3

2002-12-09 Thread Tom Lane
Brian Fujito <[EMAIL PROTECTED]> writes: > I'm running postgres-7.0.3 on RH7.1 using RedHat RPMs. > I recently added plpgsql as a language to one of my databases, > and now when I try to do a pg_dump, I get: > "dumpProcLangs(): handler procedure for language plpgsql not found" > If I drop the la

[ADMIN] "dumpProcLangs(): handler procedure for language plpgsql not found"on 7.0.3

2002-12-09 Thread Brian Fujito
hi there, I'm running postgres-7.0.3 on RH7.1 using RedHat RPMs. I recently added plpgsql as a language to one of my databases, and now when I try to do a pg_dump, I get: "dumpProcLangs(): handler procedure for language plpgsql not found" If I drop the language, pg_dump works fine, but if I ad

Re: [ADMIN] WAL disk space

2002-12-09 Thread Tom Lane
Erin Munro <[EMAIL PROTECTED]> writes: > An empty database cluster takes up 20 MB, 16 of which > are dedicated to a WAL file. This seems to be a lot > for a small or low-traffic database. Is there any way > to reduce the size of this WAL file, besides reverting > to version 7.0 (where WAL isn't use

Re: [ADMIN] WAL disk space

2002-12-09 Thread Stephan Szabo
On Mon, 9 Dec 2002, Erin Munro wrote: > An empty database cluster takes up 20 MB, 16 of which > are dedicated to a WAL file. This seems to be a lot > for a small or low-traffic database. Is there any way > to reduce the size of this WAL file, besides reverting > to version 7.0 (where WAL isn't us

[ADMIN] WAL disk space

2002-12-09 Thread Erin Munro
An empty database cluster takes up 20 MB, 16 of which are dedicated to a WAL file. This seems to be a lot for a small or low-traffic database. Is there any way to reduce the size of this WAL file, besides reverting to version 7.0 (where WAL isn't used)? Thanks -Erin ---(

Re: [ADMIN] How to change table owner?

2002-12-09 Thread Anders Bogdan
Thankyou! That worked, much easier than dumping the db.. thanks Anders On Monday, December 9, 2002, at 09:35 AM, Tom Lane wrote: Anders Bogdan <[EMAIL PROTECTED]> writes: I've created and deployed a number of databases and am now getting around to adding some table maintenance (a vacuum script

Re: [ADMIN] How to change table owner?

2002-12-09 Thread Tom Lane
Anders Bogdan <[EMAIL PROTECTED]> writes: > I've created and deployed a number of databases and am now getting > around to adding some table maintenance (a vacuum script). But, the > script can't run as the "postgres" user. It runs as a defined db user > "admin".. Unfortunately, in my db schema

[ADMIN] How to change table owner?

2002-12-09 Thread Anders Bogdan
Greetings! Sort of a newbie-ish question, I haven't seen it in the archives so thought I'd ask. I've created and deployed a number of databases and am now getting around to adding some table maintenance (a vacuum script). But, the script can't run as the "postgres" user. It runs as a defined db

[ADMIN] auto creation of database and schema

2002-12-09 Thread wishy wishy
hi geeks, i am a newbie to DBA and need to know how to create a script to automate the installation of postgres on linux and create a defined schema on the server.any directions is greatly appreciated. thanks kris _ MSN 8 helps

Re: [ADMIN] Connection problem (newbie question)

2002-12-09 Thread Michael Weaver
Title: RE: [ADMIN] Connection problem (newbie question) Try these great walkthroughs & tips: http://www.systinet.com/doc/wasp_uddi/databaseInstallationGuide/InstallingDatabaseServers.html http://www.ejip.net/faq/postgresql_win_setup_faq.jsp http://php.weblogs.com/discuss/post_tips Other gr

[ADMIN] test

2002-12-09 Thread Ezra
---(end of broadcast)--- TIP 6: Have you searched our list archives? http://archives.postgresql.org

Re: [ADMIN] Connection problem (newbie question)

2002-12-09 Thread Mohd Ghalib Akhtar
Hello I would like to know the procedure to install PostGres on Windows NT machine. Also, if you could please also send me the Installation, how to download ? --- Paul Kavanagh <[EMAIL PROTECTED]> wrote: > Hi, > > I've just installed Postgresql 7.3 via Cygwin on > Win2K, started the > postma

Re: [ADMIN] connection problem (newbie question)

2002-12-09 Thread dima
Hello Paul: What user are you using. Remember, you have a brand new install and haven't created any users yet, except for the superuser(postgres). Try connecting as the postgres(superuser). btw, are you trying to start postmaster as root? it seems that there's a bug in postgresql: it says it st