pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedinsert statement going into infinite loop
5+ messages / 4 participants
[nested] [flat]
* insert statement going into infinite loop
@ 2010-12-24 11:57 Trimurthulu Bandaru <trimurthulub@mediaforte.in>
0 siblings, 2 replies; 5+ messages in thread
From: Trimurthulu Bandaru @ 2010-12-24 11:57 UTC (permalink / raw)
To: pgsql-bugs
Hi everybody..
I have table with 11 attributes, 6 of them refers different tables and
having one primary key.
when I am trying to insert row with 121 key value, its going into
infinite loop..
I didnt find any error in table definition and no foreign key
violations..
Can you please help me in this issue..
I am thinking its a bug in postgres..
Can you make clear in this issue..
thank you..
--
with best
--Trim..
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: insert statement going into infinite loop
@ 2010-12-24 23:11 Jaime Casanova <jaime@2ndquadrant.com>
parent: Trimurthulu Bandaru <trimurthulub@mediaforte.in>
1 sibling, 0 replies; 5+ messages in thread
From: Jaime Casanova @ 2010-12-24 23:11 UTC (permalink / raw)
To: Trimurthulu Bandaru <trimurthulub@mediaforte.in>; +Cc: pgsql-bugs
On Fri, Dec 24, 2010 at 6:57 AM, Trimurthulu Bandaru
<trimurthulub@mediaforte.in> wrote:
> Hi everybody..
> I have table with 11 attributes, 6 of them refers different tables and
> having one primary key.
> when I am trying to insert row with 121 key value, its going into
> infinite loop..
define "infinite loop", the truth is that you're giving almost no
information so all we can try now is to guess and cross fingers ;)
are you describing that the INSERT never finishes?
if so, maybe the table is locked... you can know that by looking in
pg_stat_activity view and find your statement in the field
current_query and see the field waiting, if is true then the statement
is locked waiting for something...
or you can see the pg_locks view where relation = 'your_table'::regclass
another posibility is that you have a trigger in the table after or
before insert and then inside the trigger inserting a new value on the
same table forcing a new execution of the trigger making it
recursive...
> I am thinking its a bug in postgres..
it's too early to blame postgres
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte y capacitación de PostgreSQL
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: insert statement going into infinite loop
@ 2010-12-25 00:56 Craig Ringer <craig@postnewspapers.com.au>
parent: Trimurthulu Bandaru <trimurthulub@mediaforte.in>
1 sibling, 1 reply; 5+ messages in thread
From: Craig Ringer @ 2010-12-25 00:56 UTC (permalink / raw)
To: Trimurthulu Bandaru <trimurthulub@mediaforte.in>; +Cc: pgsql-bugs
On 12/24/2010 10:57 PM, Trimurthulu Bandaru wrote:
> Hi everybody..
> I have table with 11 attributes, 6 of them refers different tables and
> having one primary key.
> when I am trying to insert row with 121 key value, its going into
> infinite loop..
Do you have any triggers on the table?
Can you produce a single .sql file that creates the tables and does the
problem insert?
--
Craig Ringer
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: insert statement going into infinite loop
@ 2010-12-28 06:31 Trimurthulu Bandaru <trimurthulub@mediaforte.in>
parent: Craig Ringer <craig@postnewspapers.com.au>
0 siblings, 1 reply; 5+ messages in thread
From: Trimurthulu Bandaru @ 2010-12-28 06:31 UTC (permalink / raw)
To: Craig Ringer <craig@postnewspapers.com.au>; +Cc: pgsql-bugs
On Sat, 2010-12-25 at 11:56 +1100, Craig Ringer wrote:
> On 12/24/2010 10:57 PM, Trimurthulu Bandaru wrote:
> > Hi everybody..
> > I have table with 11 attributes, 6 of them refers different tables and
> > having one primary key.
> > when I am trying to insert row with 121 key value, its going into
> > infinite loop..
>
> Do you have any triggers on the table?
>
> Can you produce a single .sql file that creates the tables and does the
> problem insert?
>
> --
> Craig Ringer
Hi Craig Ringer
Thanks for reply..
No. I dont have any triggres on the table.
and I could not understand your idea
Can you produce a single .sql file that creates the tables and does the
problem insert?
Can you please make me clear in this issue..
--
with best
--Trim..
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: insert statement going into infinite loop
@ 2010-12-28 07:37 John R Pierce <pierce@hogranch.com>
parent: Trimurthulu Bandaru <trimurthulub@mediaforte.in>
0 siblings, 0 replies; 5+ messages in thread
From: John R Pierce @ 2010-12-28 07:37 UTC (permalink / raw)
To: pgsql-bugs
On 12/27/10 10:31 PM, Trimurthulu Bandaru wrote:
>
> Can you produce a single .sql file that creates the tables and does the
> problem insert?
>
> Can you please make me clear in this issue..
he's asking if you can produce a test case in the form of a .SQL file
that creates a schema and demonstrates this problem so the development
team can verify if there is/isn't a problem, and fix it if there is.
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2010-12-28 07:37 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-12-24 11:57 insert statement going into infinite loop Trimurthulu Bandaru <trimurthulub@mediaforte.in>
2010-12-24 23:11 ` Jaime Casanova <jaime@2ndquadrant.com>
2010-12-25 00:56 ` Craig Ringer <craig@postnewspapers.com.au>
2010-12-28 06:31 ` Trimurthulu Bandaru <trimurthulub@mediaforte.in>
2010-12-28 07:37 ` John R Pierce <pierce@hogranch.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