Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
add more description + update the DLM file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Koposov committed May 24, 2011
1 parent 9127279 commit 3f3403c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
14 changes: 14 additions & 0 deletions README
Expand Up @@ -32,3 +32,17 @@ IDL> help,res,/str
RA DOUBLE 329.12152
DEC DOUBLE 44.397910


IF you don't want to type all the time the connection info, you should
define the environmental variables:
PGHOST PGDATABASE PGUSER PGPASSWORD
export PGHOST=hostname_of_the_database_server
export PGDATABASE=dbname
export PGUSER=your_username
export PGPASSWORD=your_password

If you define these, you can easily query without additional arguments:
Running the .idl_startup script...

IDL> res=pgsql_query('select ra,dec from sdssdr7.phototag limit 10')

4 changes: 2 additions & 2 deletions pgsql_query.dlm
Expand Up @@ -23,7 +23,7 @@
MODULE PGSQL_QUERY
DESCRIPTION Send a query to the pgsql server and retrieve the results
VERSION 2.0
BUILD_DATE 03-Dec-2005
SOURCE Erin Sheldon, UofChicago
BUILD_DATE 24-May-2011
SOURCE Erin Sheldon, UofChicago/Sergey Koposov University of Cambridge

FUNCTION PGSQL_QUERY 0 IDL_MAXPARAMS KEYWORDS

0 comments on commit 3f3403c

Please sign in to comment.