Re: Is it possible to have psql ignore the line I am typing?

Lists: pgsql-admin
From: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: Is it possible to have psql ignore the line I am typing?
Date: 2009-10-22 00:39:40
Message-ID: FE44E0D7EAD2ED4BB2165071DB8E328C04E84DB3@egcrc-ex01.egcrc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Hi everybody,

Is it possible to have psql ignore the line I am typing?
That is, similar to '#' with unix shell. What I would
like is to document my interaction with psql. If an
exclamation mark were a comment character, I may type
something like:

silver=# ! I need to find out if data tagged as KIAA
silver=# ! got into silver database last night.
silver=#
silver=# select type, name, marker
silver-# from marker_table
silver-# where tag LIKE 'KIAA%';

It would be nice to be able to jot down what little stream
of thoughts come to my finger tip while I converse with
psql.

Thank you in advance.

Regards,

Tena Sakai
tsakai(at)gallo(dot)ucsf(dot)edu


From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Is it possible to have psql ignore the line I am typing?
Date: 2009-10-22 00:41:24
Message-ID: 1256172084.22342.52.camel@jd-desktop.unknown.charter.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

On Wed, 2009-10-21 at 17:39 -0700, Tena Sakai wrote:
> Hi everybody,
>
> Is it possible to have psql ignore the line I am typing?
> That is, similar to '#' with unix shell. What I would
> like is to document my interaction with psql. If an
> exclamation mark were a comment character, I may type
> something like:

I believe -- will do what you like;

> silver=# ! I need to find out if data tagged as KIAA
> silver=# ! got into silver database last night.
> silver=#
> silver=# select type, name, marker
> silver-# from marker_table
> silver-# where tag LIKE 'KIAA%';
>
> It would be nice to be able to jot down what little stream
> of thoughts come to my finger tip while I converse with
> psql.
>
> Thank you in advance.
>
> Regards,
>
> Tena Sakai
> tsakai(at)gallo(dot)ucsf(dot)edu
>
>
--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander


From: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
To: <jd(at)commandprompt(dot)com>
Cc: <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Is it possible to have psql ignore the line I am typing?
Date: 2009-10-22 00:43:34
Message-ID: FE44E0D7EAD2ED4BB2165071DB8E328C04E84DB4@egcrc-ex01.egcrc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Thank you Joshua!

> I believe -- will do what you like;

It sure does.

Regards,

Tena Sakai
tsakai(at)gallo(dot)ucsf(dot)edu

-----Original Message-----
From: Joshua D. Drake [mailto:jd(at)commandprompt(dot)com]
Sent: Wed 10/21/2009 5:41 PM
To: Tena Sakai
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Is it possible to have psql ignore the line I am typing?

On Wed, 2009-10-21 at 17:39 -0700, Tena Sakai wrote:
> Hi everybody,
>
> Is it possible to have psql ignore the line I am typing?
> That is, similar to '#' with unix shell. What I would
> like is to document my interaction with psql. If an
> exclamation mark were a comment character, I may type
> something like:

I believe -- will do what you like;

> silver=# ! I need to find out if data tagged as KIAA
> silver=# ! got into silver database last night.
> silver=#
> silver=# select type, name, marker
> silver-# from marker_table
> silver-# where tag LIKE 'KIAA%';
>
> It would be nice to be able to jot down what little stream
> of thoughts come to my finger tip while I converse with
> psql.
>
> Thank you in advance.
>
> Regards,
>
> Tena Sakai
> tsakai(at)gallo(dot)ucsf(dot)edu
>
>
--
PostgreSQL.org Major Contributor
Command Prompt, Inc: http://www.commandprompt.com/ - 503.667.4564
Consulting, Training, Support, Custom Development, Engineering
If the world pushes look it in the eye and GRR. Then push back harder. - Salamander


From: Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com>
To: Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu>, pgsql-admin(at)postgresql(dot)org
Subject: Re: Is it possible to have psql ignore the line I am typing?
Date: 2009-10-22 00:43:52
Message-ID: 37d451f70910211743n13b85e24r503ace0553f01eb9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

On Wed, Oct 21, 2009 at 6:39 PM, Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu> wrote:

> Hi everybody,
>
> Is it possible to have psql ignore the line I am typing?
> That is, similar to '#' with unix shell.
>

I believe the standard "--" remainder of line SQL comment glyph will work,
as should the C-style "/* ... */" block comment symbols.

rls

--
:wq


From: "Tena Sakai" <tsakai(at)gallo(dot)ucsf(dot)edu>
To: "Rosser Schwarz" <rosser(dot)schwarz(at)gmail(dot)com>, <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Is it possible to have psql ignore the line I am typing?
Date: 2009-10-22 03:12:21
Message-ID: FE44E0D7EAD2ED4BB2165071DB8E328C04E84DB5@egcrc-ex01.egcrc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-admin

Thank you, Rosser.

It is interesting to note that -- and "/* ... */"
have slightly different behavior. Former is much
like # in shell or // in some programming languages,
while the latter shows multi-line propensity.

Regards,

Tena Sakai
tsakai(at)gallo(dot)ucsf(dot)edu

-----Original Message-----
From: Rosser Schwarz [mailto:rosser(dot)schwarz(at)gmail(dot)com]
Sent: Wed 10/21/2009 5:43 PM
To: Tena Sakai; pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Is it possible to have psql ignore the line I am typing?

On Wed, Oct 21, 2009 at 6:39 PM, Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu> wrote:

> Hi everybody,
>
> Is it possible to have psql ignore the line I am typing?
> That is, similar to '#' with unix shell.
>

I believe the standard "--" remainder of line SQL comment glyph will work,
as should the C-style "/* ... */" block comment symbols.

rls

--
:wq