PostgreSQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesPostgreSQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 15th, 2008, 02:14 AM
vibrations vibrations is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 23 vibrations User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 54 m 55 sec
Reputation Power: 0
Problem with pg-relcheck

hello friends..
m a newbie on the block i did create a table with 'check' constraint in it... and when i am using the \d table_name to describe the table i am getting the following error which says that -
the relation pg-relcheck doesnt exists......
any help for this one???
following is the the skeleton i hv used.....


CREATE TABLE ft_200841 (
f_id SERIAL CHECK (f_id >=0 ) PRIMARY KEY,
p_id INTEGER (10) CHECK (p_id >=0),
f_time INTEGER (10) CHECK (f_time >=0),
rate FLOAT DEFAULT 1,
dir SMALLINT (4),
cnt FLOAT,
.
.
.
nodes INTEGER (10) CHECK (nodes >=0),
pps FLOAT,
loca INTEGER (10) CHECK (loca >=0),
mla INTEGER (10) CHECK (mla >=0),
tia INTEGER (10) CHECK (tia >=0),
mlu FLOAT DEFAULT -1

);



n i am using postgres 8.3.1 on linux..

Any help is welcome!!

Reply With Quote
  #2  
Old April 15th, 2008, 03:07 AM
rski rski is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 97 rski User rank is Sergeant (500 - 2000 Reputation Level)rski User rank is Sergeant (500 - 2000 Reputation Level)rski User rank is Sergeant (500 - 2000 Reputation Level)rski User rank is Sergeant (500 - 2000 Reputation Level)rski User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 4 h 32 m 57 sec
Reputation Power: 7
Sounds like a bug. Maybe you should put this problem on postgres maillist.

Reply With Quote
  #3  
Old April 15th, 2008, 04:48 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 972 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 49 m 10 sec
Reputation Power: 57
Quote:
Originally Posted by vibrations
m a newbie on the block i did create a table with 'check' constraint in it... and when i am using the \d table_name to describe the table i am getting the following error which says that -
the relation pg-relcheck doesnt exists......
You are probably running a very old version (7.1) of psql.
pg_relcheck is an old system catalog table which was removed with version 7.3.

Make sure you are running an up-to-date version of psql (run psql --version to check the psql version)

Reply With Quote
  #4  
Old April 15th, 2008, 07:09 AM
vibrations vibrations is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 23 vibrations User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 54 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by shammat
You are probably running a very old version (7.1) of psql.
pg_relcheck is an old system catalog table which was removed with version 7.3.

Make sure you are running an up-to-date version of psql (run psql --version to check the psql version)



i am using the postgres 8.3.1 version.. thats why i am wondering why i am getting this error...???

Reply With Quote
  #5  
Old April 15th, 2008, 07:58 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 972 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 49 m 10 sec
Reputation Power: 57
Quote:
Originally Posted by vibrations
i am using the postgres 8.3.1 version.. thats why i am wondering why i am getting this error...???
That might be the back-end version, but that is not necessarily the version of the psql client tool.

What does
psql --version
return?

Reply With Quote
  #6  
Old April 15th, 2008, 08:24 AM
vibrations vibrations is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 23 vibrations User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 54 m 55 sec
Reputation Power: 0
Quote:
Originally Posted by shammat
That might be the back-end version, but that is not necessarily the version of the psql client tool.

What does
psql --version
return?


psql (PostgreSQL) 7.2.4
contains support for: readline, history, multibyte
Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
Portions Copyright (c) 1996, Regents of the University of California
Read the file COPYRIGHT or use the command \copyright to see the
usage and distribution terms.


so wats difference between this and i got postgres 8.3.1 i am confused...

Reply With Quote
  #7  
Old April 15th, 2008, 08:36 AM
vibrations vibrations is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 23 vibrations User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 54 m 55 sec
Reputation Power: 0
hey i had got this postgresql-8.3.1.tar.gz n then after untaring it i got postgresql-8.3.1 n when i am saying psql -V it is giving me this....


psql (PostgreSQL) 7.2.4
contains support for: readline, history, multibyte
Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
Portions Copyright (c) 1996, Regents of the University of California
Read the file COPYRIGHT or use the command \copyright to see the
usage and distribution terms.


n i am not getting the \d table_name getting the error for pg_relcheck..... so is it that the client tool also has diff version??
how do i upgrade that version..???
pls help....

Reply With Quote
  #8  
Old April 15th, 2008, 09:35 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 972 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 49 m 10 sec
Reputation Power: 57
Quote:
Originally Posted by vibrations
hey i had got this postgresql-8.3.1.tar.gz n then after untaring it
Untaring it will not install Postgres. Did you run the installer?

Quote:
psql (PostgreSQL) 7.2.4
So you do have an old copy of the client tools lying around.

Quote:
how do i upgrade that version
That depends on your operating system and what you have installed already.
If you did install 8.3.1 it might simply be a matter of adjusting your PATH variable (again this depends on your operating system)
It's probably also a good idea to remove the old version from your system (again: operating system specific)

Reply With Quote
  #9  
Old April 16th, 2008, 01:24 AM
vibrations vibrations is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 23 vibrations User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 h 54 m 55 sec
Reputation Power: 0
Untaring it will not install Postgres. Did you run the installer?

yes i did run the installer after untaring the stuff... refered README and followed the steps.. m able to use psql.. but probs with the \d table_name cant desc the tables that have CHECK constraint in it.. other tables not having this check constraint are not giving me the problem.....

So you do have an old copy of the client tools lying around.

so how to change it?

That depends on your operating system and what you have installed already.
If you did install 8.3.1 it might simply be a matter of adjusting your PATH variable (again this depends on your operating system)
It's probably also a good idea to remove the old version from your system (again: operating system specific)
m using linux... and how to check the PATH variable and set it to what??

Reply With Quote
  #10  
Old April 16th, 2008, 01:40 AM
shammat shammat is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 972 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 2 Days 17 h 49 m 10 sec
Reputation Power: 57
Quote:
Originally Posted by vibrations
so how to change it?
Sorry I have no experience with Linux. But isn't there some package manager or something to de-install the old version?

Quote:
m using linux... and how to check the PATH variable and set it to what??
Maybe this will help:
http://www.postgresql.org/docs/8.3/static/install-post.html

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesPostgreSQL Help > Problem with pg-relcheck


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway