pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Medi Montaseri <montaseri@gmail.com>
To: Andrew Dunstan <andrew@dunslane.net>
Cc: Kuriakose, Cinu Cheriyamoozhiyil <Cinu.Kuriakose@in.unisys.com>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: [HACKERS] grep command
Date: Mon, 29 Oct 2007 11:58:50 -0700
Message-ID: <8078a1730710291158p6c643f03ycdd5f080ba816681@mail.gmail.com> (raw)
In-Reply-To: <4725F029.3010101@dunslane.net>
References: <28916.1189900143@sss.pgh.pa.us>
<29644.1189904237@sss.pgh.pa.us>
<82wst6ulx3.fsf@mid.bfk.de>
<D566E8CF3538B54D95B925CB69CB4D2A08485401@inblr-exch1.eu.uis.unisys.com>
<4725F029.3010101@dunslane.net>
Or ... ask the application not the OS ....
psql> select version() ;
Cheers
Medi
On 10/29/07, Andrew Dunstan <andrew@dunslane.net> wrote:
>
>
> Leaving aside the question of why one might want to do this, Unix 101
> should show you many ways to do it. For example,
>
> sed -n -e 's/.*PG_VERSION /PG_VERSION /p' -e /PG_VERSION/q config.log
>
> Please don't cross-post questions like this, especially when it's not
> really a PostgreSQL question at all.
>
> cheers
>
> andrew
>
> Kuriakose, Cinu Cheriyamoozhiyil wrote:
> > Hi All,
> >
> > I am giving the command
> >
> > cat config.log|grep -w 'PG_VERSION'
> >
> > Which gives the following Output:
> >
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > | #define PG_VERSION "8.3beta2"
> > #define PG_VERSION "8.3beta2"
> >
> > But the output that I would require is
> >
> > PG_VERSION "8.3beta2" that should occur only once, can anyone please
> > tell me the command to get this output.
> >
> > Thanks in advance
> >
> > Regards
> > Cinu Kuriakose
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 9: In versions below 8.0, the planner will ignore your desire to
> > choose an index scan if your joining column's datatypes do not
> > match
> >
> >
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
view thread (3+ messages)
Message-ID: <8078a1730710291158p6c643f03ycdd5f080ba816681@mail.gmail.com> Permalink: ../8078a1730710291158p6c643f03ycdd5f080ba816681@mail.gmail.com/ Also on: postgresql.org/message-id/8078a1730710291158p6c643f03ycdd5f080ba816681@mail.gmail.com ·
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 using the --to and --cc options: reply via email To: pgsql-admin@postgresql.org Cc: montaseri@gmail.com, andrew@dunslane.net, Cinu.Kuriakose@in.unisys.com, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] grep command In-Reply-To: <8078a1730710291158p6c643f03ycdd5f080ba816681@mail.gmail.com> * 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