Unix Technical Forum

Re: system objects

This is a discussion on Re: system objects within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> ________________________________ From: Dagoberto Torres [mailto:support@info-plus.org] Sent: 21 February 2005 21:49 To: Dave Page Subject: RE: [pgadmin-support] system objects Hello, ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 06:58 PM
Dave Page
 
Posts: n/a
Default Re: system objects




________________________________

From: Dagoberto Torres [mailto:support@info-plus.org]
Sent: 21 February 2005 21:49
To: Dave Page
Subject: RE: [pgadmin-support] system objects


Hello, Dave
here are the error lines:
`
pg_restore: restoring data for table "pg_ts_cfg"
pg_restore: ERROR: duplicate key violates unique constraint
"pg_ts_cfg_pkey"
CONTEXT: COPY pg_ts_cfg, line 1: "17961 default default C"
pg_restore: [archiver (db)] error returned by PQendcopy
pg_restore: *** aborted because of error

Process returned exit code 1.

All the time I see things I've never created as domain earth, view
pg_logdir_ls, function _get_parser_from_curcfg() and stuff like that.
I think it has something to do about the restore problem. By the way I
see pg_ts_cfg, pg_ts_cfgmap, pg_ts_dict, pg_ts_parses in the tables
section too.

Those are PostgreSQL contrib modules - they will not be recognised as
system objects by pgAdmin because they are not part of the core server.
Any of those may be safely dropped (if they are *not* in the pg_catalog
schema) , however, pgAdmin does use pg_file_*, pg_dir_ls,
pg_reload_conf, pg_postmaster_starttime, pg_logdir_ls (view and
function) so you might want to keep those.

The one you are seeing the error with, is part of tsearch2. Because it's
failing on a primary key constraint, my guess is that you are restoring
to a database that already has that table and data in it. This would be
the case if you installed tsearch2 into template1, and then created your
blank database from that (quite possible, if you are running a
pgInstaller installation on Windows).

To fix this, when you create the new database to restore into, select
'template0' as the template database. This will ensure that it is
completely empty, and should allow the full restore of all the contrib
modules to work as expected.

Regards, Dave.

<http://www.incredimail.com/index.asp?id=54475>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com