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

* Access 2002 and psqlodbc 7.03.02
@ 2004-03-11 03:28 David P. Lurie <dbase4@hotmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: David P. Lurie @ 2004-03-11 03:28 UTC (permalink / raw)
  To: pgsql-odbc

I'm trying to use Access 2002 as a front end to postgresql on a small LAN,
with several local users and a few intermittent users via VPN from home.

Server : SCO OSR 5.0.7
              postgresql 7.3.4 - binary version that came with a recent SCO
update; will                   build a new version from source when time
allows.

Workstations: XP Pro or Windows 2000
                       cygwin version 7.4.1 on two XP boxes, along with
PGAdminIII and
                       psqlodbc 7.03.02.

Hope to asynchronously replicate from the server to the Windows boxes at
night in addition to server DAT and DVD backups. The workstations will
eventually get Office XP Developer runtime versions of the planned
application.

Some of the tables will need something analogous to an Access autonumber
field. Postgresql sequences used to populate an int8 column seem similar. A
short VBA procedure could set the field value to nextval(sequence_name) as
the BeforeUpdate event for a data entry form. Would this be the correct
approach?

Should queries be passthrough whenever possible, for speed?

Thanks,

David P. Lurie








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

* Access 2002 and psqlodbc 7.03.02
@ 2004-03-11 22:25 David P. Lurie <dbase4@hotmail.com>
  2004-03-11 23:38 ` Re: Access 2002 and psqlodbc 7.03.02 Jeff Eckermann <jeff_eckermann@yahoo.com>
  0 siblings, 1 reply; 4+ messages in thread

From: David P. Lurie @ 2004-03-11 22:25 UTC (permalink / raw)
  To: pgsql-odbc

Sorry for duplicate post if such occurs; I originally posted this via
news.gmane.org before subscribing to the mailing list.

I'm trying to use Access 2002 as a front end to postgresql on a small LAN,
with several local users and a few intermittent users via VPN from home.

Server : SCO OSR 5.0.7
              postgresql 7.3.4 - binary version that came with a recent
SCO update; will build a new version from source when               time
allows.

Workstations: XP Pro or Windows 2000
                       cygwin version 7.4.1 on two XP boxes, along with
                       PGAdminIII and psqlodbc 7.03.02.

Hope to asynchronously replicate from the server to the Windows boxes at
night, in addition to server DAT and DVD backups. The workstations will
eventually get Office XP Developer runtime versions of the planned Access
application.

Some of the tables will need something analogous to an Access autonumber
field. Postgresql sequences used to populate an int8 column seem similar. A
short VBA procedure could set the field value to nextval(sequence_name) as
the BeforeUpdate event for a data entry form. Would this be the correct
approach?

Should queries be passthrough whenever possible, for speed?

Thanks,

David P. Lurie






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

* Re: Access 2002 and psqlodbc 7.03.02
  2004-03-11 22:25 Access 2002 and psqlodbc 7.03.02 David P. Lurie <dbase4@hotmail.com>
@ 2004-03-11 23:38 ` Jeff Eckermann <jeff_eckermann@yahoo.com>
  2004-03-12 22:56   ` Re: Access 2002 and psqlodbc 7.03.02 David P. Lurie <dbase4@hotmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Jeff Eckermann @ 2004-03-11 23:38 UTC (permalink / raw)
  To: David P. Lurie <dbase4@hotmail.com>; pgsql-odbc

--- "David P. Lurie" <dbase4@hotmail.com> wrote:
> Sorry for duplicate post if such occurs; I
> originally posted this via
> news.gmane.org before subscribing to the mailing
> list.
> 
> I'm trying to use Access 2002 as a front end to
> postgresql on a small LAN,
> with several local users and a few intermittent
> users via VPN from home.
> 
> Server : SCO OSR 5.0.7
>               postgresql 7.3.4 - binary version that
> came with a recent
> SCO update; will build a new version from source
> when               time
> allows.
> 
> Workstations: XP Pro or Windows 2000
>                        cygwin version 7.4.1 on two
> XP boxes, along with
>                        PGAdminIII and psqlodbc
> 7.03.02.
> 
> Hope to asynchronously replicate from the server to
> the Windows boxes at
> night, in addition to server DAT and DVD backups.

Why?  In particular, why do you want to concurrently
run local and server versions of the database?

> The workstations will
> eventually get Office XP Developer runtime versions
> of the planned Access
> application.
> 
> Some of the tables will need something analogous to
> an Access autonumber
> field. Postgresql sequences used to populate an int8
> column seem similar. A
> short VBA procedure could set the field value to
> nextval(sequence_name) as
> the BeforeUpdate event for a data entry form. Would
> this be the correct
> approach?

No need, if you are using bound forms.  On the one
hand you will always have the primary key value handy,
which may help you avoid some error cases.  But then
you need a network round trip to get it, for every
insert.  I doubt that it's worth the trouble.

> 
> Should queries be passthrough whenever possible, for
> speed?

Yes.

> 
> Thanks,
> 
> David P. Lurie
> 
> 
> 
> 
> ---------------------------(end of
> broadcast)---------------------------
> TIP 7: don't forget to increase your free space map
settings


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com



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

* Re: Access 2002 and psqlodbc 7.03.02
  2004-03-11 22:25 Access 2002 and psqlodbc 7.03.02 David P. Lurie <dbase4@hotmail.com>
  2004-03-11 23:38 ` Re: Access 2002 and psqlodbc 7.03.02 Jeff Eckermann <jeff_eckermann@yahoo.com>
@ 2004-03-12 22:56   ` David P. Lurie <dbase4@hotmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: David P. Lurie @ 2004-03-12 22:56 UTC (permalink / raw)
  To: pgsql-odbc


"Jeff Eckermann" <jeff_eckermann@yahoo.com> wrote in message
news:20040311233802.42300.qmail@web20802.mail.yahoo.com...
> Why?  In particular, why do you want to concurrently
> run local and server versions of the database?
>
> No need, if you are using bound forms.  On the one
> hand you will always have the primary key value handy,
> which may help you avoid some error cases.  But then
> you need a network round trip to get it, for every
> insert.  I doubt that it's worth the trouble.
>

Thanks for the help; I'll use bound forms and passthrough queries.

The replication question is probably best restated as a backup question:

We will just run pg on the main (only) server, which has nightly DAT backup.
pg would be available on the Windows boxes for temporary use in case of
hardware failure. My thought was to have a pg_dump from the previous evening
available, if needed. That should be sufficient for our small office.

pg_dump piped through gzip could be run each night as a cron job, then
burned to DVD with BackupEdge. BackupEdge would recognize the .gz file as
compressed, and perform bit-level verification but not further compression,
so readable with tar. The resultant tar archive could be copied to one of
the windows boxes, the pg_dump file extracted with cygwin gzip and tar
utilities, then loaded into pg for emergency use.

Another option would be to copy the gzipped pg_dump file over the network,
using a scheduled Windows Backup job or a simple batch file copy with
Windows Task Scheduler. The pg_dump file would be written to a directory on
the server accessible via Samba.

I'm inclined to do both, as very easy to configure. Any thoughts?

Thanks,

David P. Lurie






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


end of thread, other threads:[~2004-03-12 22:56 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-11 03:28 Access 2002 and psqlodbc 7.03.02 David P. Lurie <dbase4@hotmail.com>
2004-03-11 22:25 Access 2002 and psqlodbc 7.03.02 David P. Lurie <dbase4@hotmail.com>
2004-03-11 23:38 ` Jeff Eckermann <jeff_eckermann@yahoo.com>
2004-03-12 22:56   ` David P. Lurie <dbase4@hotmail.com>

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