postgresql/src/include/catalog
Tom Lane cfc5008a51 Adjust naming of indexes and their columns per recent discussion.
Index expression columns are now named after the FigureColname result for
their expressions, rather than always being "pg_expression_N".  Digits are
appended to this name if needed to make the column name unique within the
index.  (That happens for regular columns too, thus fixing the old problem
that CREATE INDEX fooi ON foo (f1, f1) fails.  Before exclusion indexes
there was no real reason to do such a thing, but now maybe there is.)

Default names for indexes and associated constraints now include the column
names of all their columns, not only the first one as in previous practice.
(Of course, this will be truncated as needed to fit in NAMEDATALEN.  Also,
pkey indexes retain the historical behavior of not naming specific columns
at all.)

An example of the results:

regression=# create table foo (f1 int, f2 text,
regression(# exclude (f1 with =, lower(f2) with =));
NOTICE:  CREATE TABLE / EXCLUDE will create implicit index "foo_f1_lower_exclusion" for table "foo"
CREATE TABLE
regression=# \d foo_f1_lower_exclusion
Index "public.foo_f1_lower_exclusion"
 Column |  Type   | Definition
--------+---------+------------
 f1     | integer | f1
 lower  | text    | lower(f2)
btree, for table "public.foo"
2009-12-23 02:35:25 +00:00
..
catalog.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
catversion.h Bump catversion to reflect the fact that HS patch changed pg_proc 2009-12-19 04:08:32 +00:00
dependency.h Add large object access control. 2009-12-11 03:34:57 +00:00
duplicate_oids Extend the BKI infrastructure to allow system catalogs to be given 2009-09-26 22:42:03 +00:00
genbki.h Extend the BKI infrastructure to allow system catalogs to be given 2009-09-26 22:42:03 +00:00
heap.h Create an ALTER DEFAULT PRIVILEGES command, which allows users to adjust 2009-10-05 19:24:49 +00:00
index.h Adjust naming of indexes and their columns per recent discussion. 2009-12-23 02:35:25 +00:00
indexing.h Add large object access control. 2009-12-11 03:34:57 +00:00
namespace.h Implement parser hooks for processing ColumnRef and ParamRef nodes, as per my 2009-10-31 01:41:31 +00:00
pg_aggregate.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_am.h Implement "fastupdate" support for GIN indexes, in which we try to accumulate 2009-03-24 20:17:18 +00:00
pg_amop.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
pg_amproc.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_attrdef.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_attribute.h Add exclusion constraints, which generalize the concept of uniqueness to 2009-12-07 05:22:23 +00:00
pg_auth_members.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_authid.h Make it possibly to specify GUC params per user and per database. 2009-10-07 22:14:26 +00:00
pg_cast.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
pg_class.h Add exclusion constraints, which generalize the concept of uniqueness to 2009-12-07 05:22:23 +00:00
pg_constraint.h Add exclusion constraints, which generalize the concept of uniqueness to 2009-12-07 05:22:23 +00:00
pg_control.h Bump catversion to reflect the fact that HS patch changed pg_proc 2009-12-19 04:08:32 +00:00
pg_conversion.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_conversion_fn.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
pg_database.h Make it possibly to specify GUC params per user and per database. 2009-10-07 22:14:26 +00:00
pg_db_role_setting.h Make it possibly to specify GUC params per user and per database. 2009-10-07 22:14:26 +00:00
pg_default_acl.h Create an ALTER DEFAULT PRIVILEGES command, which allows users to adjust 2009-10-05 19:24:49 +00:00
pg_depend.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_description.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_enum.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_foreign_data_wrapper.h Add the possibility to specify an explicit validator function for foreign-data 2009-02-24 10:06:36 +00:00
pg_foreign_server.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
pg_index.h Support deferrable uniqueness constraints. 2009-07-29 20:56:21 +00:00
pg_inherits.h Modify find_inheritance_children() and find_all_inheritors() to add the 2009-05-12 03:11:02 +00:00
pg_inherits_fn.h Modify find_inheritance_children() and find_all_inheritors() to add the 2009-05-12 03:11:02 +00:00
pg_language.h Implement the DO statement to support execution of PL code without having 2009-09-22 23:43:43 +00:00
pg_largeobject.h Add large object access control. 2009-12-11 03:34:57 +00:00
pg_largeobject_metadata.h Add large object access control. 2009-12-11 03:34:57 +00:00
pg_listener.h Change pg_listener attribute number constants to match the usual pattern 2009-07-21 20:24:51 +00:00
pg_namespace.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_opclass.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_operator.h Teach simplify_boolean_equality to simplify the forms foo <> true and 2009-07-20 00:24:30 +00:00
pg_opfamily.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_pltemplate.h Python 3 support in PL/Python 2009-12-15 22:59:55 +00:00
pg_proc.h Allow read only connections during recovery, known as Hot Standby. 2009-12-19 01:32:45 +00:00
pg_proc_fn.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
pg_rewrite.h Revert updatable views 2009-01-27 12:40:15 +00:00
pg_shdepend.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
pg_shdescription.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_statistic.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
pg_tablespace.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_trigger.h Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be 2009-11-20 20:38:12 +00:00
pg_ts_config.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_ts_config_map.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_ts_dict.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_ts_parser.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_ts_template.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
pg_type.h Extend the BKI infrastructure to allow system catalogs to be given 2009-09-26 22:42:03 +00:00
pg_type_fn.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
pg_user_mapping.h 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef list 2009-06-11 14:49:15 +00:00
storage.h Update copyright for 2009. 2009-01-01 17:24:05 +00:00
toasting.h Add a WHEN clause to CREATE TRIGGER, allowing a boolean expression to be 2009-11-20 20:38:12 +00:00
unused_oids Extend the BKI infrastructure to allow system catalogs to be given 2009-09-26 22:42:03 +00:00