pgAdmin III commit: Fix CREATE INDEX/CONSTRAINT syntax - Mailing list pgadmin-hackers

From Guillaume Lelarge
Subject pgAdmin III commit: Fix CREATE INDEX/CONSTRAINT syntax
Date
Msg-id 201010061914.o96JEc89084146@gothos.postgresql.org
Whole thread Raw
List pgadmin-hackers
Fix CREATE INDEX/CONSTRAINT syntax

Reverse the order of TABLESPACE and WITH() clauses for indexes.  Previously
pgAdminIII generated CREATE scripts like:

CREATE INDEX foo_foo_id ON foo USING btree (foo_id)
  TABLESPACE bar WITH (FILLFACTOR=50);

However this is illegal PostgreSQL syntax, the WITH() clause must come before
TABLESPACE.

The statement generated by "new index" dialog is already correct.

Branch
------
REL-1_12_0_PATCHES

Details
-------
http://git.postgresql.org/gitweb?p=pgadmin3.git;a=commitdiff;h=c102486cfdc5976e786526583f45208f20ec5cbb

Modified Files
--------------
pgadmin/schema/pgIndex.cpp |    6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)


pgadmin-hackers by date:

Previous
From: Guillaume Lelarge
Date:
Subject: pgAdmin website commit: Update website french translation.
Next
From: Guillaume Lelarge
Date:
Subject: Re: [PATCH] Fix CREATE INDEX/CONSTRAINT syntax when tablespace and fillfactor are specified