@@ -2507,43 +2507,15 @@ CreateStmt: CREATE OptTemp TABLE qualified_name '(' OptTableElementList ')'
2507
2507
* Redundancy here is needed to avoid shift/reduce conflicts,
2508
2508
* since TEMP is not a reserved word. See also OptTempTableName.
2509
2509
*
2510
- * NOTE: we don't accept either the GLOBAL or LOCAL options: not yet implemented.
2510
+ * NOTE: we accept both GLOBAL and LOCAL options; since we have no modules
2511
+ * the LOCAL keyword is really meaningless.
2511
2512
*/
2512
2513
OptTemp : TEMPORARY { $$ = RELPERSISTENCE_TEMP; }
2513
2514
| TEMP { $$ = RELPERSISTENCE_TEMP; }
2514
- | LOCAL TEMPORARY
2515
- {
2516
- ereport (ERROR,
2517
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2518
- errmsg(" LOCAL TEMPORARY not yet implemented" ),
2519
- parser_errposition(@1 )));
2520
- $$ = RELPERSISTENCE_TEMP;
2521
- }
2522
- | LOCAL TEMP
2523
- {
2524
- ereport (ERROR,
2525
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2526
- errmsg(" LOCAL TEMPORARY not yet implemented" ),
2527
- parser_errposition(@1 )));
2528
- $$ = RELPERSISTENCE_TEMP;
2529
- }
2530
- | GLOBAL TEMPORARY
2531
- {
2532
- ereport (ERROR,
2533
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2534
- errmsg(" GLOBAL TEMPORARY not yet implemented" ),
2535
- parser_errposition(@1 )));
2536
- $$ = RELPERSISTENCE_TEMP;
2537
- }
2538
- | GLOBAL TEMP
2539
- {
2540
- ereport (ERROR,
2541
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
2542
- errmsg(" GLOBAL TEMPORARY not yet implemented" ),
2543
- parser_errposition(@1 )));
2544
- $$ = RELPERSISTENCE_TEMP;
2545
- }
2546
-
2515
+ | LOCAL TEMPORARY { $$ = RELPERSISTENCE_TEMP; }
2516
+ | LOCAL TEMP { $$ = RELPERSISTENCE_TEMP; }
2517
+ | GLOBAL TEMPORARY { $$ = RELPERSISTENCE_TEMP; }
2518
+ | GLOBAL TEMP { $$ = RELPERSISTENCE_TEMP; }
2547
2519
| UNLOGGED { $$ = RELPERSISTENCE_UNLOGGED; }
2548
2520
| /* EMPTY*/ { $$ = RELPERSISTENCE_PERMANENT; }
2549
2521
;
@@ -8949,37 +8921,21 @@ OptTempTableName:
8949
8921
| LOCAL TEMPORARY opt_table qualified_name
8950
8922
{
8951
8923
$$ = $4 ;
8952
- ereport (ERROR,
8953
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
8954
- errmsg(" LOCAL TEMPORARY not yet implemented" ),
8955
- parser_errposition(@1 )));
8956
8924
$$ ->relpersistence = RELPERSISTENCE_TEMP;
8957
8925
}
8958
8926
| LOCAL TEMP opt_table qualified_name
8959
8927
{
8960
8928
$$ = $4 ;
8961
- ereport (ERROR,
8962
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
8963
- errmsg(" LOCAL TEMPORARY not yet implemented" ),
8964
- parser_errposition(@1 )));
8965
8929
$$ ->relpersistence = RELPERSISTENCE_TEMP;
8966
8930
}
8967
8931
| GLOBAL TEMPORARY opt_table qualified_name
8968
8932
{
8969
8933
$$ = $4 ;
8970
- ereport (ERROR,
8971
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
8972
- errmsg(" GLOBAL TEMPORARY not yet implemented" ),
8973
- parser_errposition(@1 )));
8974
8934
$$ ->relpersistence = RELPERSISTENCE_TEMP;
8975
8935
}
8976
8936
| GLOBAL TEMP opt_table qualified_name
8977
8937
{
8978
8938
$$ = $4 ;
8979
- ereport (ERROR,
8980
- (errcode(ERRCODE_FEATURE_NOT_SUPPORTED),
8981
- errmsg(" GLOBAL TEMPORARY not yet implemented" ),
8982
- parser_errposition(@1 )));
8983
8939
$$ ->relpersistence = RELPERSISTENCE_TEMP;
8984
8940
}
8985
8941
| UNLOGGED opt_table qualified_name
0 commit comments