pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
How to run query by command prompt in Postgres
21+ messages / 7 participants
[nested] [flat]

* How to run query by command prompt in Postgres
@ 2012-06-27 11:15  Kapil Kr. Khandelwal <kapilk@cscape.in>
  0 siblings, 4 replies; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-06-27 11:15 UTC (permalink / raw)
  To: pgsql-bugs

Dear Team

I want to a favour from your side. I want to know, how to run sql query by
command prompt in postgres sql.

I ma waiting for your positive response.


Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Fwd: How to run query by command prompt in Postgres
@ 2012-06-27 11:18  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  3 siblings, 2 replies; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-06-27 11:18 UTC (permalink / raw)
  To: pgadmin-support@postgresql.org

Dear Team

I want to a favour from your side. I want to know, how to run sql query by
command prompt in postgres sql.

I am waiting for your positive response. Thanks in advance.


Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2012-06-27 11:51  Raymond O'Donnell <rod@iol.ie>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  1 sibling, 3 replies; 21+ messages in thread

From: Raymond O'Donnell @ 2012-06-27 11:51 UTC (permalink / raw)
  To: Kapil Kr. Khandelwal <kapilk@cscape.in>; +Cc: pgadmin-support@postgresql.org

On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
> 
> 
> Dear Team
> 
> I want to a favour from your side. I want to know, how to run sql query
> by command prompt in postgres sql. 

psql -f file-with-query.sql your-database


http://www.postgresql.org/docs/9.1/static/app-psql.html


Ray.


-- 
Raymond O'Donnell :: Galway :: Ireland
rod@iol.ie





^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2012-06-27 11:59  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Raymond O'Donnell <rod@iol.ie>
  2 siblings, 2 replies; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-06-27 11:59 UTC (permalink / raw)
  To: rod@iol.ie; +Cc: pgadmin-support@postgresql.org

Dear Sir

I want to run sql query, without any file. I have connected the db, but not
getting success run sql query.


I can run by file, if you can provide me steps of this.

Looking forward to positive response from your side. Thanks in advance.


Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur



On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell <rod@iol.ie> wrote:

> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
> >
> >
> > Dear Team
> >
> > I want to a favour from your side. I want to know, how to run sql query
> > by command prompt in postgres sql.
>
> psql -f file-with-query.sql your-database
>
>
> http://www.postgresql.org/docs/9.1/static/app-psql.html
>
>
> Ray.
>
>
> --
> Raymond O'Donnell :: Galway :: Ireland
> rod@iol.ie
>
>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2012-06-27 12:11  Julien Rouhaud <rjuju123@gmail.com>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  1 sibling, 2 replies; 21+ messages in thread

From: Julien Rouhaud @ 2012-06-27 12:11 UTC (permalink / raw)
  To: Kapil Kr. Khandelwal <kapilk@cscape.in>; +Cc: rod@iol.ie <rod@iol.ie>; pgadmin-support@postgresql.org <pgadmin-support@postgresql.org>

Le 27 juin 2012 à 14:06, "Kapil Kr. Khandelwal" <kapilk@cscape.in> a écrit :

Dear Sir

I want to run sql query, without any file. I have connected the db, but not
getting success run sql query.

Did you end your input with a ;
Without it, pressing return will just add another line to your query


I can run by file, if you can provide me steps of this.

Looking forward to positive response from your side. Thanks in advance.


Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur



On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell <rod@iol.ie> wrote:

> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
> >
> >
> > Dear Team
> >
> > I want to a favour from your side. I want to know, how to run sql query
> > by command prompt in postgres sql.
>
> psql -f file-with-query.sql your-database
>
>
> http://www.postgresql.org/docs/9.1/static/app-psql.html
>
>
> Ray.
>
>
> --
> Raymond O'Donnell :: Galway :: Ireland
> rod@iol.ie
>
>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2012-06-27 12:46  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Julien Rouhaud <rjuju123@gmail.com>
  1 sibling, 0 replies; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-06-27 12:46 UTC (permalink / raw)
  To: Julien Rouhaud <rjuju123@gmail.com>; +Cc: rod@iol.ie <rod@iol.ie>; pgadmin-support@postgresql.org <pgadmin-support@postgresql.org>

Thanks to your prompt support...It really helpful for me.


Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur



On Wed, Jun 27, 2012 at 5:41 PM, Julien Rouhaud <rjuju123@gmail.com> wrote:

>
>
> Le 27 juin 2012 à 14:06, "Kapil Kr. Khandelwal" <kapilk@cscape.in> a
> écrit :
>
>  Dear Sir
>
> I want to run sql query, without any file. I have connected the db, but
> not getting success run sql query.
>
> Did you end your input with a ;
> Without it, pressing return will just add another line to your query
>
>
> I can run by file, if you can provide me steps of this.
>
> Looking forward to positive response from your side. Thanks in advance.
>
>
> Thanks & Regards
>
> Kapil Kr. Khandelwal
> M: 09694179109
> CodeScape Consultants, Jaipur
>
>
>
> On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell < <rod@iol.ie>
> rod@iol.ie> wrote:
>
>> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
>> >
>> >
>> > Dear Team
>> >
>> > I want to a favour from your side. I want to know, how to run sql query
>> > by command prompt in postgres sql.
>>
>> psql -f file-with-query.sql your-database
>>
>>
>>  <http://www.postgresql.org/docs/9.1/static/app-psql.html;
>> http://www.postgresql.org/docs/9.1/static/app-psql.html
>>
>>
>> Ray.
>>
>>
>> --
>> Raymond O'Donnell :: Galway :: Ireland
>>  <rod@iol.ie>rod@iol.ie
>>
>>
>>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: How to run query by command prompt in Postgres
@ 2012-06-27 15:00  Christopher Browne <cbbrowne@gmail.com>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  3 siblings, 1 reply; 21+ messages in thread

From: Christopher Browne @ 2012-06-27 15:00 UTC (permalink / raw)
  To: Kapil Kr. Khandelwal <kapilk@cscape.in>; +Cc: pgsql-bugs

On Wed, Jun 27, 2012 at 7:15 AM, Kapil Kr. Khandelwal <kapilk@cscape.in> wrote:
> I want to a favour from your side. I want to know, how to run sql query by
> command prompt in postgres sql.

This doesn't sound like a bug, and this mailing list is intended to
capture bugs discovered in Postgres.

Perhaps you should avail yourself of the documentation.  The following
links seem as though they may be relevant:

http://www.postgresql.org/docs/9.1/static/tutorial-accessdb.html
http://www.postgresql.org/docs/9.1/static/app-psql.html
-- 
When confronted by a difficult problem, solve it by reducing it to the
question, "How would the Lone Ranger handle this?"



^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: How to run query by command prompt in Postgres
@ 2012-06-27 15:40  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Christopher Browne <cbbrowne@gmail.com>
  0 siblings, 1 reply; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-06-27 15:40 UTC (permalink / raw)
  To: Christopher Browne <cbbrowne@gmail.com>; +Cc: pgsql-bugs

Dear Sir


Thanks for your response. My problem has solved.

Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur



On Wed, Jun 27, 2012 at 8:30 PM, Christopher Browne <cbbrowne@gmail.com>wrote:

> On Wed, Jun 27, 2012 at 7:15 AM, Kapil Kr. Khandelwal <kapilk@cscape.in>
> wrote:
> > I want to a favour from your side. I want to know, how to run sql query
> by
> > command prompt in postgres sql.
>
> This doesn't sound like a bug, and this mailing list is intended to
> capture bugs discovered in Postgres.
>
> Perhaps you should avail yourself of the documentation.  The following
> links seem as though they may be relevant:
>
> http://www.postgresql.org/docs/9.1/static/tutorial-accessdb.html
> http://www.postgresql.org/docs/9.1/static/app-psql.html
> --
> When confronted by a difficult problem, solve it by reducing it to the
> question, "How would the Lone Ranger handle this?"
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: How to run query by command prompt in Postgres
@ 2012-06-27 17:43  Craig Ringer <ringerc@ringerc.id.au>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  3 siblings, 0 replies; 21+ messages in thread

From: Craig Ringer @ 2012-06-27 17:43 UTC (permalink / raw)
  To: Kapil Kr. Khandelwal <kapilk@cscape.in>; +Cc: pgsql-bugs

On 06/27/2012 07:15 PM, Kapil Kr. Khandelwal wrote:
> Dear Team
>
> I want to a favour from your side. I want to know, how to run sql 
> query by command prompt in postgres sql.

psql

http://www.postgresql.org/docs/9.1/static/app-psql.html

--
Craig Ringer

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: How to run query by command prompt in Postgres
@ 2012-06-28 06:56  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  3 siblings, 1 reply; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-06-28 06:56 UTC (permalink / raw)
  To: pgsql-bugs

Dear Team


When I restarted the postgres9.0 service by windows then getting following
error message. Plz help me.

*Error Message(Error 1053) :  The service did not respond start or control
requested  in timely fashion. *
*
*
Please suggest me. Thanks in advance.




Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur



On Wed, Jun 27, 2012 at 4:45 PM, Kapil Kr. Khandelwal <kapilk@cscape.in>wrote:

> Dear Team
>
> I want to a favour from your side. I want to know, how to run sql query by
> command prompt in postgres sql.
>
> I ma waiting for your positive response.
>
>
> Thanks & Regards
>
> Kapil Kr. Khandelwal
> M: 09694179109
> CodeScape Consultants, Jaipur
>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2012-06-28 06:56  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Raymond O'Donnell <rod@iol.ie>
  2 siblings, 1 reply; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-06-28 06:56 UTC (permalink / raw)
  To: rod@iol.ie; +Cc: pgadmin-support@postgresql.org

Dear Team


When I restarted the postgres9.0 service by windows then getting following
error message. Plz help me.

*Error Message(Error 1053) :  The service did not respond start or control
requested  in timely fashion. *
*
*
Please suggest me. Thanks in advance.
Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur



On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell <rod@iol.ie> wrote:

> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
> >
> >
> > Dear Team
> >
> > I want to a favour from your side. I want to know, how to run sql query
> > by command prompt in postgres sql.
>
> psql -f file-with-query.sql your-database
>
>
> http://www.postgresql.org/docs/9.1/static/app-psql.html
>
>
> Ray.
>
>
> --
> Raymond O'Donnell :: Galway :: Ireland
> rod@iol.ie
>
>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2012-06-28 06:56  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Julien Rouhaud <rjuju123@gmail.com>
  1 sibling, 0 replies; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-06-28 06:56 UTC (permalink / raw)
  To: Julien Rouhaud <rjuju123@gmail.com>; +Cc: rod@iol.ie <rod@iol.ie>; pgadmin-support@postgresql.org <pgadmin-support@postgresql.org>

Dear Team


When I restarted the postgres9.0 service by windows then getting following
error message. Plz help me.

*Error Message(Error 1053) :  The service did not respond start or control
requested  in timely fashion. *
*
*
Please suggest me. Thanks in advance.
Thanks & Regards

Kapil Kr. Khandelwal
M: 09694179109
CodeScape Consultants, Jaipur



On Wed, Jun 27, 2012 at 5:41 PM, Julien Rouhaud <rjuju123@gmail.com> wrote:

>
>
> Le 27 juin 2012 à 14:06, "Kapil Kr. Khandelwal" <kapilk@cscape.in> a
> écrit :
>
>  Dear Sir
>
> I want to run sql query, without any file. I have connected the db, but
> not getting success run sql query.
>
> Did you end your input with a ;
> Without it, pressing return will just add another line to your query
>
>
> I can run by file, if you can provide me steps of this.
>
> Looking forward to positive response from your side. Thanks in advance.
>
>
> Thanks & Regards
>
> Kapil Kr. Khandelwal
> M: 09694179109
> CodeScape Consultants, Jaipur
>
>
>
> On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell < <rod@iol.ie>
> rod@iol.ie> wrote:
>
>> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
>> >
>> >
>> > Dear Team
>> >
>> > I want to a favour from your side. I want to know, how to run sql query
>> > by command prompt in postgres sql.
>>
>> psql -f file-with-query.sql your-database
>>
>>
>>  <http://www.postgresql.org/docs/9.1/static/app-psql.html;
>> http://www.postgresql.org/docs/9.1/static/app-psql.html
>>
>>
>> Ray.
>>
>>
>> --
>> Raymond O'Donnell :: Galway :: Ireland
>>  <rod@iol.ie>rod@iol.ie
>>
>>
>>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2012-06-28 14:57  Julien Rouhaud <rjuju123@gmail.com>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  0 siblings, 1 reply; 21+ messages in thread

From: Julien Rouhaud @ 2012-06-28 14:57 UTC (permalink / raw)
  To: Kapil Kr. Khandelwal <kapilk@cscape.in>; +Cc: rod@iol.ie; pgadmin-support@postgresql.org

On Thu, Jun 28, 2012 at 8:56 AM, Kapil Kr. Khandelwal <kapilk@cscape.in>wrote:

> Dear Team
>
>
> When I restarted the postgres9.0 service by windows then getting following
> error message. Plz help me.
>
> *Error Message(Error 1053) :  The service did not respond start or
> control requested  in timely fashion. *
> *
> *
>
You should have in "event viewer" -> "application" logs about your service
error. Please post event related to you postgresql service so we can help
you.

**
> Please suggest me. Thanks in advance.
> Thanks & Regards
>
> Kapil Kr. Khandelwal
> M: 09694179109
> CodeScape Consultants, Jaipur
>
>
>
> On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell <rod@iol.ie> wrote:
>
>> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
>> >
>> >
>> > Dear Team
>> >
>> > I want to a favour from your side. I want to know, how to run sql query
>> > by command prompt in postgres sql.
>>
>> psql -f file-with-query.sql your-database
>>
>>
>> http://www.postgresql.org/docs/9.1/static/app-psql.html
>>
>>
>> Ray.
>>
>>
>> --
>> Raymond O'Donnell :: Galway :: Ireland
>> rod@iol.ie
>>
>>
>>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: How to run query by command prompt in Postgres
@ 2012-06-28 18:57  Daniel Farina <daniel@heroku.com>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  0 siblings, 0 replies; 21+ messages in thread

From: Daniel Farina @ 2012-06-28 18:57 UTC (permalink / raw)
  To: Kapil Kr. Khandelwal <kapilk@cscape.in>; +Cc: pgsql-bugs

On Jun 28, 2012 7:44 AM, "Kapil Kr. Khandelwal" <kapilk@cscape.in> wrote:
>
> Dear Team
>
>
> When I restarted the postgres9.0 service by windows then getting
following error message. Plz help me.
>
> Error Message(Error 1053) :  The service did not respond start or control
requested  in timely fashion.
>
> Please suggest me. Thanks in advance

Please post general requests for help in pgsql-general or pgsql-novice. If
the cause of this problem is obscure and looks like a bug, then it would be
appropriate to post it here.

This list is for tracking clear and precise defects in Postgres. Please do
not discuss other things here.

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2012-10-19 11:27  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Raymond O'Donnell <rod@iol.ie>
  2 siblings, 0 replies; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-10-19 11:27 UTC (permalink / raw)
  To: rod@iol.ie; +Cc: pgadmin-support@postgresql.org; Sunil Kumar <skumar@cscape.in>

Dear Team

I want to a favor from your side. I want to implement clustering in
postgressql 8.x on Windows OS. I have completed till archive command. I am
getting archive files. After that, I am facing issues. Kindly explain more
steps.

Thanks in Advance. Looking forward to hearing from you.


Regards
Kapil Kr. Khandelwal
CodeScape Consultant Pvt Ltd
+91 969 417 9109
+91 141 400 2993
www.codescape.in



On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell <rod@iol.ie> wrote:

> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
> >
> >
> > Dear Team
> >
> > I want to a favour from your side. I want to know, how to run sql query
> > by command prompt in postgres sql.
>
> psql -f file-with-query.sql your-database
>
>
> http://www.postgresql.org/docs/9.1/static/app-psql.html
>
>
> Ray.
>
>
> --
> Raymond O'Donnell :: Galway :: Ireland
> rod@iol.ie
>
>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2012-10-19 11:31  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Julien Rouhaud <rjuju123@gmail.com>
  0 siblings, 0 replies; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2012-10-19 11:31 UTC (permalink / raw)
  To: Julien Rouhaud <rjuju123@gmail.com>; +Cc: rod@iol.ie; pgadmin-support@postgresql.org; Sunil Kumar <skumar@cscape.in>

Dear Team

I want to a favor from your side. I want to implement clustering in
postgressql 8.x on Windows OS. I have completed till archive command. I am
getting archive files. After that, I am facing issues. Kindly explain more
steps.

Thanks in Advance. Looking forward to hearing from you.

Regards
Kapil Kr. Khandelwal
CodeScape Consultant Pvt Ltd
+91 969 417 9109
+91 141 400 2993
www.codescape.in



On Thu, Jun 28, 2012 at 8:27 PM, Julien Rouhaud <rjuju123@gmail.com> wrote:

>
>
> On Thu, Jun 28, 2012 at 8:56 AM, Kapil Kr. Khandelwal <kapilk@cscape.in>wrote:
>
>> Dear Team
>>
>>
>> When I restarted the postgres9.0 service by windows then getting
>> following error message. Plz help me.
>>
>> *Error Message(Error 1053) :  The service did not respond start or
>> control requested  in timely fashion. *
>> *
>> *
>>
> You should have in "event viewer" -> "application" logs about your service
> error. Please post event related to you postgresql service so we can help
> you.
>
> **
>> Please suggest me. Thanks in advance.
>>  Thanks & Regards
>>
>> Kapil Kr. Khandelwal
>> M: 09694179109
>> CodeScape Consultants, Jaipur
>>
>>
>>
>> On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell <rod@iol.ie> wrote:
>>
>>> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
>>> >
>>> >
>>> > Dear Team
>>> >
>>> > I want to a favour from your side. I want to know, how to run sql query
>>> > by command prompt in postgres sql.
>>>
>>> psql -f file-with-query.sql your-database
>>>
>>>
>>> http://www.postgresql.org/docs/9.1/static/app-psql.html
>>>
>>>
>>> Ray.
>>>
>>>
>>> --
>>> Raymond O'Donnell :: Galway :: Ireland
>>> rod@iol.ie
>>>
>>>
>>>
>>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: How to run query by command prompt in Postgres
@ 2013-03-20 12:21  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  1 sibling, 0 replies; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2013-03-20 12:21 UTC (permalink / raw)
  To: pgadmin-support@postgresql.org <pgadmin-support@postgresql.org>

Dear Team

I want to a favour from your side. I want to implement clustering in
postgres on windows server.  Please provide the list of steps. I want the
 answers of followings doubts.

1. How to write archive command
2. How to log shipping from primary to stand by server
3. how to restore database at stand by server from archived files

I am waiting for your positive response. Thanks in advance.


Regards
Kapil Kr. Khandelwal
CodeScape Consultant Pvt Ltd
+91 969 417 9109
+91 141 400 2993
www.codescape.in

 *Think before printing. Turn off Systems before leaving. Conserve Energy,
Save our Environment.*




On Wed, Jun 27, 2012 at 4:48 PM, Kapil Kr. Khandelwal <kapilk@cscape.in>wrote:

>
>
> Dear Team
>
> I want to a favour from your side. I want to know, how to run sql query by
> command prompt in postgres sql.
>
> I am waiting for your positive response. Thanks in advance.
>
>
> Thanks & Regards
>
> Kapil Kr. Khandelwal
> M: 09694179109
> CodeScape Consultants, Jaipur
>
>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2013-03-20 12:21  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  1 sibling, 1 reply; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2013-03-20 12:21 UTC (permalink / raw)
  To: rod@iol.ie <rod@iol.ie>; +Cc: pgadmin-support@postgresql.org <pgadmin-support@postgresql.org>

Dear Team

I want to a favour from your side. I want to implement clustering in
postgres on windows server.  Please provide the list of steps. I want the
 answers of followings doubts.

1. How to write archive command
2. How to log shipping from primary to stand by server
3. how to restore database at stand by server from archived files

I am waiting for your positive response. Thanks in advance.


Regards
Kapil Kr. Khandelwal
CodeScape Consultant Pvt Ltd
+91 969 417 9109
+91 141 400 2993
www.codescape.in

 *Think before printing. Turn off Systems before leaving. Conserve Energy,
Save our Environment.*




On Wed, Jun 27, 2012 at 5:29 PM, Kapil Kr. Khandelwal <kapilk@cscape.in>wrote:

> Dear Sir
>
> I want to run sql query, without any file. I have connected the db, but
> not getting success run sql query.
>
>
> I can run by file, if you can provide me steps of this.
>
> Looking forward to positive response from your side. Thanks in advance.
>
>
> Thanks & Regards
>
> Kapil Kr. Khandelwal
> M: 09694179109
> CodeScape Consultants, Jaipur
>
>
>
> On Wed, Jun 27, 2012 at 5:21 PM, Raymond O'Donnell <rod@iol.ie> wrote:
>
>> On 27/06/2012 12:18, Kapil Kr. Khandelwal wrote:
>> >
>> >
>> > Dear Team
>> >
>> > I want to a favour from your side. I want to know, how to run sql query
>> > by command prompt in postgres sql.
>>
>> psql -f file-with-query.sql your-database
>>
>>
>> http://www.postgresql.org/docs/9.1/static/app-psql.html
>>
>>
>> Ray.
>>
>>
>> --
>> Raymond O'Donnell :: Galway :: Ireland
>> rod@iol.ie
>>
>>
>>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: How to run query by command prompt in Postgres
@ 2013-03-20 12:22  Kapil Kr. Khandelwal <kapilk@cscape.in>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  0 siblings, 1 reply; 21+ messages in thread

From: Kapil Kr. Khandelwal @ 2013-03-20 12:22 UTC (permalink / raw)
  To: Christopher Browne <cbbrowne@gmail.com>; +Cc: pgsql-bugs

Dear Team

I want to a favour from your side. I want to implement clustering in
postgres on windows server.  Please provide the list of steps. I want the
 answers of followings doubts.

1. How to write archive command
2. How to log shipping from primary to stand by server
3. how to restore database at stand by server from archived files

I am waiting for your positive response. Thanks in advance.


Regards
Kapil Kr. Khandelwal
CodeScape Consultant Pvt Ltd
+91 969 417 9109
+91 141 400 2993
www.codescape.in

 *Think before printing. Turn off Systems before leaving. Conserve Energy,
Save our Environment.*




On Wed, Jun 27, 2012 at 9:10 PM, Kapil Kr. Khandelwal <kapilk@cscape.in>wrote:

> Dear Sir
>
>
> Thanks for your response. My problem has solved.
>
> Thanks & Regards
>
> Kapil Kr. Khandelwal
> M: 09694179109
> CodeScape Consultants, Jaipur
>
>
>
> On Wed, Jun 27, 2012 at 8:30 PM, Christopher Browne <cbbrowne@gmail.com>wrote:
>
>> On Wed, Jun 27, 2012 at 7:15 AM, Kapil Kr. Khandelwal <kapilk@cscape.in>
>> wrote:
>> > I want to a favour from your side. I want to know, how to run sql query
>> by
>> > command prompt in postgres sql.
>>
>> This doesn't sound like a bug, and this mailing list is intended to
>> capture bugs discovered in Postgres.
>>
>> Perhaps you should avail yourself of the documentation.  The following
>> links seem as though they may be relevant:
>>
>> http://www.postgresql.org/docs/9.1/static/tutorial-accessdb.html
>> http://www.postgresql.org/docs/9.1/static/app-psql.html
>> --
>> When confronted by a difficult problem, solve it by reducing it to the
>> question, "How would the Lone Ranger handle this?"
>>
>
>

^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: How to run query by command prompt in Postgres
@ 2013-03-20 16:23  Christopher Browne <cbbrowne@gmail.com>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  0 siblings, 0 replies; 21+ messages in thread

From: Christopher Browne @ 2013-03-20 16:23 UTC (permalink / raw)
  To: Kapil Kr. Khandelwal <kapilk@cscape.in>; +Cc: pgsql-bugs

On Wed, Mar 20, 2013 at 8:22 AM, Kapil Kr. Khandelwal <kapilk@cscape.in> wrote:
> Dear Team
>
> I want to a favour from your side. I want to implement clustering in
> postgres on windows server.  Please provide the list of steps. I want the
> answers of followings doubts.
>
> 1. How to write archive command
> 2. How to log shipping from primary to stand by server
> 3. how to restore database at stand by server from archived files
>
> I am waiting for your positive response. Thanks in advance.

Again, these do not sound like they are bugs in PostgreSQL that
should be reported here.

They could indicate bugs in the documentation if the documentation was
specifically deficient, but it is not evident that you have reviewed the
documentation, as I would expect different "doubts."

I don't know what version of PostgreSQL you are using; if you were
running 9.2, then the following might be relevant documentation:
  <http://www.postgresql.org/docs/9.2/static/continuous-archiving.html;

That seems to describe the things you seem to be asking about.
If it is, then you should avail yourself of the documentation.

It is decidedly not a bug in PostgreSQL for you to fail to read the
documentation, and you should not report such things on this
mailing list.
-- 
When confronted by a difficult problem, solve it by reducing it to the
question, "How would the Lone Ranger handle this?"


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 21+ messages in thread

* Re: Fwd: How to run query by command prompt in Postgres
@ 2013-03-21 01:00  Craig Ringer <craig@2ndquadrant.com>
  parent: Kapil Kr. Khandelwal <kapilk@cscape.in>
  0 siblings, 0 replies; 21+ messages in thread

From: Craig Ringer @ 2013-03-21 01:00 UTC (permalink / raw)
  To: Kapil Kr. Khandelwal <kapilk@cscape.in>; +Cc: rod@iol.ie <rod@iol.ie>; pgadmin-support@postgresql.org <pgadmin-support@postgresql.org>

On 03/20/2013 08:21 PM, Kapil Kr. Khandelwal wrote:
> Dear Team
>
> I want to a favour from your side. I want to implement clustering in
> postgres on windows server.  Please provide the list of steps. I want
> the  answers of followings doubts. 
>
> 1. How to write archive command
http://www.postgresql.org/docs/current/static/runtime-config-wal.html#GUC-ARCHIVE-COMMAND
<http://www.postgresql.org/docs/9.2/static/runtime-config-wal.html#GUC-ARCHIVE-COMMAND;

The cmd.exe "copy" command is one option. Any  Windows command that'll
do what you want and doesn't require user interaction can be invoked
there, including custom-written scripts in vbscript, Python, Perl, etc.
If in doubt, ask Google how do do what you want.
> 2. How to log shipping from primary to stand by server
http://www.postgresql.org/docs/current/static/warm-standby.html
<http://www.postgresql.org/docs/9.2/static/warm-standby.html;
> 3. how to restore database at stand by server from archived files
Also in http://www.postgresql.org/docs/current/static/warm-standby.html
<http://www.postgresql.org/docs/9.2/static/warm-standby.html;

If you're having trouble understanding something in the documentation
please explain what you've already tried, where you're getting stuck,
and the SPECIFIC problem you're having in a post to the pgsql-general
mailing list.

-- 
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services

^ permalink  raw  reply  [nested|flat] 21+ messages in thread


end of thread, other threads:[~2013-03-21 01:00 UTC | newest]

Thread overview: 21+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-06-27 11:15 How to run query by command prompt in Postgres Kapil Kr. Khandelwal <kapilk@cscape.in>
2012-06-27 11:18 ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2012-06-27 11:51   ` Raymond O'Donnell <rod@iol.ie>
2012-06-27 11:59     ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2012-06-27 12:11       ` Julien Rouhaud <rjuju123@gmail.com>
2012-06-27 12:46         ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2012-06-28 06:56         ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2013-03-20 12:21       ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2013-03-21 01:00         ` Craig Ringer <craig@2ndquadrant.com>
2012-06-28 06:56     ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2012-06-28 14:57       ` Julien Rouhaud <rjuju123@gmail.com>
2012-10-19 11:31         ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2012-10-19 11:27     ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2013-03-20 12:21   ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2012-06-27 15:00 ` Christopher Browne <cbbrowne@gmail.com>
2012-06-27 15:40   ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2013-03-20 12:22     ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2013-03-20 16:23       ` Christopher Browne <cbbrowne@gmail.com>
2012-06-27 17:43 ` Craig Ringer <ringerc@ringerc.id.au>
2012-06-28 06:56 ` Kapil Kr. Khandelwal <kapilk@cscape.in>
2012-06-28 18:57   ` Daniel Farina <daniel@heroku.com>

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