Skip site navigation (1) Skip section navigation (2)

Re: wrong sql code for fk covering index

From: Jasmin Dizdarevic <jasmin(dot)dizdarevic(at)gmail(dot)com>
To: Timon <timosha(at)gmail(dot)com>
Cc: pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: wrong sql code for fk covering index
Date: 2011-06-16 16:45:25
Message-ID: BANLkTi=UfoPk11hGnz2Nk7dYsG70MmTM8g@mail.gmail.com (view raw or flat)
Thread:
Lists: pgadmin-hackers
Hi,

this patch should fix that.

regards,
Jasmin

2011/6/16 Timon <timosha(at)gmail(dot)com>

> When trying to create covering index for existing fk constrain by
> checking checkbox in dialog, pgadmin 1.14 (latest git) generates wrong
> code for postgresql 9.0.
>
> ALTER TABLE hotels VALIDATE CONSTRAINT hotels_city_id_fkey;
> CREATE INDEX fki_hotels_cityid ON hotels(city_id);
>
> postgresql 9.0 doesn't know about VALIDATE keyword.
> --
> All bugs reserved
>
> --
> Sent via pgadmin-hackers mailing list (pgadmin-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgadmin-hackers
>

Attachment: 0001-Fix-validate-constraint-with-PostgreSQL-9.1-when-cre.patch
Description: application/octet-stream (1002 bytes)

In response to

Responses

pgadmin-hackers by date

Next:From: Jasmin DizdarevicDate: 2011-06-16 16:50:03
Subject: Fwd: Foreign Table without options
Previous:From: Dave PageDate: 2011-06-16 16:08:59
Subject: pgAdmin III commit: make style

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group