[FEATURE] OIDs check box to enable OIDs

Поиск
Список
Период
Сортировка
От Thom Brown
Тема [FEATURE] OIDs check box to enable OIDs
Дата
Msg-id CAA-aLv587NY+WQjtt7Mx-o8nw8rqT1aryxTKRBfgwfUpWOWj7Q@mail.gmail.com
обсуждение исходный текст
Ответы Re: [FEATURE] OIDs check box to enable OIDs  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgadmin-hackers
Hi, me again.

I noticed that on the table properties dialogue window, the checkbox
for "Has OIDs" is disabled if there aren't any OIDs already for the
table rows.  I believe the check used for enabling this isn taking
into account that PostgreSQL versions 8.4 and above can re-enable
OIDs.

Patch attached to implement this.

While I was poking around in the section in question, I noticed that
some of the ALTER TABLE statements don't place a newline before the
SET keyword, and some do.

For example:

Those without newlines:
ALTER TABLE tablename DROP CONSTRAINT
ALTER TABLE tablename SET WITHOUT OIDS;
ALTER TABLE tablename SET TABLESPACE...

Those with newlines:
ALTER TABLE tablename
  SET (FILLFACTOR=...)
ALTER TABLE tablename
  RESET(...)

I personally prefer the ones with newlines, especially since I've been
experimenting with tables having very long names, and some of the
above statements require lots of horizontal scrolling on the SQL tab
to see what the action will be.  Could we harmonise these?  Note that
I didn't change the format for OIDs when I added the WITH OIDS
variant.

Thanks
--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Вложения

В списке pgadmin-hackers по дате отправления:

Предыдущее
От: "pgAdmin Trac"
Дата:
Сообщение: [pgAdmin III] #322: CHECK constraints with NOT VALID
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: pgAdmin III commit: Fix a crash bug when trying to create a new table o