Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit54e839f

Browse files
committed
Sort syscache identifiers into alphabetical order.
Not much point in having a convention about this if we don't enforce it.Mark DilgerDiscussion:https://postgr.es/m/7F67FBEF-C3B3-404E-8EC6-E02ACB15D894@gmail.com
1 parentb4da9d0 commit54e839f

File tree

2 files changed

+58
-58
lines changed

2 files changed

+58
-58
lines changed

‎src/backend/utils/cache/syscache.c

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -606,104 +606,104 @@ static const struct cachedesc cacheinfo[] = {
606606
},
607607
128
608608
},
609-
{RangeRelationId,/*RANGETYPE */
610-
RangeTypidIndexId,
609+
{PublicationRelationId,/*PUBLICATIONNAME */
610+
PublicationNameIndexId,
611611
1,
612612
{
613-
Anum_pg_range_rngtypid,
613+
Anum_pg_publication_pubname,
614614
0,
615615
0,
616616
0
617617
},
618-
4
618+
8
619619
},
620-
{RelationRelationId,/*RELNAMENSP */
621-
ClassNameNspIndexId,
622-
2,
620+
{PublicationRelationId,/*PUBLICATIONOID */
621+
PublicationObjectIndexId,
622+
1,
623623
{
624-
Anum_pg_class_relname,
625-
Anum_pg_class_relnamespace,
624+
ObjectIdAttributeNumber,
625+
0,
626626
0,
627627
0
628628
},
629-
128
629+
8
630630
},
631-
{RelationRelationId,/*RELOID */
632-
ClassOidIndexId,
631+
{PublicationRelRelationId,/*PUBLICATIONREL */
632+
PublicationRelObjectIndexId,
633633
1,
634634
{
635635
ObjectIdAttributeNumber,
636636
0,
637637
0,
638638
0
639639
},
640-
128
640+
64
641641
},
642-
{ReplicationOriginRelationId,/*REPLORIGIDENT */
643-
ReplicationOriginIdentIndex,
644-
1,
642+
{PublicationRelRelationId,/*PUBLICATIONRELMAP */
643+
PublicationRelPrrelidPrpubidIndexId,
644+
2,
645645
{
646-
Anum_pg_replication_origin_roident,
647-
0,
646+
Anum_pg_publication_rel_prrelid,
647+
Anum_pg_publication_rel_prpubid,
648648
0,
649649
0
650650
},
651-
16
651+
64
652652
},
653-
{ReplicationOriginRelationId,/*REPLORIGNAME */
654-
ReplicationOriginNameIndex,
653+
{RangeRelationId,/*RANGETYPE */
654+
RangeTypidIndexId,
655655
1,
656656
{
657-
Anum_pg_replication_origin_roname,
657+
Anum_pg_range_rngtypid,
658658
0,
659659
0,
660660
0
661661
},
662-
16
662+
4
663663
},
664-
{PublicationRelationId,/*PUBLICATIONOID */
665-
PublicationObjectIndexId,
666-
1,
664+
{RelationRelationId,/*RELNAMENSP */
665+
ClassNameNspIndexId,
666+
2,
667667
{
668-
ObjectIdAttributeNumber,
669-
0,
668+
Anum_pg_class_relname,
669+
Anum_pg_class_relnamespace,
670670
0,
671671
0
672672
},
673-
8
673+
128
674674
},
675-
{PublicationRelationId,/*PUBLICATIONNAME */
676-
PublicationNameIndexId,
675+
{RelationRelationId,/*RELOID */
676+
ClassOidIndexId,
677677
1,
678678
{
679-
Anum_pg_publication_pubname,
679+
ObjectIdAttributeNumber,
680680
0,
681681
0,
682682
0
683683
},
684-
8
684+
128
685685
},
686-
{PublicationRelRelationId,/*PUBLICATIONREL */
687-
PublicationRelObjectIndexId,
686+
{ReplicationOriginRelationId,/*REPLORIGIDENT */
687+
ReplicationOriginIdentIndex,
688688
1,
689689
{
690-
ObjectIdAttributeNumber,
690+
Anum_pg_replication_origin_roident,
691691
0,
692692
0,
693693
0
694694
},
695-
64
695+
16
696696
},
697-
{PublicationRelRelationId,/*PUBLICATIONRELMAP */
698-
PublicationRelPrrelidPrpubidIndexId,
699-
2,
697+
{ReplicationOriginRelationId,/*REPLORIGNAME */
698+
ReplicationOriginNameIndex,
699+
1,
700700
{
701-
Anum_pg_publication_rel_prrelid,
702-
Anum_pg_publication_rel_prpubid,
701+
Anum_pg_replication_origin_roname,
702+
0,
703703
0,
704704
0
705705
},
706-
64
706+
16
707707
},
708708
{RewriteRelationId,/* RULERELNAME */
709709
RewriteRelRulenameIndexId,
@@ -760,23 +760,23 @@ static const struct cachedesc cacheinfo[] = {
760760
},
761761
128
762762
},
763-
{SubscriptionRelationId,/*SUBSCRIPTIONOID */
764-
SubscriptionObjectIndexId,
765-
1,
763+
{SubscriptionRelationId,/*SUBSCRIPTIONNAME */
764+
SubscriptionNameIndexId,
765+
2,
766766
{
767-
ObjectIdAttributeNumber,
768-
0,
767+
Anum_pg_subscription_subdbid,
768+
Anum_pg_subscription_subname,
769769
0,
770770
0
771771
},
772772
4
773773
},
774-
{SubscriptionRelationId,/*SUBSCRIPTIONNAME */
775-
SubscriptionNameIndexId,
776-
2,
774+
{SubscriptionRelationId,/*SUBSCRIPTIONOID */
775+
SubscriptionObjectIndexId,
776+
1,
777777
{
778-
Anum_pg_subscription_subdbid,
779-
Anum_pg_subscription_subname,
778+
ObjectIdAttributeNumber,
779+
0,
780780
0,
781781
0
782782
},

‎src/include/utils/syscache.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,22 +75,22 @@ enum SysCacheIdentifier
7575
PARTRELID,
7676
PROCNAMEARGSNSP,
7777
PROCOID,
78+
PUBLICATIONNAME,
79+
PUBLICATIONOID,
80+
PUBLICATIONREL,
81+
PUBLICATIONRELMAP,
7882
RANGETYPE,
7983
RELNAMENSP,
8084
RELOID,
8185
REPLORIGIDENT,
8286
REPLORIGNAME,
83-
PUBLICATIONOID,
84-
PUBLICATIONNAME,
85-
PUBLICATIONREL,
86-
PUBLICATIONRELMAP,
8787
RULERELNAME,
8888
SEQRELID,
8989
STATEXTNAMENSP,
9090
STATEXTOID,
9191
STATRELATTINH,
92-
SUBSCRIPTIONOID,
9392
SUBSCRIPTIONNAME,
93+
SUBSCRIPTIONOID,
9494
SUBSCRIPTIONRELMAP,
9595
TABLESPACEOID,
9696
TRFOID,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp