Drop column and Access

Started by Adrian Klaverover 23 years ago6 messagesgeneral
Jump to latest
#1Adrian Klaver
aklaver@attbi.com

Programs used -Postgres 7.3,SuSE 7.2,psqlODBC 7.02.00.04,Access95,97,Win95,98.
I have a Postgres database running on a Linux server. I dropped a column on
one of the tables. When I tried to relink the table in Access it complained
it couldn't find the table because of a naming violation. The name had stayed
the same so I was somewhat confused. When I looked at the table via
phpPgAdmin I saw the dropped column with a column name of
...pg.dropped.table7...(as well as I can remember). This explained the naming
violation. The only way I could get Access to see the table was to recreate
by storing the nondropped columns in a temp table dropping the original table
and then restoring the table from the temp table. Is there a way of removing
the reference to the dropped column so less enlightened applications don't
have problems?

Thank you
Adrian Klaver
aklaver@attbi.com

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Adrian Klaver (#1)
Re: Drop column and Access

Adrian Klaver <aklaver@attbi.com> writes:

Programs used -Postgres 7.3,SuSE 7.2,psqlODBC 7.02.00.04,Access95,97,Win95,98.
I have a Postgres database running on a Linux server. I dropped a column on
one of the tables. When I tried to relink the table in Access it complained
it couldn't find the table because of a naming violation.

Sounds like psqlODBC may not yet know it's supposed to ignore pg_attribute
entries with attisdropped true.

regards, tom lane

#3Hiroshi Inoue
Inoue@tpf.co.jp
In reply to: Adrian Klaver (#1)
Re: [ODBC] Drop column and Access

Tom Lane wrote:

Adrian Klaver <aklaver@attbi.com> writes:

Programs used -Postgres 7.3,SuSE 7.2,psqlODBC
7.02.00.04,Access95,97,Win95,98.
I have a Postgres database running on a Linux server.
I dropped a column on one of the tables. When I tried
to relink the table in Access it complained
it couldn't find the table because of a naming violation.

Sounds like psqlODBC may not yet know it's supposed to
ignore pg_attribute entries with attisdropped true.

Hmm isn't it your responsibility to change the code ?
It was you who rejected all the proposals which don't
need the attisdropped test.

regards,
Hiroshi Inoue
http://w2422.nsk.ne.jp/~inoue/

#4Tom Lane
tgl@sss.pgh.pa.us
In reply to: Hiroshi Inoue (#3)
Re: [ODBC] Drop column and Access

Hiroshi Inoue <Inoue@tpf.co.jp> writes:

Tom Lane wrote:

Sounds like psqlODBC may not yet know it's supposed to
ignore pg_attribute entries with attisdropped true.

Hmm isn't it your responsibility to change the code ?

Well, perhaps so, but I have no ability to test ODBC, and it's not
even in the PG CVS tree anymore, so I have no ability to make the
change anyway.

regards, tom lane

#5Dave Page
dpage@pgadmin.org
In reply to: Tom Lane (#4)
Re: [GENERAL] Drop column and Access

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: 05 December 2002 14:24
To: Hiroshi Inoue
Cc: pgsql-general@postgresql.org; pgsql-odbc@postgresql.org
Subject: Re: [ODBC] [GENERAL] Drop column and Access

Hiroshi Inoue <Inoue@tpf.co.jp> writes:

Tom Lane wrote:

Sounds like psqlODBC may not yet know it's supposed to ignore
pg_attribute entries with attisdropped true.

Hmm isn't it your responsibility to change the code ?

Well, perhaps so, but I have no ability to test ODBC, and
it's not even in the PG CVS tree anymore, so I have no
ability to make the change anyway.

I've just committed a fix for this problem. Tested with Access XP.

Regards, Dave.

#6Hiroshi Inoue
Inoue@tpf.co.jp
In reply to: Dave Page (#5)
Re: [ODBC] Drop column and Access

-----Original Message-----
From: Dave Page [mailto:dpage@vale-housing.co.uk]

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]

Hiroshi Inoue <Inoue@tpf.co.jp> writes:

Tom Lane wrote:

Sounds like psqlODBC may not yet know it's supposed to ignore
pg_attribute entries with attisdropped true.

Hmm isn't it your responsibility to change the code ?

Well, perhaps so, but I have no ability to test ODBC, and
it's not even in the PG CVS tree anymore, so I have no
ability to make the change anyway.

I've just committed a fix for this problem. Tested with Access XP.

Thanks.

regards,
Hiroshi Inoue