File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -187,8 +187,12 @@ class MultiWriterIdGenerator(AbstractStreamIdGenerator):
187187    Warning: Streams using this generator start at ID 2, because ID 1 is always assumed 
188188        to have been 'seen as persisted'. 
189189        Unclear if this extant behaviour is desirable for some reason. 
190-         When creating a new sequence for a new stream, 
191-         it will be necessary to use `START WITH 2`. 
190+         When creating a new sequence for a new stream, it will be necessary to advance it 
191+         so that position 1 is consumed. 
192+         DO NOT USE `START WITH 2` FOR THIS PURPOSE: 
193+             see https://github.com/element-hq/synapse/issues/18712 
194+         Instead, use `SELECT nextval('sequence_name');` immediately after the 
195+         `CREATE SEQUENCE` statement. 
192196
193197    Args: 
194198        db_conn 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments