Re: environment variables, output format & setting current - Mailing list pgsql-general

From Jean-Luc Lachance
Subject Re: environment variables, output format & setting current
Date
Msg-id 3C767E4C.8BC09A54@nsd.ca
Whole thread Raw
In response to environment variables, output format & setting current date  (Brent Wood <baw@frc.niwa.cri.nz>)
List pgsql-general
Try:

psql <db> -A -t -c "select current_date;"


> 2.If I do:
>           psql <db> -c "select current_date;"
> I get:
>
>     date
> ------------
>  2002-02-23
> (1 row)
>
> I can use:
>           psql <db> -c "select current_date;" | tail -3 | head -1
> to just get the date value, but is there simpler way?
>

pgsql-general by date:

Previous
From: Luis Amigo
Date:
Subject: Re: How does Index Scan get used
Next
From: tony
Date:
Subject: moving to 7.2