@postgres-language-server/cli-x86_64-linux-musl 0.23.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@postgres-language-server/cli-x86_64-linux-musl",
3
- "version": "0.23.0",
3
+ "version": "0.25.0",
4
4
  "license": "MIT or Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
Binary file
package/schema.json CHANGED
@@ -1094,6 +1094,72 @@
1094
1094
  "null"
1095
1095
  ]
1096
1096
  },
1097
+ "avoidAddingExclusionConstraint": {
1098
+ "description": "Adding an exclusion constraint acquires an ACCESS EXCLUSIVE lock.",
1099
+ "anyOf": [
1100
+ {
1101
+ "$ref": "#/definitions/RuleConfiguration"
1102
+ },
1103
+ {
1104
+ "type": "null"
1105
+ }
1106
+ ]
1107
+ },
1108
+ "avoidAlterEnumAddValue": {
1109
+ "description": "ALTER TYPE ... ADD VALUE cannot run inside a transaction block in older Postgres versions.",
1110
+ "anyOf": [
1111
+ {
1112
+ "$ref": "#/definitions/RuleConfiguration"
1113
+ },
1114
+ {
1115
+ "type": "null"
1116
+ }
1117
+ ]
1118
+ },
1119
+ "avoidAttachingPartition": {
1120
+ "description": "Attaching a partition acquires an ACCESS EXCLUSIVE lock on the parent table.",
1121
+ "anyOf": [
1122
+ {
1123
+ "$ref": "#/definitions/RuleConfiguration"
1124
+ },
1125
+ {
1126
+ "type": "null"
1127
+ }
1128
+ ]
1129
+ },
1130
+ "avoidCreateTrigger": {
1131
+ "description": "Creating a trigger acquires a SHARE ROW EXCLUSIVE lock on the table.",
1132
+ "anyOf": [
1133
+ {
1134
+ "$ref": "#/definitions/RuleConfiguration"
1135
+ },
1136
+ {
1137
+ "type": "null"
1138
+ }
1139
+ ]
1140
+ },
1141
+ "avoidEnableDisableTrigger": {
1142
+ "description": "Enabling or disabling a trigger acquires a SHARE ROW EXCLUSIVE lock.",
1143
+ "anyOf": [
1144
+ {
1145
+ "$ref": "#/definitions/RuleConfiguration"
1146
+ },
1147
+ {
1148
+ "type": "null"
1149
+ }
1150
+ ]
1151
+ },
1152
+ "avoidWideLockWindow": {
1153
+ "description": "Acquiring ACCESS EXCLUSIVE locks on multiple tables widens the lock window.",
1154
+ "anyOf": [
1155
+ {
1156
+ "$ref": "#/definitions/RuleConfiguration"
1157
+ },
1158
+ {
1159
+ "type": "null"
1160
+ }
1161
+ ]
1162
+ },
1097
1163
  "banCharField": {
1098
1164
  "description": "Using CHAR(n) or CHARACTER(n) types is discouraged.",
1099
1165
  "anyOf": [
@@ -1116,6 +1182,17 @@
1116
1182
  }
1117
1183
  ]
1118
1184
  },
1185
+ "banDeleteWithoutWhere": {
1186
+ "description": "A DELETE statement without a WHERE clause will remove all rows from the table.",
1187
+ "anyOf": [
1188
+ {
1189
+ "$ref": "#/definitions/RuleConfiguration"
1190
+ },
1191
+ {
1192
+ "type": "null"
1193
+ }
1194
+ ]
1195
+ },
1119
1196
  "banDropColumn": {
1120
1197
  "description": "Dropping a column may break existing clients.",
1121
1198
  "anyOf": [
@@ -1149,6 +1226,17 @@
1149
1226
  }
1150
1227
  ]
1151
1228
  },
1229
+ "banDropSchema": {
1230
+ "description": "Dropping a schema will remove all objects within it and may break existing clients.",
1231
+ "anyOf": [
1232
+ {
1233
+ "$ref": "#/definitions/RuleConfiguration"
1234
+ },
1235
+ {
1236
+ "type": "null"
1237
+ }
1238
+ ]
1239
+ },
1152
1240
  "banDropTable": {
1153
1241
  "description": "Dropping a table may break existing clients.",
1154
1242
  "anyOf": [
@@ -1160,6 +1248,28 @@
1160
1248
  }
1161
1249
  ]
1162
1250
  },
1251
+ "banDropTrigger": {
1252
+ "description": "Dropping a trigger acquires an ACCESS EXCLUSIVE lock on the table.",
1253
+ "anyOf": [
1254
+ {
1255
+ "$ref": "#/definitions/RuleConfiguration"
1256
+ },
1257
+ {
1258
+ "type": "null"
1259
+ }
1260
+ ]
1261
+ },
1262
+ "banTruncate": {
1263
+ "description": "Truncating a table removes all rows and can cause data loss in production.",
1264
+ "anyOf": [
1265
+ {
1266
+ "$ref": "#/definitions/RuleConfiguration"
1267
+ },
1268
+ {
1269
+ "type": "null"
1270
+ }
1271
+ ]
1272
+ },
1163
1273
  "banTruncateCascade": {
1164
1274
  "description": "Using TRUNCATE's CASCADE option will truncate any tables that are also foreign-keyed to the specified tables.",
1165
1275
  "anyOf": [
@@ -1171,8 +1281,41 @@
1171
1281
  }
1172
1282
  ]
1173
1283
  },
1284
+ "banUpdateWithoutWhere": {
1285
+ "description": "An UPDATE statement without a WHERE clause will modify all rows in the table.",
1286
+ "anyOf": [
1287
+ {
1288
+ "$ref": "#/definitions/RuleConfiguration"
1289
+ },
1290
+ {
1291
+ "type": "null"
1292
+ }
1293
+ ]
1294
+ },
1295
+ "banVacuumFull": {
1296
+ "description": "VACUUM FULL rewrites the entire table and acquires an ACCESS EXCLUSIVE lock.",
1297
+ "anyOf": [
1298
+ {
1299
+ "$ref": "#/definitions/RuleConfiguration"
1300
+ },
1301
+ {
1302
+ "type": "null"
1303
+ }
1304
+ ]
1305
+ },
1174
1306
  "changingColumnType": {
1175
- "description": "Changing a column type may break existing clients.",
1307
+ "description": "Changing a column type may require a table rewrite and break existing clients.",
1308
+ "anyOf": [
1309
+ {
1310
+ "$ref": "#/definitions/RuleConfiguration"
1311
+ },
1312
+ {
1313
+ "type": "null"
1314
+ }
1315
+ ]
1316
+ },
1317
+ "concurrentRefreshMatviewLock": {
1318
+ "description": "REFRESH MATERIALIZED VIEW CONCURRENTLY still acquires an EXCLUSIVE lock.",
1176
1319
  "anyOf": [
1177
1320
  {
1178
1321
  "$ref": "#/definitions/RuleConfiguration"
@@ -1354,6 +1497,17 @@
1354
1497
  }
1355
1498
  ]
1356
1499
  },
1500
+ "requireConcurrentDetachPartition": {
1501
+ "description": "Detaching a partition without CONCURRENTLY acquires an ACCESS EXCLUSIVE lock.",
1502
+ "anyOf": [
1503
+ {
1504
+ "$ref": "#/definitions/RuleConfiguration"
1505
+ },
1506
+ {
1507
+ "type": "null"
1508
+ }
1509
+ ]
1510
+ },
1357
1511
  "requireConcurrentIndexCreation": {
1358
1512
  "description": "Creating indexes non-concurrently can lock the table for writes.",
1359
1513
  "anyOf": [
@@ -1376,6 +1530,61 @@
1376
1530
  }
1377
1531
  ]
1378
1532
  },
1533
+ "requireConcurrentRefreshMatview": {
1534
+ "description": "REFRESH MATERIALIZED VIEW without CONCURRENTLY acquires an ACCESS EXCLUSIVE lock.",
1535
+ "anyOf": [
1536
+ {
1537
+ "$ref": "#/definitions/RuleConfiguration"
1538
+ },
1539
+ {
1540
+ "type": "null"
1541
+ }
1542
+ ]
1543
+ },
1544
+ "requireConcurrentReindex": {
1545
+ "description": "REINDEX without CONCURRENTLY acquires an ACCESS EXCLUSIVE lock on the table.",
1546
+ "anyOf": [
1547
+ {
1548
+ "$ref": "#/definitions/RuleConfiguration"
1549
+ },
1550
+ {
1551
+ "type": "null"
1552
+ }
1553
+ ]
1554
+ },
1555
+ "requireIdleInTransactionTimeout": {
1556
+ "description": "Dangerous lock statements should be preceded by SET idle_in_transaction_session_timeout.",
1557
+ "anyOf": [
1558
+ {
1559
+ "$ref": "#/definitions/RuleConfiguration"
1560
+ },
1561
+ {
1562
+ "type": "null"
1563
+ }
1564
+ ]
1565
+ },
1566
+ "requireSeparateConstraintValidation": {
1567
+ "description": "Validating a constraint in the same transaction it was added as NOT VALID defeats the purpose.",
1568
+ "anyOf": [
1569
+ {
1570
+ "$ref": "#/definitions/RuleConfiguration"
1571
+ },
1572
+ {
1573
+ "type": "null"
1574
+ }
1575
+ ]
1576
+ },
1577
+ "requireStatementTimeout": {
1578
+ "description": "Dangerous lock statements should be preceded by SET statement_timeout.",
1579
+ "anyOf": [
1580
+ {
1581
+ "$ref": "#/definitions/RuleConfiguration"
1582
+ },
1583
+ {
1584
+ "type": "null"
1585
+ }
1586
+ ]
1587
+ },
1379
1588
  "runningStatementWhileHoldingAccessExclusive": {
1380
1589
  "description": "Running additional statements while holding an ACCESS EXCLUSIVE lock blocks all table access.",
1381
1590
  "anyOf": [