Re: BUG #13838: Problem in a table with integer primary key

From: Feike Steenbergen <feikesteenbergen(at)gmail(dot)com>
To: ronan(dot)vargas(at)gmail(dot)com
Cc: PostgreSQL mailing lists <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #13838: Problem in a table with integer primary key
Date: 2015-12-29 20:26:59
Message-ID: CAK_s-G260cFG75S86Uc0jYHHhEFeZZ4B0L9sbokWgi21ev9mUQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Could you do an explain analyze of both of these statements? It may help in
understanding the issue.

If it's a primary key, I assume the first query to be using the primary key
index.
The second variant will probably be a sequential scan on the table.

If these give different results, it may be a corrupt index, you could try
to reindex the specific index or the table, see
http://www.postgresql.org/docs/9.1/static/sql-reindex.html

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Henrik Pauli 2015-12-29 23:59:17 Re: BUG #13829: Exponentiation operator is left-associative
Previous Message ronan.vargas 2015-12-29 17:03:52 BUG #13838: Problem in a table with integer primary key