pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Drop column and Access
6+ messages / 4 participants
[nested] [flat]

* Drop column and Access
@ 2002-12-04 03:05  Adrian Klaver <aklaver@attbi.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Adrian Klaver @ 2002-12-04 03:05 UTC (permalink / raw)
  To: pgsql-general@postgresql.org

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






^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: Drop column and Access
@ 2002-12-04 16:19  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Adrian Klaver <aklaver@attbi.com>
  0 siblings, 1 reply; 6+ messages in thread

From: Tom Lane @ 2002-12-04 16:19 UTC (permalink / raw)
  To: Adrian Klaver <aklaver@attbi.com>; +Cc: pgsql-general@postgresql.org; pgsql-odbc

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: [ODBC] Drop column and Access
@ 2002-12-05 05:15  Hiroshi Inoue <Inoue@tpf.co.jp>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 6+ messages in thread

From: Hiroshi Inoue @ 2002-12-05 05:15 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general@postgresql.org; pgsql-odbc

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/



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: [ODBC] Drop column and Access
@ 2002-12-05 14:23  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Hiroshi Inoue <Inoue@tpf.co.jp>
  0 siblings, 0 replies; 6+ messages in thread

From: Tom Lane @ 2002-12-05 14:23 UTC (permalink / raw)
  To: Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-general@postgresql.org; pgsql-odbc

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



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: [GENERAL] Drop column and Access
@ 2002-12-06 14:09  Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 1 reply; 6+ messages in thread

From: Dave Page @ 2002-12-06 14:09 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; Hiroshi Inoue <Inoue@tpf.co.jp>; +Cc: pgsql-general@postgresql.org; pgsql-odbc



> -----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.



^ permalink  raw  reply  [nested|flat] 6+ messages in thread

* Re: [ODBC] Drop column and Access
@ 2002-12-07 14:57  Hiroshi Inoue <Inoue@tpf.co.jp>
  parent: Dave Page <dpage@vale-housing.co.uk>
  0 siblings, 0 replies; 6+ messages in thread

From: Hiroshi Inoue @ 2002-12-07 14:57 UTC (permalink / raw)
  To: Dave Page <dpage@vale-housing.co.uk>; +Cc: pgsql-general@postgresql.org; pgsql-odbc

> -----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
 



^ permalink  raw  reply  [nested|flat] 6+ messages in thread


end of thread, other threads:[~2002-12-07 14:57 UTC | newest]

Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-12-04 03:05 Drop column and Access Adrian Klaver <aklaver@attbi.com>
2002-12-04 16:19 ` Tom Lane <tgl@sss.pgh.pa.us>
2002-12-05 05:15   ` Hiroshi Inoue <Inoue@tpf.co.jp>
2002-12-05 14:23     ` Tom Lane <tgl@sss.pgh.pa.us>
2002-12-06 14:09 Re: [GENERAL] Drop column and Access Dave Page <dpage@vale-housing.co.uk>
2002-12-07 14:57 ` Hiroshi Inoue <Inoue@tpf.co.jp>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox