X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 40BD030E371 for ; Sat, 14 Jun 2003 13:32:12 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 30157-06 for ; Sat, 14 Jun 2003 10:32:01 -0300 (ADT) Received: from relay11.austria.eu.net (relay11.Austria.eu.net [193.154.160.115]) by svr1.postgresql.org (Postfix) with ESMTP id 0530930DC8A for ; Sat, 14 Jun 2003 10:32:01 -0300 (ADT) Received: from sisyphus.vogelsinger.at (vogelsinger.at [193.154.189.26]) by relay11.austria.eu.net (8.12.9/8.12.0.Beta10) with ESMTP id h5EDVrc8025212; Sat, 14 Jun 2003 15:31:54 +0200 Message-Id: <5.1.1.6.2.20030614152608.03bb5c20@mail.vogelsinger.at> X-Sender: homebird@mail.vogelsinger.at X-Mailer: QUALCOMM Windows Eudora Version 5.1.1 Date: Sat, 14 Jun 2003 15:31:52 +0200 To: tolko_ot_tebya@pisem.net From: Ernest E Vogelsinger Subject: Re: psql doesn't work Cc: pgsql-admin@postgresql.org In-Reply-To: <20030614190950.M75525@pisem.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Archive-Number: 200306/153 X-Sequence-Number: 9144 At 12:09 14.06.2003, stas kim said: --------------------[snip]-------------------- >Hi there. >im new to pgsql so mayby i did smth wrong 8) >when i run psql and then any sql command nothing happans >but when i type the same thing from shell with -c parameter everything works >fine. --------------------[snip]-------------------- did you add a semicolon after the SQL command? psql gives you hints if statements have not been yet completed: test=# means "database "test" is ready, waiting for a command" test-# means the preceding command has not yet been completed (semicolon missing) test(# means there's at least one open parenthesis Example: test=# SELECT * FROM mytable test-# WHERE column in ( test(# 1,2,3) test-# and nothing is null test-# ; output from command goes here test=# Hope this helps, -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/