pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feederror message
20+ messages / 14 participants
[nested] [flat]
* error message
@ 2000-01-28 16:08 Jackson, Kevin J. <KJJACKS@twa.com>
2000-01-28 17:14 ` Re: [GENERAL] error message Ed Loehr <eloehr@austin.rr.com>
0 siblings, 1 reply; 20+ messages in thread
From: Jackson, Kevin J. @ 2000-01-28 16:08 UTC (permalink / raw)
To: pgsql-general
Can anyone give me the following information:
1) What does the following mean:
PostgresSQL query failed: ERROR: Bad date external representation
I get this error message while trying to add a record to a table from a form
using PHP.
2) Is there a comprehensive list of PostgreSQL error messages and their
meanings?
Many thanks!
Kevin J. Jackson
Internet Support/Development Specialist
Trans World Airlines, Inc.
kjjacks@twa.com
http://www.twa.com
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: [GENERAL] error message
2000-01-28 16:08 error message Jackson, Kevin J. <KJJACKS@twa.com>
@ 2000-01-28 17:14 ` Ed Loehr <eloehr@austin.rr.com>
0 siblings, 0 replies; 20+ messages in thread
From: Ed Loehr @ 2000-01-28 17:14 UTC (permalink / raw)
To: Jackson, Kevin J. <KJJACKS@twa.com>; +Cc: pgsql-general
"Jackson, Kevin J." wrote:
>
> 1) What does the following mean:
> PostgresSQL query failed: ERROR: Bad date external representation
You might have an illegal date string format, though this kind of
message also shows up in other circumstances IIRC.
Try 'MM/DD/YYYY' or 'YYYY-MM-DD'...
> 2) Is there a comprehensive list of PostgreSQL error messages and their
> meanings?
No, and it has been sorely missed every day for quite some time.
Best tool: power search at www.deja.com ... most problems are
archived there, along with solutions and workarounds.
Other tools: mailing list archive search engine via
(http://www.postgresql.org/lists/mailing-list.html) ... availability
seems to be spotty, though this search engine is just recently
redesigned...
Cheers,
Ed Loehr
^ permalink raw reply [nested|flat] 20+ messages in thread
* Error Message
@ 2002-04-11 13:46 Herb Blacker <herbblacker@isgenesis.com>
0 siblings, 0 replies; 20+ messages in thread
From: Herb Blacker @ 2002-04-11 13:46 UTC (permalink / raw)
To: pgsql-general
Is there a way to more explicitly define where a Referential Integrity
error occurs in a COPY (bulk load) command?
If the error is about a duplicate key value, then COPY gives me the
exact line number.
However, if there is an error due to RI, then a general statement is
issued, and I'm forced to look through
a 9,000 line table for the FK value that doesn't occur in the main table.
Running 7.1.3...and have no intention for the moment of upgrading, this
version is rock solid for me.
Any ideas?
TIA
_________________________
Herb Blacker
Database Administrator
ReCare, Inc.
(512) 791-4340
herbblacker@isgenesis.com
^ permalink raw reply [nested|flat] 20+ messages in thread
* Error message
@ 2004-03-03 15:57 Eric <hehe88hk@yahoo.com.hk>
2004-03-09 22:46 ` Re: Error message scott.marlowe <scott.marlowe@ihs.com>
2004-03-10 11:18 ` Re: Error message Mattias Kregert <mattias@kregert.se>
0 siblings, 2 replies; 20+ messages in thread
From: hehe88hk@yahoo.com.hk @ 2004-03-03 15:57 UTC (permalink / raw)
To: pgsql-general
Hello.
After I have performed several queries by an external program on the
database, an error message appeared:
"hard limit on result handles reached is not a valid query result"
May I know how to solve the problem?
Thank you
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error message
2004-03-03 15:57 Error message Eric <hehe88hk@yahoo.com.hk>
@ 2004-03-09 22:46 ` scott.marlowe <scott.marlowe@ihs.com>
1 sibling, 0 replies; 20+ messages in thread
From: scott.marlowe @ 2004-03-09 22:46 UTC (permalink / raw)
To: Eric <hehe88hk@yahoo.com.hk>; +Cc: pgsql-general
On 3 Mar 2004, Eric wrote:
> Hello.
>
> After I have performed several queries by an external program on the
> database, an error message appeared:
> "hard limit on result handles reached is not a valid query result"
>
> May I know how to solve the problem?
Sounds like an application issue, not postgresql. What language are you
using, and might you share some code?
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error message
2004-03-03 15:57 Error message Eric <hehe88hk@yahoo.com.hk>
@ 2004-03-10 11:18 ` Mattias Kregert <mattias@kregert.se>
1 sibling, 0 replies; 20+ messages in thread
From: Mattias Kregert @ 2004-03-10 11:18 UTC (permalink / raw)
To: Eric <hehe88hk@yahoo.com.hk>; pgsql-general
This is in Tcl, right?
You are creating queries without clearing the result handles. Make sure you always clear the result handles after getting the data. I noticed this problem too when I upgraded to latest version of Tcl, where the number of open handles are limited. When I found that bug and fixed it, my app suddenly stopped its bad habit of slowly eating up memory and slowing down... :)
/Mattias
----- Original Message -----
From: "Eric" <hehe88hk@yahoo.com.hk>
To: <pgsql-general@postgresql.org>
Sent: Wednesday, March 03, 2004 4:57 PM
Subject: [GENERAL] Error message
> Hello.
>
> After I have performed several queries by an external program on the
> database, an error message appeared:
> "hard limit on result handles reached is not a valid query result"
>
> May I know how to solve the problem?
> Thank you
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>
^ permalink raw reply [nested|flat] 20+ messages in thread
* Error Message
@ 2005-02-01 01:53 phil campaigne <pcampaigne@charter.net>
0 siblings, 0 replies; 20+ messages in thread
From: phil campaigne @ 2005-02-01 01:53 UTC (permalink / raw)
To: pgsql-general
Hi All,
I'm getting the following from an "insertStatement.executeUpdate();"
error message:
postgresql.stat.result
org.postgresql.util.PSQLException@1277
Does anybody know why?
thanks,
Phil
^ permalink raw reply [nested|flat] 20+ messages in thread
* Error Message
@ 2005-02-01 02:21 phil campaigne <pcampaigne@charter.net>
0 siblings, 0 replies; 20+ messages in thread
From: phil campaigne @ 2005-02-01 02:21 UTC (permalink / raw)
To: pgsql-general
Hi All,
false alarm... I found the problem. I tried to reuse an
insertStatement. can't do it.
Phil
^ permalink raw reply [nested|flat] 20+ messages in thread
* Error Message
@ 2005-10-26 20:48 Bob Pawley <rjpawley@shaw.ca>
2005-10-26 21:23 ` Re: Error Message Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 20+ messages in thread
From: Bob Pawley @ 2005-10-26 20:48 UTC (permalink / raw)
To: pgsql-general
I am attempting to create a new trigger through the "new Trigger" interface on version 8 installed on Windows.
The following is the sql that the interface generates
CREATE TRIGGER trig1 AFTER INSERT
ON process FOR EACH ROW
EXECUTE PROCEDURE base(int4);
COMMENT ON TRIGGER trig1 ON process IS 'insert into specification (fluid_id)
';
The error message reads - ERROR: function base() does not exist
The function name is listed under Functions as - base(int4)
Bob
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error Message
2005-10-26 20:48 Error Message Bob Pawley <rjpawley@shaw.ca>
@ 2005-10-26 21:23 ` Tom Lane <tgl@sss.pgh.pa.us>
2005-10-26 23:24 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
0 siblings, 1 reply; 20+ messages in thread
From: Tom Lane @ 2005-10-26 21:23 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: pgsql-general
Bob Pawley <rjpawley@shaw.ca> writes:
> The function name is listed under Functions as - base(int4)
Trigger functions cannot take any explicit parameters.
regards, tom lane
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error Message
2005-10-26 20:48 Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 21:23 ` Re: Error Message Tom Lane <tgl@sss.pgh.pa.us>
@ 2005-10-26 23:24 ` Bob Pawley <rjpawley@shaw.ca>
2005-10-26 23:45 ` Re: Error Message Terry Lee Tucker <terry@esc1.com>
2005-10-26 23:51 ` Re: Error Message Douglas McNaught <doug@mcnaught.org>
0 siblings, 2 replies; 20+ messages in thread
From: Bob Pawley @ 2005-10-26 23:24 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-general
I'm not sure what you mean.
base(int4) is the name of the function that I want to call. It follows the
format of an example in a Postgresql book I use (or perhaps misuse).
Are you saying that I need to redo the function???
Bob
----- Original Message -----
From: "Tom Lane" <tgl@sss.pgh.pa.us>
To: "Bob Pawley" <rjpawley@shaw.ca>
Cc: "Postgre General" <pgsql-general@postgresql.org>
Sent: Wednesday, October 26, 2005 2:23 PM
Subject: Re: [GENERAL] Error Message
> Bob Pawley <rjpawley@shaw.ca> writes:
>> The function name is listed under Functions as - base(int4)
>
> Trigger functions cannot take any explicit parameters.
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error Message
2005-10-26 20:48 Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 21:23 ` Re: Error Message Tom Lane <tgl@sss.pgh.pa.us>
2005-10-26 23:24 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
@ 2005-10-26 23:45 ` Terry Lee Tucker <terry@esc1.com>
2005-10-27 01:00 ` Re: Error Message Michael Fuhr <mike@fuhr.org>
1 sibling, 1 reply; 20+ messages in thread
From: Terry Lee Tucker @ 2005-10-26 23:45 UTC (permalink / raw)
To: pgsql-general
Bob,
You cannot pass argments to trigger functions. You can to other types of
functions, but not functions used as triggers. Arguments are passed regarding
the old and new records and other built in variables regarding what kind of
operation is going on, but all of that is "unseen".
They must be created as in:
CREATE TRIGGER trig1 AFTER INSERT
ON process FOR EACH ROW
EXECUTE PROCEDURE base();
^^^^^^
Note: no argument.
On Wednesday 26 October 2005 07:24 pm, Bob Pawley saith:
> I'm not sure what you mean.
>
> base(int4) is the name of the function that I want to call. It follows the
> format of an example in a Postgresql book I use (or perhaps misuse).
>
> Are you saying that I need to redo the function???
>
> Bob
> ----- Original Message -----
> From: "Tom Lane" <tgl@sss.pgh.pa.us>
> To: "Bob Pawley" <rjpawley@shaw.ca>
> Cc: "Postgre General" <pgsql-general@postgresql.org>
> Sent: Wednesday, October 26, 2005 2:23 PM
> Subject: Re: [GENERAL] Error Message
>
> > Bob Pawley <rjpawley@shaw.ca> writes:
> >> The function name is listed under Functions as - base(int4)
> >
> > Trigger functions cannot take any explicit parameters.
> >
> > regards, tom lane
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: don't forget to increase your free space map settings
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error Message
2005-10-26 20:48 Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 21:23 ` Re: Error Message Tom Lane <tgl@sss.pgh.pa.us>
2005-10-26 23:24 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 23:45 ` Re: Error Message Terry Lee Tucker <terry@esc1.com>
@ 2005-10-27 01:00 ` Michael Fuhr <mike@fuhr.org>
2005-10-27 01:15 ` Re: Error Message Michael Fuhr <mike@fuhr.org>
2005-10-27 02:47 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
0 siblings, 2 replies; 20+ messages in thread
From: Michael Fuhr @ 2005-10-27 01:00 UTC (permalink / raw)
To: Terry Lee Tucker <terry@esc1.com>; +Cc: pgsql-general
On Wed, Oct 26, 2005 at 07:45:19PM -0400, Terry Lee Tucker wrote:
> You cannot pass argments to trigger functions. You can to other types of
> functions, but not functions used as triggers. Arguments are passed regarding
> the old and new records and other built in variables regarding what kind of
> operation is going on, but all of that is "unseen".
>
> They must be created as in:
> CREATE TRIGGER trig1 AFTER INSERT
> ON process FOR EACH ROW
> EXECUTE PROCEDURE base();
> ^^^^^^
> Note: no argument.
You *can* pass arguments to trigger functions but it's done a little
differently than with non-trigger functions. The function must be
defined to take no arguments; it reads the arguments from a context
structure instead of in the normal way. PL/pgSQL trigger functions,
for example, read their arguments from the TG_ARGV array.
http://www.postgresql.org/docs/8.0/interactive/plpgsql-trigger.html
http://www.postgresql.org/docs/8.0/interactive/trigger-interface.html
Example:
CREATE TABLE foo (id integer, x integer);
CREATE FUNCTION func() RETURNS trigger AS $$
BEGIN
NEW.x := TG_ARGV[0];
RETURN NEW;
END;
$$ LANGUAGE plpgsql;
CREATE TRIGGER footrig BEFORE INSERT OR UPDATE ON foo
FOR EACH ROW EXECUTE PROCEDURE func(12345);
INSERT INTO foo (id) VALUES (1);
SELECT * FROM foo;
id | x
----+-------
1 | 12345
(1 row)
However, it's not clear if this is what Bob is trying to do. His
original attempt was:
> CREATE TRIGGER trig1 AFTER INSERT
> ON process FOR EACH ROW
> EXECUTE PROCEDURE base(int4);
He's given what looks like a function signature instead of passing
an argument. Even if this worked, he hasn't specified what argument
should be passed. Bob, can you explain what you're trying to do?
--
Michael Fuhr
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error Message
2005-10-26 20:48 Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 21:23 ` Re: Error Message Tom Lane <tgl@sss.pgh.pa.us>
2005-10-26 23:24 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 23:45 ` Re: Error Message Terry Lee Tucker <terry@esc1.com>
2005-10-27 01:00 ` Re: Error Message Michael Fuhr <mike@fuhr.org>
@ 2005-10-27 01:15 ` Michael Fuhr <mike@fuhr.org>
1 sibling, 0 replies; 20+ messages in thread
From: Michael Fuhr @ 2005-10-27 01:15 UTC (permalink / raw)
To: Terry Lee Tucker <terry@esc1.com>; +Cc: pgsql-general
On Wed, Oct 26, 2005 at 07:00:06PM -0600, Michael Fuhr wrote:
> You *can* pass arguments to trigger functions but it's done a little
> differently than with non-trigger functions. The function must be
> defined to take no arguments; it reads the arguments from a context
> structure instead of in the normal way. PL/pgSQL trigger functions,
> for example, read their arguments from the TG_ARGV array.
>
> http://www.postgresql.org/docs/8.0/interactive/plpgsql-trigger.html
> http://www.postgresql.org/docs/8.0/interactive/trigger-interface.html
Also
http://www.postgresql.org/docs/8.0/interactive/sql-createtrigger.html
where the documentation says
CREATE TRIGGER name { BEFORE | AFTER } { event [ OR ... ] }
ON table [ FOR [ EACH ] { ROW | STATEMENT } ]
EXECUTE PROCEDURE funcname ( arguments )
...
arguments
An optional comma-separated list of arguments to be provided to the
function when the trigger is executed. The arguments are literal
string constants. Simple names and numeric constants may be written
here, too, but they will all be converted to strings. Please check
the description of the implementation language of the trigger function
about how the trigger arguments are accessible within the function; it
may be different from normal function arguments.
--
Michael Fuhr
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error Message
2005-10-26 20:48 Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 21:23 ` Re: Error Message Tom Lane <tgl@sss.pgh.pa.us>
2005-10-26 23:24 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 23:45 ` Re: Error Message Terry Lee Tucker <terry@esc1.com>
2005-10-27 01:00 ` Re: Error Message Michael Fuhr <mike@fuhr.org>
@ 2005-10-27 02:47 ` Bob Pawley <rjpawley@shaw.ca>
2005-10-27 04:38 ` Re: Error Message Michael Fuhr <mike@fuhr.org>
1 sibling, 1 reply; 20+ messages in thread
From: Bob Pawley @ 2005-10-27 02:47 UTC (permalink / raw)
To: Michael Fuhr <mike@fuhr.org>; Terry Lee Tucker <terry@esc1.com>; +Cc: pgsql-general
I have a base table called "process". Each row of this table is anchored by
a serial column labeled "fluid_id".
After data has been entered into a row in "process", I want to trigger a
row in another table labeled "specification" also with a column labeled
"fluid_id". I would like this number from "process" entered into
"specification" as an integer.
I would like this to happen after each row in "process" has satisfied the
not null requirements.
I may not be employing the language you are use to using however, I hope
this explanation is somewhat clear.
Thanks for your help.
Bob
----- Original Message -----
From: "Michael Fuhr" <mike@fuhr.org>
To: "Terry Lee Tucker" <terry@esc1.com>
Cc: "Postgre General" <pgsql-general@postgresql.org>
Sent: Wednesday, October 26, 2005 6:00 PM
Subject: Re: [GENERAL] Error Message
> On Wed, Oct 26, 2005 at 07:45:19PM -0400, Terry Lee Tucker wrote:
>> You cannot pass argments to trigger functions. You can to other types of
>> functions, but not functions used as triggers. Arguments are passed
>> regarding
>> the old and new records and other built in variables regarding what kind
>> of
>> operation is going on, but all of that is "unseen".
>>
>> They must be created as in:
>> CREATE TRIGGER trig1 AFTER INSERT
>> ON process FOR EACH ROW
>> EXECUTE PROCEDURE base();
>> ^^^^^^
>> Note: no argument.
>
> You *can* pass arguments to trigger functions but it's done a little
> differently than with non-trigger functions. The function must be
> defined to take no arguments; it reads the arguments from a context
> structure instead of in the normal way. PL/pgSQL trigger functions,
> for example, read their arguments from the TG_ARGV array.
>
> http://www.postgresql.org/docs/8.0/interactive/plpgsql-trigger.html
> http://www.postgresql.org/docs/8.0/interactive/trigger-interface.html
>
> Example:
>
> CREATE TABLE foo (id integer, x integer);
>
> CREATE FUNCTION func() RETURNS trigger AS $$
> BEGIN
> NEW.x := TG_ARGV[0];
> RETURN NEW;
> END;
> $$ LANGUAGE plpgsql;
>
> CREATE TRIGGER footrig BEFORE INSERT OR UPDATE ON foo
> FOR EACH ROW EXECUTE PROCEDURE func(12345);
>
> INSERT INTO foo (id) VALUES (1);
>
> SELECT * FROM foo;
> id | x
> ----+-------
> 1 | 12345
> (1 row)
>
> However, it's not clear if this is what Bob is trying to do. His
> original attempt was:
>
>> CREATE TRIGGER trig1 AFTER INSERT
>> ON process FOR EACH ROW
>> EXECUTE PROCEDURE base(int4);
>
> He's given what looks like a function signature instead of passing
> an argument. Even if this worked, he hasn't specified what argument
> should be passed. Bob, can you explain what you're trying to do?
>
> --
> Michael Fuhr
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error Message
2005-10-26 20:48 Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 21:23 ` Re: Error Message Tom Lane <tgl@sss.pgh.pa.us>
2005-10-26 23:24 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 23:45 ` Re: Error Message Terry Lee Tucker <terry@esc1.com>
2005-10-27 01:00 ` Re: Error Message Michael Fuhr <mike@fuhr.org>
2005-10-27 02:47 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
@ 2005-10-27 04:38 ` Michael Fuhr <mike@fuhr.org>
0 siblings, 0 replies; 20+ messages in thread
From: Michael Fuhr @ 2005-10-27 04:38 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: Terry Lee Tucker <terry@esc1.com>; pgsql-general
On Wed, Oct 26, 2005 at 07:47:51PM -0700, Bob Pawley wrote:
> I have a base table called "process". Each row of this table is anchored by
> a serial column labeled "fluid_id".
What do you mean by "anchored by"? Is fluid_id the primary key for
process? Or is fluid_id a foreign key reference to some other
table? Or do you mean something else?
> After data has been entered into a row in "process", I want to trigger a
> row in another table labeled "specification" also with a column labeled
> "fluid_id". I would like this number from "process" entered into
> "specification" as an integer.
By "trigger a row" do you mean that you want the trigger on process
to insert a new row into specification? Is the following example
close to what you're looking for?
CREATE TABLE process (fluid_id integer PRIMARY KEY);
CREATE TABLE specification (fluid_id integer NOT NULL);
CREATE FUNCTION base() RETURNS trigger AS $$
BEGIN
INSERT INTO specification (fluid_id) VALUES (NEW.fluid_id);
RETURN NULL; -- ignored in AFTER triggers
END;
$$ LANGUAGE plpgsql;
CREATE TRIGGER trig1 AFTER INSERT ON process
FOR EACH ROW EXECUTE PROCEDURE base();
INSERT INTO process (fluid_id) VALUES (123);
INSERT INTO process (fluid_id) VALUES (456);
SELECT * FROM process;
fluid_id
----------
123
456
(2 rows)
SELECT * FROM specification;
fluid_id
----------
123
456
(2 rows)
--
Michael Fuhr
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error Message
2005-10-26 20:48 Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 21:23 ` Re: Error Message Tom Lane <tgl@sss.pgh.pa.us>
2005-10-26 23:24 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
@ 2005-10-26 23:51 ` Douglas McNaught <doug@mcnaught.org>
1 sibling, 0 replies; 20+ messages in thread
From: Douglas McNaught @ 2005-10-26 23:51 UTC (permalink / raw)
To: Bob Pawley <rjpawley@shaw.ca>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-general
Bob Pawley <rjpawley@shaw.ca> writes:
> I'm not sure what you mean.
>
> base(int4) is the name of the function that I want to call. It follows
> the format of an example in a Postgresql book I use (or perhaps
> misuse).
>
> Are you saying that I need to redo the function???
You need to make it a function that takes zero arguments. Trigger
functions take their arguments in a weird way, not via the usual
mechanism. See the docs.
-Doug
^ permalink raw reply [nested|flat] 20+ messages in thread
* Error message
@ 2021-03-16 05:27 Igor Korot <ikorot01@gmail.com>
2021-03-16 05:35 ` Re: Error message David G. Johnston <david.g.johnston@gmail.com>
0 siblings, 1 reply; 20+ messages in thread
From: Igor Korot @ 2021-03-16 05:27 UTC (permalink / raw)
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Hi, ALL,
Documentation for PQprepare states:
[quote]
As with PQexec, the result is normally a PGresult object whose
contents indicate server-side success or failure. A null result
indicates out-of-memory or inability to send the command at all. Use
PQerrorMessage to get more information about such errors.
[/quote]
But this function is not the same as PQexec().
So what does it return if it succeeds?
Thank you.
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error message
2021-03-16 05:27 Error message Igor Korot <ikorot01@gmail.com>
@ 2021-03-16 05:35 ` David G. Johnston <david.g.johnston@gmail.com>
2021-03-16 05:56 ` Re: Error message Igor Korot <ikorot01@gmail.com>
0 siblings, 1 reply; 20+ messages in thread
From: David G. Johnston @ 2021-03-16 05:35 UTC (permalink / raw)
To: Igor Korot <ikorot01@gmail.com>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
On Monday, March 15, 2021, Igor Korot <ikorot01@gmail.com> wrote:
>
> [quote]
> As with PQexec, the result is normally a PGresult object whose
> contents indicate server-side success or failure. A null result
> indicates out-of-memory or inability to send the command at all. Use
> PQerrorMessage to get more information about such errors.
> [/quote]
>
> But this function is not the same as PQexec().
>
> So what does it return if it succeeds?
>
Exactly what the syntax line and that first sentence says it does, a
PGresult.
David J.
^ permalink raw reply [nested|flat] 20+ messages in thread
* Re: Error message
2021-03-16 05:27 Error message Igor Korot <ikorot01@gmail.com>
2021-03-16 05:35 ` Re: Error message David G. Johnston <david.g.johnston@gmail.com>
@ 2021-03-16 05:56 ` Igor Korot <ikorot01@gmail.com>
0 siblings, 0 replies; 20+ messages in thread
From: Igor Korot @ 2021-03-16 05:56 UTC (permalink / raw)
To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Thx, David.
I need to get some sleep. ;-)
On Tue, Mar 16, 2021 at 12:35 AM David G. Johnston
<david.g.johnston@gmail.com> wrote:
>
> On Monday, March 15, 2021, Igor Korot <ikorot01@gmail.com> wrote:
>>
>> [quote]
>> As with PQexec, the result is normally a PGresult object whose
>> contents indicate server-side success or failure. A null result
>> indicates out-of-memory or inability to send the command at all. Use
>> PQerrorMessage to get more information about such errors.
>> [/quote]
>>
>> But this function is not the same as PQexec().
>>
>> So what does it return if it succeeds?
>
>
> Exactly what the syntax line and that first sentence says it does, a PGresult.
>
> David J.
>
^ permalink raw reply [nested|flat] 20+ messages in thread
end of thread, other threads:[~2021-03-16 05:56 UTC | newest]
Thread overview: 20+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-01-28 16:08 error message Jackson, Kevin J. <KJJACKS@twa.com>
2000-01-28 17:14 ` Ed Loehr <eloehr@austin.rr.com>
2002-04-11 13:46 Error Message Herb Blacker <herbblacker@isgenesis.com>
2004-03-03 15:57 Error message Eric <hehe88hk@yahoo.com.hk>
2004-03-09 22:46 ` Re: Error message scott.marlowe <scott.marlowe@ihs.com>
2004-03-10 11:18 ` Re: Error message Mattias Kregert <mattias@kregert.se>
2005-02-01 01:53 Error Message phil campaigne <pcampaigne@charter.net>
2005-02-01 02:21 Error Message phil campaigne <pcampaigne@charter.net>
2005-10-26 20:48 Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 21:23 ` Re: Error Message Tom Lane <tgl@sss.pgh.pa.us>
2005-10-26 23:24 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-26 23:45 ` Re: Error Message Terry Lee Tucker <terry@esc1.com>
2005-10-27 01:00 ` Re: Error Message Michael Fuhr <mike@fuhr.org>
2005-10-27 01:15 ` Re: Error Message Michael Fuhr <mike@fuhr.org>
2005-10-27 02:47 ` Re: Error Message Bob Pawley <rjpawley@shaw.ca>
2005-10-27 04:38 ` Re: Error Message Michael Fuhr <mike@fuhr.org>
2005-10-26 23:51 ` Re: Error Message Douglas McNaught <doug@mcnaught.org>
2021-03-16 05:27 Error message Igor Korot <ikorot01@gmail.com>
2021-03-16 05:35 ` Re: Error message David G. Johnston <david.g.johnston@gmail.com>
2021-03-16 05:56 ` Re: Error message Igor Korot <ikorot01@gmail.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