pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: allan d. go <batusaix@pacific.net.ph>
To: pgsql-odbc@postgresql.org
Subject: postgresql ODBC
Date: Mon, 10 Sep 2001 16:45:56 -0700
Message-ID: <000e01c13a53$2acc1940$8a0dd5d2@tip.edu.ph> (raw)

greetings,

i compiled postgresql 7.1.2 with odbc option

i created .odbc.ini on /home/pgsql    <--- directory of my postgres user 
 
.odbc.ini                                

[ODBC Data Source]
Driver=/usr/lib/libpsqlodbc.so
Database=db1
Servername=localhost  <---- should i put the IP address?
Port=5432

i installed psqlODBC and setup on my Win OS

Datasource=postgresql
Database=db1
Server=10.2.1.1  <----- ip address of my postgresql box
post=5432

and i tried to connect via Visual Basic 6.0

VB6 Connection

DNS=postgresql
UID=postgres
DATABASE=db1

i'm having "ODBC Database Open Failed, Check connect Info" error

how can i check if i properly installed pgsql ODBC on my linux box?

i know my postgresql is working, cause i can retrieve data via PHP program on my Win OS

____________

another one, i copied the postgresql script of rpm to my compiled box and issued this command to start postgres

  echo -n "Starting postgresql service: "
  su -l postgres -c 'nohup postmaster -D /home/pgsql/data </dev/null >>server.log 2>&1 </dev/null &'
  sleep 1
  pid='pidof postmaster'
  if [$pid]
  then
    ...
    create pid file for postgres
    ....
  else
     echo failed
  fi    

  i can't start postgresql using this script
  but i can when i issue "nohup postmaster -D /home/pgsql/data </dev/null >>server.log 2>&1 </dev/null &'"
  on bash prompt using postgres user.

  something wrong with my script file?


just wondering...

        ^_^x

view thread (11+ messages)  latest in thread

Message-ID: <000e01c13a53$2acc1940$8a0dd5d2@tip.edu.ph>
Permalink:  ../000e01c13a53$2acc1940$8a0dd5d2@tip.edu.ph/
Also on:    postgresql.org/message-id/000e01c13a53$2acc1940$8a0dd5d2@tip.edu.ph

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: batusaix@pacific.net.ph
  Subject: Re: postgresql ODBC
  In-Reply-To: <000e01c13a53$2acc1940$8a0dd5d2@tip.edu.ph>
  References: <000e01c13a53$2acc1940$8a0dd5d2@tip.edu.ph>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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