postgresql/src/backend/commands
Tom Lane 4b34624daa Code review for commands/statscmds.c.
Fix machine-dependent sorting of column numbers.  (Odd behavior
would only materialize for column numbers above 255, but that's
certainly legal.)

Fix poor choice of SQLSTATE for some errors, and improve error message
wording.  (Notably, "is not a scalar type" is a totally misleading way
to explain "does not have a default btree opclass".)

Avoid taking AccessExclusiveLock on the associated relation during DROP
STATISTICS.  That's neither necessary nor desirable, and it could easily
have put us into situations where DROP fails (compare commit 68ea2b7f9).

Adjust/improve comments.

David Rowley and Tom Lane

Discussion: https://postgr.es/m/CAKJS1f-GmCfPvBbAEaM5xoVOaYdVgVN1gicALSoYQ77z-+vLbw@mail.gmail.com
2017-04-24 11:15:15 -04:00
..
Makefile Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
aggregatecmds.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
alter.c Implement multivariate n-distinct coefficients 2017-03-24 14:06:10 -03:00
amcmds.c Fix typos in comments. 2017-02-06 11:33:58 +02:00
analyze.c Faster expression evaluation and targetlist projection. 2017-03-25 14:52:06 -07:00
async.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
cluster.c In rebuild_relation(), don't access an already-closed relcache entry. 2017-03-04 16:09:33 -05:00
collationcmds.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
comment.c Allow COMMENT ON COLUMN with partitioned tables 2017-04-18 10:42:10 +01:00
constraint.c Allow index AMs to cache data across aminsert calls within a SQL command. 2017-02-09 11:52:12 -05:00
conversioncmds.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
copy.c Set range table for CopyFrom() in tablesync 2017-04-17 23:23:49 -04:00
createas.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
dbcommands.c Cleanup slots during drop database 2017-03-28 10:05:21 -04:00
define.c Logical replication 2017-01-20 09:04:49 -05:00
discard.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
dropcmds.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
event_trigger.c Cast result of copyObject() to correct type 2017-03-28 21:59:23 -04:00
explain.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
extension.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
foreigncmds.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
functioncmds.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
indexcmds.c Faster expression evaluation and targetlist projection. 2017-03-25 14:52:06 -07:00
lockcmds.c Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
matview.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
opclasscmds.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
operatorcmds.c Replace LookupFuncNameTypeNames() with LookupFuncWithArgs() 2017-03-06 13:31:47 -05:00
policy.c Provide CatalogTupleDelete() as a wrapper around simple_heap_delete(). 2017-02-01 16:13:30 -05:00
portalcmds.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
prepare.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
proclang.c Provide CatalogTupleDelete() as a wrapper around simple_heap_delete(). 2017-02-01 16:13:30 -05:00
publicationcmds.c Fix typo in comment 2017-04-07 09:30:22 +02:00
schemacmds.c Add infrastructure to support EphemeralNamedRelation references. 2017-03-31 23:17:18 -05:00
seclabel.c Remove objname/objargs split for referring to objects 2017-03-06 13:31:47 -05:00
sequence.c Identity columns 2017-04-06 08:41:37 -04:00
statscmds.c Code review for commands/statscmds.c. 2017-04-24 11:15:15 -04:00
subscriptioncmds.c Synchronize table list before creating slot in CREATE SUBSCRIPTION 2017-04-21 08:37:03 -04:00
tablecmds.c Code review for c94e6942ce. 2017-04-12 11:35:11 -04:00
tablespace.c Remove useless duplicate inclusions of system header files. 2017-02-25 16:12:55 -05:00
trigger.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00
tsearchcmds.c Use wrappers of PG_DETOAST_DATUM_PACKED() more. 2017-03-12 19:35:34 -04:00
typecmds.c Remove objname/objargs split for referring to objects 2017-03-06 13:31:47 -05:00
user.c Rename "scram" to "scram-sha-256" in pg_hba.conf and password_encryption. 2017-04-18 14:50:50 +03:00
vacuum.c Track the oldest XID that can be safely looked up in CLOG. 2017-03-23 14:26:31 -04:00
vacuumlazy.c Make VACUUM VERBOSE report the number of skipped frozen pages. 2017-03-25 02:39:44 +09:00
variable.c Remove now-dead code for !HAVE_INT64_TIMESTAMP. 2017-02-23 14:04:43 -05:00
view.c Improve castNode notation by introducing list-extraction-specific variants. 2017-04-10 13:51:53 -04:00