473,322 Members | 1,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

strange apllicaion error

i get this error messages in my application:

query error: ERROR: duplicate key violates unique constraint "pg_type_typname_nsp_index"

failed query: SELECT packv_uid INTO TEMPORARY my_new_to1c FROM new_to1c
connection error: no connection to the server

it's my code:
for (;;) {
doquery("begin work");
doquery("SELECT packv_uid INTO TEMPORARY my_new_to1c FROM new_to1c");
....
doquery("DROP TABLE my_new_to1c");
doquery("commit");
sleep(1);
}
new_to1c is view
may be it's related with
http://archives.postgresql.org/pgsql...6/msg00394.php
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #1
2 1687
What language are you using to execute your code? Maybe it has the same
problem that pl/pgsql does with caching temp tables? It would be
created the first time it looped through your code, the 2nd time it
would crash trying to create the table again.
On Thu, 2004-06-24 at 06:37, sp***@yandex.ru wrote:
i get this error messages in my application:

query error: ERROR: duplicate key violates unique constraint "pg_type_typname_nsp_index"

failed query: SELECT packv_uid INTO TEMPORARY my_new_to1c FROM new_to1c
connection error: no connection to the server

it's my code:
for (;;) {
doquery("begin work");
doquery("SELECT packv_uid INTO TEMPORARY my_new_to1c FROM new_to1c");
....
doquery("DROP TABLE my_new_to1c");
doquery("commit");
sleep(1);
}
new_to1c is view
may be it's related with
http://archives.postgresql.org/pgsql...6/msg00394.php
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org


---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org

Nov 23 '05 #2
mg> What language are you using to execute your code?

ñ with modified pgeasy library

mg> Maybe it has the same problem that pl/pgsql does with caching
mg> temp tables? It would be created the first time it looped
mg> through your code, the 2nd time it would crash trying to create
mg> the table again.

i think i understood:
- after SELECT INTO, but before DROP TABLE i get error from some sql
command
- transation is aborted and any commands (include DROP TABLE) are
ignored
- after commit temporary table exist and on next loop i get error on
SELECT INTO
query error: ERROR: duplicate key violates unique constraint "pg_type_typname_nsp_index"

failed query: SELECT packv_uid INTO TEMPORARY my_new_to1c FROM new_to1c
connection error: no connection to the server

it's my code:
for (;;) {
doquery("begin work");
doquery("SELECT packv_uid INTO TEMPORARY my_new_to1c FROM new_to1c");
....
doquery("DROP TABLE my_new_to1c");
doquery("commit");
sleep(1);
}
new_to1c is view
may be it's related with
http://archives.postgresql.org/pgsql...6/msg00394.php

---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Nov 23 '05 #3

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

Similar topics

6
by: Eric Boutin | last post by:
Hi ! I have a strange problem with a std::ostringstream.. code : #include <sstream> /*...*/ std::ostringstream ss(); ss << "\"\"" << libpath << "\"\" \"\"" << argfilename << "\"\"...
2
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
0
by: Kris Vanherck | last post by:
yesterday i started getting this strange error when i try to run my asp.net project: Compiler Error Message: CS0006: Metadata file 'c:\winnt\microsoft.net\framework\v1.1.4322\temporary asp.net...
5
by: Nathan Sokalski | last post by:
When I view my index.aspx page any time after the first time, I recieve the following error: System.Web.TraceContext.AddNewControl(String id, String parentId, String type, Int32 viewStateSize)...
0
by: ivb | last post by:
Hi all, I am using DB2 8.1.11.1 on NT with ASP.NET 1.1 When application make connection to database (via ADO.NET), it set "Connection timeout" parameter to 30 seconds. After, when my webpage...
11
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
11
by: Mike C# | last post by:
Hi all, I keep getting a strange error and can't pin it down. The message is: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's...
3
by: Shelly | last post by:
I am encountering two strange problems. First one: I get a "server misconfiguration error", but only sometimes. It occurs on the first screen that accesses the database on a submit. This error...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.