From: | Steve Crawford <scrawford(at)pinpointresearch(dot)com> |
---|---|
To: | Kenneth Marshall <ktm(at)rice(dot)edu> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: error from postgresql 8.4.0 after a dump/restore from 8.3.5 |
Date: | 2009-08-05 23:46:01 |
Message-ID: | 4A7A19B9.8020909@pinpointresearch.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Kenneth Marshall wrote:
> I just thought of something, would running an older release of pgadmin
> cause this error?
>
>
>
>> I have just restored a DB from 8.3.5 to 8.4.0 and I just
>> received the error:
>>
>> ERROR: column "reltriggers" does not exist at character 41
>> STATEMENT: SELECT relhasindex, relkind, relchecks, reltriggers, relhasrules,
>> relhasoids , reltablespace
>> FROM pg_catalog.pg_class WHERE oid = '16864'
>>
>>
>> ...
Very likely. Here are the pg_class columns in 8.3 and 8.4. Note that
reltriggers indeed does not exist in 8.4.
8.3:
Table "pg_catalog.pg_class"
Column | Type | Modifiers
----------------+-----------+-----------
relname | name | not null
relnamespace | oid | not null
reltype | oid | not null
relowner | oid | not null
relam | oid | not null
relfilenode | oid | not null
reltablespace | oid | not null
relpages | integer | not null
reltuples | real | not null
reltoastrelid | oid | not null
reltoastidxid | oid | not null
relhasindex | boolean | not null
relisshared | boolean | not null
relkind | "char" | not null
relnatts | smallint | not null
relchecks | smallint | not null
reltriggers | smallint | not null
relukeys | smallint | not null
relfkeys | smallint | not null
relrefs | smallint | not null
relhasoids | boolean | not null
relhaspkey | boolean | not null
relhasrules | boolean | not null
relhassubclass | boolean | not null
relfrozenxid | xid | not null
relacl | aclitem[] |
reloptions | text[] |
8.4:
Table "pg_catalog.pg_class"
Column | Type | Modifiers
----------------+-----------+-----------
relname | name | not null
relnamespace | oid | not null
reltype | oid | not null
relowner | oid | not null
relam | oid | not null
relfilenode | oid | not null
reltablespace | oid | not null
relpages | integer | not null
reltuples | real | not null
reltoastrelid | oid | not null
reltoastidxid | oid | not null
relhasindex | boolean | not null
relisshared | boolean | not null
relistemp | boolean | not null
relkind | "char" | not null
relnatts | smallint | not null
relchecks | smallint | not null
relhasoids | boolean | not null
relhaspkey | boolean | not null
relhasrules | boolean | not null
relhastriggers | boolean | not null
relhassubclass | boolean | not null
relfrozenxid | xid | not null
relacl | aclitem[] |
reloptions | text[] |
Cheers,
Steve
From | Date | Subject | |
---|---|---|---|
Next Message | Mainor Alonso Morales González | 2009-08-06 20:23:53 | Change stored procedures schema name |
Previous Message | Kenneth Marshall | 2009-08-05 23:34:09 | Re: error from postgresql 8.4.0 after a dump/restore from 8.3.5 |