@@ -76,7 +76,7 @@ typedef struct SeqTableData
7676
7777typedef SeqTableData * SeqTable ;
7878
79- static HTAB * seqhashtab = NULL ;/* hash table for SeqTable items */
79+ static HTAB * seqhashtab = NULL ;/* hash table for SeqTable items */
8080
8181/*
8282 * last_used_seq is updated by nextval() to point to the last used
@@ -1022,16 +1022,17 @@ init_sequence(Oid relid, SeqTable *p_elm, Relation *p_rel)
10221022Relation seqrel ;
10231023bool found ;
10241024
1025+ /* Find or create a hash table entry for this sequence */
10251026if (seqhashtab == NULL )
10261027create_seq_hashtable ();
10271028
10281029elm = (SeqTable )hash_search (seqhashtab ,& relid ,HASH_ENTER ,& found );
10291030
10301031/*
1031- *Initalize the new hash table entry if it did not exist already.
1032+ *Initialize the new hash table entry if it did not exist already.
10321033 *
10331034 * NOTE: seqtable entries are stored for the life of a backend (unless
1034- *explictly discarded with DISCARD). If the sequence itself is deleted
1035+ *explicitly discarded with DISCARD). If the sequence itself is deleted
10351036 * then the entry becomes wasted memory, but it's small enough that this
10361037 * should not matter.
10371038 */