473,799 Members | 2,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

psql error - "unrecogniz able command" V8.0.0 beta

Hi,

I've run into a problem. I've had postgres V8 beta on my WinXP Pro machine
for some time now, and it's been running great. Now, for some reason, I
cannot issue any queries to the database via psql. See snippit below...

------------
C:\Program Files\PostgreSQ L\8.0-beta1\bin>creat edb -U postgres test
CREATE DATABASE

C:\Program Files\PostgreSQ L\8.0-beta1\bin>psql -d test -U postgres
Welcome to psql 8.0.0beta1, the PostgreSQL interactive terminal.

Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit

Warning: Console codepage (850) differs from windows codepage (1252)
8-bit characters will not work correctly. See PostgreSQL
documentation "Installati on on Windows" for details.

test=# select now();
'more' is not recognized as an internal or external command,
operable program or batch file.
test=#
-------------

The message regarding the 'more' command is the same no matter what query is
issued. I also get it anytime I try to restore a database from a dump
(wherever a setval command is issued).

I've tried reinstalling the db to no avail. This problem does not repeat
itself on other machines! Does anyone have any ideas?

Thanks
Peter
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #1
3 2231
"Anony Mous" <A.****@shaw.ca > writes:
test=# select now();
'more' is not recognized as an internal or external command,
operable program or batch file.


Looks to me like psql is trying to use "more" to paginate the query
output, and it ain't there. "more" is the default on Unix but I dunno
what we should use on Windows. Anyway, see the psql man page and read
about the "pager" variable to change this.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to ma*******@postg resql.org

Nov 23 '05 #2
On Wed, 15 Sep 2004 13:52:17 -0600, "Anony Mous" <A.****@shaw.ca > wrote:
I've tried reinstalling the db to no avail. This problem does not repeat
itself on other machines! Does anyone have any ideas?


does more.com exist in a directory on the path (usually
%systemroot%\sy stem32)?

klint.

+---------------------------------------+-----------------+
: Klint Gore : "Non rhyming :
: EMail : kg@kgb.une.edu. au : slang - the :
: Snail : A.B.R.I. : possibilities :
: Mail University of New England : are useless" :
: Armidale NSW 2351 Australia : L.J.J. :
: Fax : +61 2 6772 5376 : :
+---------------------------------------+-----------------+

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Nov 23 '05 #3
Well, as I mentioned, I cannot reproduce this problem on other PC's running
Win 2K or XP. It must be a system path issue on my PC. I can't test it
right now, but I'll try ensuring that the system knows where to find the
"more" executable and try it again.

Much thanks.
----- Original Message -----
From: "Tom Lane" <tg*@sss.pgh.pa .us>
To: "Anony Mous" <A.****@shaw.ca >
Cc: <pg***********@ postgresql.org>
Sent: Wednesday, September 15, 2004 7:56 PM
Subject: Re: [GENERAL] psql error - "unrecogniz able command" V8.0.0 beta

"Anony Mous" <A.****@shaw.ca > writes:
test=# select now();
'more' is not recognized as an internal or external command,
operable program or batch file.


Looks to me like psql is trying to use "more" to paginate the query
output, and it ain't there. "more" is the default on Unix but I dunno
what we should use on Windows. Anyway, see the psql man page and read
about the "pager" variable to change this.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddres sHere" to ma*******@postg resql.org)

Nov 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1513
by: Jeff Boes | last post by:
I have a SQL script that needs to invoke a non-SQL command, so I'm using ... \! some_cmd arg arg arg However, when the SQL script is invoked for a different PostgreSQL host, e.g., $ psql -h HOSTNAME -f SCRIPTNAME the :HOST variable is set correctly, but there doesn't seem to be a way
0
1842
by: Stan | last post by:
Ocasionally I get this error message: "A severe error occurred on the current command. The results, if any, should be discarded" There is an arcticle in MSDN describing this problem, but it does not apply to my case and it appears to be Framework data issue. The code uses Framework 1.0 and the machine has NET SP3
0
1633
by: Ken Bass | last post by:
I am getting this error message when trying to use prepared statements. My code is: /* mysock is an opened MYSQL* connection */ char *querystr = "SELECT * FROM foo"; MYSQL_STMT *stmt = mysql_stmt_init(mysock); /* returns non-null */ if (mysql_stmt_prepare(stmt, querystr, strlen(querystr)) { /* error */
6
6725
by: Clément Collin | last post by:
I working on a GIS project, with Access link which just need a little routine in VBA, but I haven't knowledges in VBA language. It's very simple, and it looks like that in a TPascal way : .... Var RecordNb : integer ; .... {Command : function of Access}
1
10885
by: Ennio-Sr | last post by:
Hi all! I'm writing a script that presents the user with a numbered lines menu, each line corresponding to a <case n> which executes a psql command. As the psql-commands are very similar to each other (all of them have the structure: 1.- psql mydb -x -c "SELECT * FROM tb_nm WHERE col_nm LIKE '%$k_r%'" ) I thought it was possible to shorten it, initializing a str with said command at the beginning of the script and limiting the...
1
2579
by: poggle.themammal | last post by:
The python tutorial says "When the script name is given as '-' (meaning standard input), sys.argv is set to '-'. When -c command is used, sys.argv is set to '-c'. " but when we use a command say 'python -c "command"' where can we access "sys.argv" (are there some commands where "sys.argv" is accessed. I can run 'python -c "import sys sys.argv", I get an error message -Tiro
3
3633
rsmccli
by: rsmccli | last post by:
Using AC2002 Hello. I am working with an existing DB that has "Add New" command buttons on two forms. When I, an Admin, click the buttons, they work properly, and a new, blank form is created, ready for data entry. When one of my users from the "Update Data" workgroup clicks the button, they get an "Error 2105: You can't go to the specified record" error, and no new row is created. Each of these are just supposed to add a new row in...
2
4005
by: dstork | last post by:
Anyone know how to rename the "Exit Access" command at the bottom of the Office menu. I'd like to rename it to "Exit" as I had done in previous versions of Access. I know I can disable it with <commands> <command idMso="FileExit" enabled="false"/> </commands> .... but what about renaming it?
1
1840
by: Arepi | last post by:
Hi, I maked en .exe whit Visual Studio 2008 and it worked fine from command prompt (I have WinXp). Then I tryed the same line in perl with system("COMMAND"); I became in command prompt: "acces denied" and en other error message in a window: "xy.exe is not a Win32 Application" Is any way solve it in PERL ? Thanks!
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10495
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10269
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10248
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.