| From: | "Little, Douglas" <DOUGLAS(dot)LITTLE(at)orbitz(dot)com> |
|---|---|
| To: | "PostgreSQL General (pgsql-general(at)postgresql(dot)org)" <pgsql-general(at)postgresql(dot)org> |
| Subject: | psql & unix env variables |
| Date: | 2012-08-29 17:35:32 |
| Message-ID: | 8585BA53443004458E0BAA6134C5A7FBB019562E@EGEXCMB01.oww.root.lcl |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Is there a method for having unix env variables incorporated into a psql sql statement?
Ie
Export var='dev'
Psql =c 'select count(*) from $var.customer;'
Doug Little
Sr. Data Warehouse Architect | Business Intelligence Architecture | Orbitz Worldwide
500 W. Madison, Suite 1000 Chicago IL 60661| Office 312.260.2588 | Fax 312.894.5164 | Cell 847-997-5741
Douglas(dot)Little(at)orbitz(dot)com<mailto:Douglas(dot)Little(at)orbitz(dot)com>
[cid:image001(dot)jpg(at)01CD85E2(dot)C7732E50] orbitz.com<http://www.orbitz.com/> | ebookers.com<http://www.ebookers.com/> | hotelclub.com<http://www.hotelclub.com/> | cheaptickets.com<http://www.cheaptickets.com/> | ratestogo.com<http://www.ratestogo.com/> | asiahotels.com<http://www.asiahotels.com/>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alan Hodgson | 2012-08-29 17:39:39 | Re: psql & unix env variables |
| Previous Message | Aleksey Tsalolikhin | 2012-08-29 17:31:21 | C locale versus en_US.UTF8. (Was: String comparision in PostgreSQL) |