| From: | Manuel Sugawara <masm(at)fciencias(dot)unam(dot)mx> |
|---|---|
| To: | Antonio Mármol Albert <toni(at)infurma(dot)combios(dot)es> |
| Cc: | pgsql-ayuda(at)tlali(dot)iztacala(dot)unam(dot)mx |
| Subject: | Re: [Pgsql-ayuda] ¿Cómo se come esto? |
| Date: | 2002-11-27 17:49:21 |
| Message-ID: | m37keygaxq.fsf@conexa.fciencias.unam.mx |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-es-ayuda |
Antonio Mármol Albert <toni(at)infurma(dot)combios(dot)es> writes:
> (Consulta 1)
>
> habitat=# SELECT id, marca FROM empresas WHERE marca = 'Muebles Celda';
> id | marca
> -------+---------------
> 21293 | Muebles Celda
>
>
> (Consulta 2)
>
> habitat=# SELECT id, marca FROM empresas WHERE id=21293;
> id | marca
> ----+-------
> (0 rows)
umh, esta raro. Tal vez tienes un índice corrupto; ¿dices que id es
llave primaria?, tal vez algo como:
reindex empresas_pkey;
ayude. ¿qué te dice el explain de abajo?
explain analyze SELECT id, marca FROM empresas WHERE id=21293;
Saludos,
Manuel.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Antonio Mármol Albert | 2002-11-27 17:50:47 | [Pgsql-ayuda] Re: [Pgsql-ayuda] Re: [Pgsql-ayuda] ¿Cómo se come esto? |
| Previous Message | Antonio Mármol Albert | 2002-11-27 17:46:43 | [Pgsql-ayuda] Re: [Pgsql-ayuda] ¿Cómo se come esto? |