- - -   V e r i f i c a t i o n   S t a r t e d   - - - 
 
 F o u n d   t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d .   A s s i g n i n g   p a r t i c i p a n t s . . . 
 
 n o d e . e x e   :   E r r o r   a d d i n g   
 
 p a r t i c i p a n t   6 f a 3 c f 0 1 - 9 6 7 5 
 
 - 4 c f a - a 6 f 6 - d d 3 8 3 8 f 9 a 8 c f   
 
 t o   t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 
 
 a b c - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e 
 
 d :   E r r o r 
 
 A t   C : \ P r o g r a m   
 
 F i l e s \ n o d e j s \ n p x . p s 1 : 2 9   
 
 c h a r : 3 
 
 +       &   $ N O D E _ E X E   
 
 $ N P X _ C L I _ J S   $ a r g s 
 
 +       ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ 
 
 ~ ~ ~ ~ ~ ~ ~ ~ 
 
         +   C a t e g o r y I n f o               
 
               :   N o t S p e c i f i e d :       
 
     ( E r r o r   a d d i n g   p a . . . 5       
 
   0 1 6 1 d e d :   E r r o r : S t r i n         
 
 g )   [ ] ,   R e m o t e E x c e p t i         
 
 o n 
 
         +   F u l l y Q u a l i f i e d E r r o   
 
       r I d   :   N a t i v e C o m m a n d E     
 
     r r o r 
 
   
 
         a t   Q u e r y . r u n   ( C : \ l a x m 
 
 a n \ D e a l e r _ O n b o a r d \ D e a l e r _ 
 
 O n b o a r d i n g _ B a c k e n d \ n o d e _ m 
 
 o d u l e s \ s e q u e l i z e \ s r c \ d i a l 
 
 e c t s \ p o s t g r e s \ q u e r y . j s : 7 6 
 
 : 2 5 ) 
 
         a t   < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ s e q u e l i z e \ s r c \ s e 
 
 q u e l i z e . j s : 6 5 0 : 2 8 ) 
 
         a t   p r o c e s s . p r o c e s s T i c 
 
 k s A n d R e j e c t i o n s   ( n o d e : i n t 
 
 e r n a l / p r o c e s s / t a s k _ q u e u e s 
 
 : 1 0 5 : 5 ) 
 
         a t   a s y n c   P o s t g r e s Q u e r 
 
 y I n t e r f a c e . i n s e r t   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ s e q u e l i z e \ s r c \ d i a 
 
 l e c t s \ a b s t r a c t \ q u e r y - i n t e 
 
 r f a c e . j s : 7 9 5 : 2 1 ) 
 
         a t   a s y n c   m o d e l . s a v e   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ n o d e _ m o d u l e s \ s e q u e l i z e \ s 
 
 r c \ m o d e l . j s : 4 1 5 4 : 3 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . c r e a t e   ( C : \ l a x m a 
 
 n \ D e a l e r _ O n b o a r d \ D e a l e r _ O 
 
 n b o a r d i n g _ B a c k e n d \ n o d e _ m o 
 
 d u l e s \ s e q u e l i z e \ s r c \ m o d e l 
 
 . j s : 2 3 0 5 : 1 2 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . f i n d O r C r e a t e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ s e q u e l i z e \ s r c 
 
 \ m o d e l . j s : 2 4 1 7 : 2 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . a d d P a r t i c i p a n t   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ s r c \ s e r v i c e s \ P a r t i c i p a n t 
 
 S e r v i c e . t s : 2 3 : 1 3 ) 
 
         a t   a s y n c   F u n c t i o n . a s s 
 
 i g n T e r m i n a t i o n P a r t i c i p a n t 
 
 s   ( C : \ l a x m a n \ D e a l e r _ O n b o a 
 
 r d \ D e a l e r _ O n b o a r d i n g _ B a c k 
 
 e n d \ s r c \ s e r v i c e s \ P a r t i c i p 
 
 a n t S e r v i c e . t s : 1 0 7 : 1 7 ) 
 
         a t   a s y n c   v e r i f y   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ v e r 
 
 i f y _ p a r t i c i p a n t s _ l o g i c . t s 
 
 : 1 2 : 1 3 )   { 
 
     n a m e :   ' S e q u e l i z e F o r e i g n 
 
 K e y C o n s t r a i n t E r r o r ' , 
 
     p a r e n t :   e r r o r :   i n s e r t   
 
 o r   u p d a t e   o n   t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 1 8 a 8 c 4 9 1 
 
 - 8 2 b 3 - 4 4 1 6 - 8 6 8 3 - c e 1 7 7 d 8 b 5 
 
 b 3 e ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 6 f a 3 c f 0 1 - 9 6 7 5 - 4 c 
 
 f a - a 6 f 6 - d d 3 8 3 8 f 9 a 8 c f ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 8 7 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 0 6 d c c 0 b 5 8 
 
 5 5 5 4 b 7 6 b 2 a e f 1 e 3 8 1 d 0 f b 3 a $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 1 8 a 8 c 4 9 1 
 
 - 8 2 b 3 - 4 4 1 6 - 8 6 8 3 - c e 1 7 7 d 8 b 5 
 
 b 3 e ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 6 f a 3 c f 0 1 - 9 6 7 5 - 4 c 
 
 f a - a 6 f 6 - d d 3 8 3 8 f 9 a 8 c f ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 8 7 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 0 6 d c c 0 b 5 8 5 5 5 4 b 7 
 
 6 b 2 a e f 1 e 3 8 1 d 0 f b 3 a $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     o r i g i n a l :   e r r o r :   
 
 i n s e r t   o r   u p d a t e   o n   
 
 t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 1 8 a 8 c 4 9 1 
 
 - 8 2 b 3 - 4 4 1 6 - 8 6 8 3 - c e 1 7 7 d 8 b 5 
 
 b 3 e ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 6 f a 3 c f 0 1 - 9 6 7 5 - 4 c 
 
 f a - a 6 f 6 - d d 3 8 3 8 f 9 a 8 c f ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 8 7 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 0 6 d c c 0 b 5 8 
 
 5 5 5 4 b 7 6 b 2 a e f 1 e 3 8 1 d 0 f b 3 a $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 1 8 a 8 c 4 9 1 
 
 - 8 2 b 3 - 4 4 1 6 - 8 6 8 3 - c e 1 7 7 d 8 b 5 
 
 b 3 e ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 6 f a 3 c f 0 1 - 9 6 7 5 - 4 c 
 
 f a - a 6 f 6 - d d 3 8 3 8 f 9 a 8 c f ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 8 7 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 0 6 d c c 0 b 5 8 5 5 5 4 b 7 
 
 6 b 2 a e f 1 e 3 8 1 d 0 f b 3 a $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 0 6 d c c 0 b 5 8 
 
 5 5 5 4 b 7 6 b 2 a e f 1 e 3 8 1 d 0 f b 3 a $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 1 8 a 8 c 4 9 1 
 
 - 8 2 b 3 - 4 4 1 6 - 8 6 8 3 - c e 1 7 7 d 8 b 5 
 
 b 3 e ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 6 f a 3 c f 0 1 - 9 6 7 5 - 4 c 
 
 f a - a 6 f 6 - d d 3 8 3 8 f 9 a 8 c f ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 8 7 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 8 8 0   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 0 6 d c c 0 b 5 8 5 5 5 4 b 7 
 
 6 b 2 a e f 1 e 3 8 1 d 0 f b 3 a $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
     p a r a m e t e r s :   { } , 
 
     t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
     f i e l d s :   n u l l , 
 
     v a l u e :   u n d e f i n e d , 
 
     i n d e x :   ' r e q u e s t _ p a r t i c i 
 
 p a n t s _ r e q u e s t I d _ f k e y ' , 
 
     r e l t y p e :   u n d e f i n e d 
 
 } 
 
 E r r o r   a d d i n g   p a r t i c i p a n t   
 
 b d 4 3 4 a 3 b - 9 7 f e - 4 5 2 a - b 1 9 6 - d 
 
 6 a a 9 a 1 3 8 8 6 8   t o   
 
 t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 a b c 
 
 - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d :   
 
 E r r o r 
 
         a t   Q u e r y . r u n   ( C : \ l a x m 
 
 a n \ D e a l e r _ O n b o a r d \ D e a l e r _ 
 
 O n b o a r d i n g _ B a c k e n d \ n o d e _ m 
 
 o d u l e s \ s e q u e l i z e \ s r c \ d i a l 
 
 e c t s \ p o s t g r e s \ q u e r y . j s : 7 6 
 
 : 2 5 ) 
 
         a t   < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ s e q u e l i z e \ s r c \ s e 
 
 q u e l i z e . j s : 6 5 0 : 2 8 ) 
 
         a t   p r o c e s s . p r o c e s s T i c 
 
 k s A n d R e j e c t i o n s   ( n o d e : i n t 
 
 e r n a l / p r o c e s s / t a s k _ q u e u e s 
 
 : 1 0 5 : 5 ) 
 
         a t   a s y n c   P o s t g r e s Q u e r 
 
 y I n t e r f a c e . i n s e r t   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ s e q u e l i z e \ s r c \ d i a 
 
 l e c t s \ a b s t r a c t \ q u e r y - i n t e 
 
 r f a c e . j s : 7 9 5 : 2 1 ) 
 
         a t   a s y n c   m o d e l . s a v e   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ n o d e _ m o d u l e s \ s e q u e l i z e \ s 
 
 r c \ m o d e l . j s : 4 1 5 4 : 3 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . c r e a t e   ( C : \ l a x m a 
 
 n \ D e a l e r _ O n b o a r d \ D e a l e r _ O 
 
 n b o a r d i n g _ B a c k e n d \ n o d e _ m o 
 
 d u l e s \ s e q u e l i z e \ s r c \ m o d e l 
 
 . j s : 2 3 0 5 : 1 2 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . f i n d O r C r e a t e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ s e q u e l i z e \ s r c 
 
 \ m o d e l . j s : 2 4 1 7 : 2 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . a d d P a r t i c i p a n t   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ s r c \ s e r v i c e s \ P a r t i c i p a n t 
 
 S e r v i c e . t s : 2 3 : 1 3 ) 
 
         a t   a s y n c   F u n c t i o n . a s s 
 
 i g n T e r m i n a t i o n P a r t i c i p a n t 
 
 s   ( C : \ l a x m a n \ D e a l e r _ O n b o a 
 
 r d \ D e a l e r _ O n b o a r d i n g _ B a c k 
 
 e n d \ s r c \ s e r v i c e s \ P a r t i c i p 
 
 a n t S e r v i c e . t s : 1 0 7 : 1 7 ) 
 
         a t   a s y n c   v e r i f y   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ v e r 
 
 i f y _ p a r t i c i p a n t s _ l o g i c . t s 
 
 : 1 2 : 1 3 )   { 
 
     n a m e :   ' S e q u e l i z e F o r e i g n 
 
 K e y C o n s t r a i n t E r r o r ' , 
 
     p a r e n t :   e r r o r :   i n s e r t   
 
 o r   u p d a t e   o n   t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 f 7 d d 3 4 c 
 
 - 3 3 2 7 - 4 7 6 a - a b e d - 8 1 e 6 e 4 0 0 8 
 
 d f a ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b d 4 3 4 a 3 b - 9 7 f e - 4 5 
 
 2 a - b 1 9 6 - d 6 a a 9 a 1 3 8 8 6 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 6 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 2 d 8 d 0 2 0 0 8 
 
 2 e 8 4 9 a 9 b 6 0 3 2 9 6 d 0 7 9 0 3 4 5 a $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 f 7 d d 3 4 c 
 
 - 3 3 2 7 - 4 7 6 a - a b e d - 8 1 e 6 e 4 0 0 8 
 
 d f a ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b d 4 3 4 a 3 b - 9 7 f e - 4 5 
 
 2 a - b 1 9 6 - d 6 a a 9 a 1 3 8 8 6 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 6 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 2 d 8 d 0 2 0 0 8 2 e 8 4 9 a 
 
 9 b 6 0 3 2 9 6 d 0 7 9 0 3 4 5 a $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     o r i g i n a l :   e r r o r :   
 
 i n s e r t   o r   u p d a t e   o n   
 
 t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 f 7 d d 3 4 c 
 
 - 3 3 2 7 - 4 7 6 a - a b e d - 8 1 e 6 e 4 0 0 8 
 
 d f a ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b d 4 3 4 a 3 b - 9 7 f e - 4 5 
 
 2 a - b 1 9 6 - d 6 a a 9 a 1 3 8 8 6 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 6 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 2 d 8 d 0 2 0 0 8 
 
 2 e 8 4 9 a 9 b 6 0 3 2 9 6 d 0 7 9 0 3 4 5 a $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 f 7 d d 3 4 c 
 
 - 3 3 2 7 - 4 7 6 a - a b e d - 8 1 e 6 e 4 0 0 8 
 
 d f a ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b d 4 3 4 a 3 b - 9 7 f e - 4 5 
 
 2 a - b 1 9 6 - d 6 a a 9 a 1 3 8 8 6 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 6 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 2 d 8 d 0 2 0 0 8 2 e 8 4 9 a 
 
 9 b 6 0 3 2 9 6 d 0 7 9 0 3 4 5 a $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 2 d 8 d 0 2 0 0 8 
 
 2 e 8 4 9 a 9 b 6 0 3 2 9 6 d 0 7 9 0 3 4 5 a $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 f 7 d d 3 4 c 
 
 - 3 3 2 7 - 4 7 6 a - a b e d - 8 1 e 6 e 4 0 0 8 
 
 d f a ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b d 4 3 4 a 3 b - 9 7 f e - 4 5 
 
 2 a - b 1 9 6 - d 6 a a 9 a 1 3 8 8 6 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 6 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 6 7   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 2 d 8 d 0 2 0 0 8 2 e 8 4 9 a 
 
 9 b 6 0 3 2 9 6 d 0 7 9 0 3 4 5 a $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
     p a r a m e t e r s :   { } , 
 
     t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
     f i e l d s :   n u l l , 
 
     v a l u e :   u n d e f i n e d , 
 
     i n d e x :   ' r e q u e s t _ p a r t i c i 
 
 p a n t s _ r e q u e s t I d _ f k e y ' , 
 
     r e l t y p e :   u n d e f i n e d 
 
 } 
 
 E r r o r   a d d i n g   p a r t i c i p a n t   
 
 5 b 8 0 4 f 8 5 - 4 3 2 e - 4 8 b 7 - b 8 8 0 - 0 
 
 a 4 e 7 6 c e 3 a 7 9   t o   
 
 t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 a b c 
 
 - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d :   
 
 E r r o r 
 
         a t   Q u e r y . r u n   ( C : \ l a x m 
 
 a n \ D e a l e r _ O n b o a r d \ D e a l e r _ 
 
 O n b o a r d i n g _ B a c k e n d \ n o d e _ m 
 
 o d u l e s \ s e q u e l i z e \ s r c \ d i a l 
 
 e c t s \ p o s t g r e s \ q u e r y . j s : 7 6 
 
 : 2 5 ) 
 
         a t   < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ s e q u e l i z e \ s r c \ s e 
 
 q u e l i z e . j s : 6 5 0 : 2 8 ) 
 
         a t   p r o c e s s . p r o c e s s T i c 
 
 k s A n d R e j e c t i o n s   ( n o d e : i n t 
 
 e r n a l / p r o c e s s / t a s k _ q u e u e s 
 
 : 1 0 5 : 5 ) 
 
         a t   a s y n c   P o s t g r e s Q u e r 
 
 y I n t e r f a c e . i n s e r t   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ s e q u e l i z e \ s r c \ d i a 
 
 l e c t s \ a b s t r a c t \ q u e r y - i n t e 
 
 r f a c e . j s : 7 9 5 : 2 1 ) 
 
         a t   a s y n c   m o d e l . s a v e   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ n o d e _ m o d u l e s \ s e q u e l i z e \ s 
 
 r c \ m o d e l . j s : 4 1 5 4 : 3 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . c r e a t e   ( C : \ l a x m a 
 
 n \ D e a l e r _ O n b o a r d \ D e a l e r _ O 
 
 n b o a r d i n g _ B a c k e n d \ n o d e _ m o 
 
 d u l e s \ s e q u e l i z e \ s r c \ m o d e l 
 
 . j s : 2 3 0 5 : 1 2 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . f i n d O r C r e a t e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ s e q u e l i z e \ s r c 
 
 \ m o d e l . j s : 2 4 1 7 : 2 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . a d d P a r t i c i p a n t   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ s r c \ s e r v i c e s \ P a r t i c i p a n t 
 
 S e r v i c e . t s : 2 3 : 1 3 ) 
 
         a t   a s y n c   F u n c t i o n . a s s 
 
 i g n T e r m i n a t i o n P a r t i c i p a n t 
 
 s   ( C : \ l a x m a n \ D e a l e r _ O n b o a 
 
 r d \ D e a l e r _ O n b o a r d i n g _ B a c k 
 
 e n d \ s r c \ s e r v i c e s \ P a r t i c i p 
 
 a n t S e r v i c e . t s : 1 0 7 : 1 7 ) 
 
         a t   a s y n c   v e r i f y   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ v e r 
 
 i f y _ p a r t i c i p a n t s _ l o g i c . t s 
 
 : 1 2 : 1 3 )   { 
 
     n a m e :   ' S e q u e l i z e F o r e i g n 
 
 K e y C o n s t r a i n t E r r o r ' , 
 
     p a r e n t :   e r r o r :   i n s e r t   
 
 o r   u p d a t e   o n   t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 9 1 3 9 5 2 b 
 
 - 8 5 3 2 - 4 4 8 0 - b c 1 0 - c b 8 6 f c e 7 e 
 
 6 0 b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 0 4 f 8 5 - 4 3 2 e - 4 8 
 
 b 7 - b 8 8 0 - 0 a 4 e 7 6 c e 3 a 7 9 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 7 4 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ d b 5 d 2 b 0 0 8 
 
 3 a e 4 4 e 6 9 6 4 6 4 c d c 0 9 3 b d c 5 5 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 9 1 3 9 5 2 b 
 
 - 8 5 3 2 - 4 4 8 0 - b c 1 0 - c b 8 6 f c e 7 e 
 
 6 0 b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 0 4 f 8 5 - 4 3 2 e - 4 8 
 
 b 7 - b 8 8 0 - 0 a 4 e 7 6 c e 3 a 7 9 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 7 4 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ d b 5 d 2 b 0 0 8 3 a e 4 4 e 
 
 6 9 6 4 6 4 c d c 0 9 3 b d c 5 5 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     o r i g i n a l :   e r r o r :   
 
 i n s e r t   o r   u p d a t e   o n   
 
 t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 9 1 3 9 5 2 b 
 
 - 8 5 3 2 - 4 4 8 0 - b c 1 0 - c b 8 6 f c e 7 e 
 
 6 0 b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 0 4 f 8 5 - 4 3 2 e - 4 8 
 
 b 7 - b 8 8 0 - 0 a 4 e 7 6 c e 3 a 7 9 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 7 4 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ d b 5 d 2 b 0 0 8 
 
 3 a e 4 4 e 6 9 6 4 6 4 c d c 0 9 3 b d c 5 5 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 9 1 3 9 5 2 b 
 
 - 8 5 3 2 - 4 4 8 0 - b c 1 0 - c b 8 6 f c e 7 e 
 
 6 0 b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 0 4 f 8 5 - 4 3 2 e - 4 8 
 
 b 7 - b 8 8 0 - 0 a 4 e 7 6 c e 3 a 7 9 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 7 4 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ d b 5 d 2 b 0 0 8 3 a e 4 4 e 
 
 6 9 6 4 6 4 c d c 0 9 3 b d c 5 5 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ d b 5 d 2 b 0 0 8 
 
 3 a e 4 4 e 6 9 6 4 6 4 c d c 0 9 3 b d c 5 5 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 9 1 3 9 5 2 b 
 
 - 8 5 3 2 - 4 4 8 0 - b c 1 0 - c b 8 6 f c e 7 e 
 
 6 0 b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 0 4 f 8 5 - 4 3 2 e - 4 8 
 
 b 7 - b 8 8 0 - 0 a 4 e 7 6 c e 3 a 7 9 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 1 . 9 7 4 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 1 . 9 7 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ d b 5 d 2 b 0 0 8 3 a e 4 4 e 
 
 6 9 6 4 6 4 c d c 0 9 3 b d c 5 5 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
     p a r a m e t e r s :   { } , 
 
     t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
     f i e l d s :   n u l l , 
 
     v a l u e :   u n d e f i n e d , 
 
     i n d e x :   ' r e q u e s t _ p a r t i c i 
 
 p a n t s _ r e q u e s t I d _ f k e y ' , 
 
     r e l t y p e :   u n d e f i n e d 
 
 } 
 
 E r r o r   a d d i n g   p a r t i c i p a n t   
 
 5 b 8 b e 4 7 6 - 5 a 0 2 - 4 1 c 6 - 8 e 6 2 - 1 
 
 f 3 9 9 2 2 9 2 e b 6   t o   
 
 t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 a b c 
 
 - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d :   
 
 E r r o r 
 
         a t   Q u e r y . r u n   ( C : \ l a x m 
 
 a n \ D e a l e r _ O n b o a r d \ D e a l e r _ 
 
 O n b o a r d i n g _ B a c k e n d \ n o d e _ m 
 
 o d u l e s \ s e q u e l i z e \ s r c \ d i a l 
 
 e c t s \ p o s t g r e s \ q u e r y . j s : 7 6 
 
 : 2 5 ) 
 
         a t   < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ s e q u e l i z e \ s r c \ s e 
 
 q u e l i z e . j s : 6 5 0 : 2 8 ) 
 
         a t   p r o c e s s . p r o c e s s T i c 
 
 k s A n d R e j e c t i o n s   ( n o d e : i n t 
 
 e r n a l / p r o c e s s / t a s k _ q u e u e s 
 
 : 1 0 5 : 5 ) 
 
         a t   a s y n c   P o s t g r e s Q u e r 
 
 y I n t e r f a c e . i n s e r t   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ s e q u e l i z e \ s r c \ d i a 
 
 l e c t s \ a b s t r a c t \ q u e r y - i n t e 
 
 r f a c e . j s : 7 9 5 : 2 1 ) 
 
         a t   a s y n c   m o d e l . s a v e   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ n o d e _ m o d u l e s \ s e q u e l i z e \ s 
 
 r c \ m o d e l . j s : 4 1 5 4 : 3 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . c r e a t e   ( C : \ l a x m a 
 
 n \ D e a l e r _ O n b o a r d \ D e a l e r _ O 
 
 n b o a r d i n g _ B a c k e n d \ n o d e _ m o 
 
 d u l e s \ s e q u e l i z e \ s r c \ m o d e l 
 
 . j s : 2 3 0 5 : 1 2 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . f i n d O r C r e a t e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ s e q u e l i z e \ s r c 
 
 \ m o d e l . j s : 2 4 1 7 : 2 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . a d d P a r t i c i p a n t   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ s r c \ s e r v i c e s \ P a r t i c i p a n t 
 
 S e r v i c e . t s : 2 3 : 1 3 ) 
 
         a t   a s y n c   F u n c t i o n . a s s 
 
 i g n T e r m i n a t i o n P a r t i c i p a n t 
 
 s   ( C : \ l a x m a n \ D e a l e r _ O n b o a 
 
 r d \ D e a l e r _ O n b o a r d i n g _ B a c k 
 
 e n d \ s r c \ s e r v i c e s \ P a r t i c i p 
 
 a n t S e r v i c e . t s : 1 0 7 : 1 7 ) 
 
         a t   a s y n c   v e r i f y   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ v e r 
 
 i f y _ p a r t i c i p a n t s _ l o g i c . t s 
 
 : 1 2 : 1 3 )   { 
 
     n a m e :   ' S e q u e l i z e F o r e i g n 
 
 K e y C o n s t r a i n t E r r o r ' , 
 
     p a r e n t :   e r r o r :   i n s e r t   
 
 o r   u p d a t e   o n   t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 0 8 b 0 d 1 e 
 
 - d 6 1 6 - 4 a c 0 - 8 e 0 2 - 1 9 a d c a 1 2 f 
 
 3 2 c ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 b e 4 7 6 - 5 a 0 2 - 4 1 
 
 c 6 - 8 e 6 2 - 1 f 3 9 9 2 2 9 2 e b 6 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 3 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ f 4 e 4 3 a 9 f 4 
 
 d 8 b 4 b a e 8 9 0 8 d 3 9 7 7 2 5 4 8 9 1 8 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 0 8 b 0 d 1 e 
 
 - d 6 1 6 - 4 a c 0 - 8 e 0 2 - 1 9 a d c a 1 2 f 
 
 3 2 c ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 b e 4 7 6 - 5 a 0 2 - 4 1 
 
 c 6 - 8 e 6 2 - 1 f 3 9 9 2 2 9 2 e b 6 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 3 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ f 4 e 4 3 a 9 f 4 d 8 b 4 b a 
 
 e 8 9 0 8 d 3 9 7 7 2 5 4 8 9 1 8 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     o r i g i n a l :   e r r o r :   
 
 i n s e r t   o r   u p d a t e   o n   
 
 t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 0 8 b 0 d 1 e 
 
 - d 6 1 6 - 4 a c 0 - 8 e 0 2 - 1 9 a d c a 1 2 f 
 
 3 2 c ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 b e 4 7 6 - 5 a 0 2 - 4 1 
 
 c 6 - 8 e 6 2 - 1 f 3 9 9 2 2 9 2 e b 6 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 3 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ f 4 e 4 3 a 9 f 4 
 
 d 8 b 4 b a e 8 9 0 8 d 3 9 7 7 2 5 4 8 9 1 8 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 0 8 b 0 d 1 e 
 
 - d 6 1 6 - 4 a c 0 - 8 e 0 2 - 1 9 a d c a 1 2 f 
 
 3 2 c ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 b e 4 7 6 - 5 a 0 2 - 4 1 
 
 c 6 - 8 e 6 2 - 1 f 3 9 9 2 2 9 2 e b 6 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 3 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ f 4 e 4 3 a 9 f 4 d 8 b 4 b a 
 
 e 8 9 0 8 d 3 9 7 7 2 5 4 8 9 1 8 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ f 4 e 4 3 a 9 f 4 
 
 d 8 b 4 b a e 8 9 0 8 d 3 9 7 7 2 5 4 8 9 1 8 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' b 0 8 b 0 d 1 e 
 
 - d 6 1 6 - 4 a c 0 - 8 e 0 2 - 1 9 a d c a 1 2 f 
 
 3 2 c ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 5 b 8 b e 4 7 6 - 5 a 0 2 - 4 1 
 
 c 6 - 8 e 6 2 - 1 f 3 9 9 2 2 9 2 e b 6 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 3 3 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 3 6   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ f 4 e 4 3 a 9 f 4 d 8 b 4 b a 
 
 e 8 9 0 8 d 3 9 7 7 2 5 4 8 9 1 8 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
     p a r a m e t e r s :   { } , 
 
     t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
     f i e l d s :   n u l l , 
 
     v a l u e :   u n d e f i n e d , 
 
     i n d e x :   ' r e q u e s t _ p a r t i c i 
 
 p a n t s _ r e q u e s t I d _ f k e y ' , 
 
     r e l t y p e :   u n d e f i n e d 
 
 } 
 
 E r r o r   a d d i n g   p a r t i c i p a n t   
 
 e 6 8 5 d 4 e 3 - d 2 b 1 - 4 9 5 b - b e 9 1 - e 
 
 2 9 a 1 6 f b 0 b 0 b   t o   
 
 t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 a b c 
 
 - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d :   
 
 E r r o r 
 
         a t   Q u e r y . r u n   ( C : \ l a x m 
 
 a n \ D e a l e r _ O n b o a r d \ D e a l e r _ 
 
 O n b o a r d i n g _ B a c k e n d \ n o d e _ m 
 
 o d u l e s \ s e q u e l i z e \ s r c \ d i a l 
 
 e c t s \ p o s t g r e s \ q u e r y . j s : 7 6 
 
 : 2 5 ) 
 
         a t   < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ s e q u e l i z e \ s r c \ s e 
 
 q u e l i z e . j s : 6 5 0 : 2 8 ) 
 
         a t   p r o c e s s . p r o c e s s T i c 
 
 k s A n d R e j e c t i o n s   ( n o d e : i n t 
 
 e r n a l / p r o c e s s / t a s k _ q u e u e s 
 
 : 1 0 5 : 5 ) 
 
         a t   a s y n c   P o s t g r e s Q u e r 
 
 y I n t e r f a c e . i n s e r t   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ s e q u e l i z e \ s r c \ d i a 
 
 l e c t s \ a b s t r a c t \ q u e r y - i n t e 
 
 r f a c e . j s : 7 9 5 : 2 1 ) 
 
         a t   a s y n c   m o d e l . s a v e   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ n o d e _ m o d u l e s \ s e q u e l i z e \ s 
 
 r c \ m o d e l . j s : 4 1 5 4 : 3 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . c r e a t e   ( C : \ l a x m a 
 
 n \ D e a l e r _ O n b o a r d \ D e a l e r _ O 
 
 n b o a r d i n g _ B a c k e n d \ n o d e _ m o 
 
 d u l e s \ s e q u e l i z e \ s r c \ m o d e l 
 
 . j s : 2 3 0 5 : 1 2 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . f i n d O r C r e a t e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ s e q u e l i z e \ s r c 
 
 \ m o d e l . j s : 2 4 1 7 : 2 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . a d d P a r t i c i p a n t   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ s r c \ s e r v i c e s \ P a r t i c i p a n t 
 
 S e r v i c e . t s : 2 3 : 1 3 ) 
 
         a t   a s y n c   F u n c t i o n . a s s 
 
 i g n T e r m i n a t i o n P a r t i c i p a n t 
 
 s   ( C : \ l a x m a n \ D e a l e r _ O n b o a 
 
 r d \ D e a l e r _ O n b o a r d i n g _ B a c k 
 
 e n d \ s r c \ s e r v i c e s \ P a r t i c i p 
 
 a n t S e r v i c e . t s : 1 0 7 : 1 7 ) 
 
         a t   a s y n c   v e r i f y   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ v e r 
 
 i f y _ p a r t i c i p a n t s _ l o g i c . t s 
 
 : 1 2 : 1 3 )   { 
 
     n a m e :   ' S e q u e l i z e F o r e i g n 
 
 K e y C o n s t r a i n t E r r o r ' , 
 
     p a r e n t :   e r r o r :   i n s e r t   
 
 o r   u p d a t e   o n   t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 7 b 5 4 5 a a b 
 
 - b 2 0 9 - 4 4 2 e - 8 e 6 5 - 3 5 0 d 4 d 2 9 9 
 
 4 b b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' e 6 8 5 d 4 e 3 - d 2 b 1 - 4 9 
 
 5 b - b e 9 1 - e 2 9 a 1 6 f b 0 b 0 b ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 4 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ d a 5 3 7 d a 6 5 
 
 4 6 1 4 4 6 1 b 3 7 8 c e f 1 a 0 5 d 3 c f 1 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 7 b 5 4 5 a a b 
 
 - b 2 0 9 - 4 4 2 e - 8 e 6 5 - 3 5 0 d 4 d 2 9 9 
 
 4 b b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' e 6 8 5 d 4 e 3 - d 2 b 1 - 4 9 
 
 5 b - b e 9 1 - e 2 9 a 1 6 f b 0 b 0 b ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 4 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ d a 5 3 7 d a 6 5 4 6 1 4 4 6 
 
 1 b 3 7 8 c e f 1 a 0 5 d 3 c f 1 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     o r i g i n a l :   e r r o r :   
 
 i n s e r t   o r   u p d a t e   o n   
 
 t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 7 b 5 4 5 a a b 
 
 - b 2 0 9 - 4 4 2 e - 8 e 6 5 - 3 5 0 d 4 d 2 9 9 
 
 4 b b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' e 6 8 5 d 4 e 3 - d 2 b 1 - 4 9 
 
 5 b - b e 9 1 - e 2 9 a 1 6 f b 0 b 0 b ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 4 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ d a 5 3 7 d a 6 5 
 
 4 6 1 4 4 6 1 b 3 7 8 c e f 1 a 0 5 d 3 c f 1 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 7 b 5 4 5 a a b 
 
 - b 2 0 9 - 4 4 2 e - 8 e 6 5 - 3 5 0 d 4 d 2 9 9 
 
 4 b b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' e 6 8 5 d 4 e 3 - d 2 b 1 - 4 9 
 
 5 b - b e 9 1 - e 2 9 a 1 6 f b 0 b 0 b ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 4 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ d a 5 3 7 d a 6 5 4 6 1 4 4 6 
 
 1 b 3 7 8 c e f 1 a 0 5 d 3 c f 1 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ d a 5 3 7 d a 6 5 
 
 4 6 1 4 4 6 1 b 3 7 8 c e f 1 a 0 5 d 3 c f 1 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 7 b 5 4 5 a a b 
 
 - b 2 0 9 - 4 4 2 e - 8 e 6 5 - 3 5 0 d 4 d 2 9 9 
 
 4 b b ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' e 6 8 5 d 4 e 3 - d 2 b 1 - 4 9 
 
 5 b - b e 9 1 - e 2 9 a 1 6 f b 0 b 0 b ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 4 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 4 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ d a 5 3 7 d a 6 5 4 6 1 4 4 6 
 
 1 b 3 7 8 c e f 1 a 0 5 d 3 c f 1 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
     p a r a m e t e r s :   { } , 
 
     t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
     f i e l d s :   n u l l , 
 
     v a l u e :   u n d e f i n e d , 
 
     i n d e x :   ' r e q u e s t _ p a r t i c i 
 
 p a n t s _ r e q u e s t I d _ f k e y ' , 
 
     r e l t y p e :   u n d e f i n e d 
 
 } 
 
 E r r o r   a d d i n g   p a r t i c i p a n t   
 
 b a 3 e 4 a 2 9 - 7 c 3 1 - 4 7 0 9 - 9 c 8 6 - 2 
 
 6 5 4 5 7 b 0 7 d 0 8   t o   
 
 t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 a b c 
 
 - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d :   
 
 E r r o r 
 
         a t   Q u e r y . r u n   ( C : \ l a x m 
 
 a n \ D e a l e r _ O n b o a r d \ D e a l e r _ 
 
 O n b o a r d i n g _ B a c k e n d \ n o d e _ m 
 
 o d u l e s \ s e q u e l i z e \ s r c \ d i a l 
 
 e c t s \ p o s t g r e s \ q u e r y . j s : 7 6 
 
 : 2 5 ) 
 
         a t   < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ s e q u e l i z e \ s r c \ s e 
 
 q u e l i z e . j s : 6 5 0 : 2 8 ) 
 
         a t   p r o c e s s . p r o c e s s T i c 
 
 k s A n d R e j e c t i o n s   ( n o d e : i n t 
 
 e r n a l / p r o c e s s / t a s k _ q u e u e s 
 
 : 1 0 5 : 5 ) 
 
         a t   a s y n c   P o s t g r e s Q u e r 
 
 y I n t e r f a c e . i n s e r t   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ s e q u e l i z e \ s r c \ d i a 
 
 l e c t s \ a b s t r a c t \ q u e r y - i n t e 
 
 r f a c e . j s : 7 9 5 : 2 1 ) 
 
         a t   a s y n c   m o d e l . s a v e   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ n o d e _ m o d u l e s \ s e q u e l i z e \ s 
 
 r c \ m o d e l . j s : 4 1 5 4 : 3 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . c r e a t e   ( C : \ l a x m a 
 
 n \ D e a l e r _ O n b o a r d \ D e a l e r _ O 
 
 n b o a r d i n g _ B a c k e n d \ n o d e _ m o 
 
 d u l e s \ s e q u e l i z e \ s r c \ m o d e l 
 
 . j s : 2 3 0 5 : 1 2 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . f i n d O r C r e a t e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ s e q u e l i z e \ s r c 
 
 \ m o d e l . j s : 2 4 1 7 : 2 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . a d d P a r t i c i p a n t   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ s r c \ s e r v i c e s \ P a r t i c i p a n t 
 
 S e r v i c e . t s : 2 3 : 1 3 ) 
 
         a t   a s y n c   F u n c t i o n . a s s 
 
 i g n T e r m i n a t i o n P a r t i c i p a n t 
 
 s   ( C : \ l a x m a n \ D e a l e r _ O n b o a 
 
 r d \ D e a l e r _ O n b o a r d i n g _ B a c k 
 
 e n d \ s r c \ s e r v i c e s \ P a r t i c i p 
 
 a n t S e r v i c e . t s : 1 0 7 : 1 7 ) 
 
         a t   a s y n c   v e r i f y   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ v e r 
 
 i f y _ p a r t i c i p a n t s _ l o g i c . t s 
 
 : 1 2 : 1 3 )   { 
 
     n a m e :   ' S e q u e l i z e F o r e i g n 
 
 K e y C o n s t r a i n t E r r o r ' , 
 
     p a r e n t :   e r r o r :   i n s e r t   
 
 o r   u p d a t e   o n   t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 2 8 1 a 5 8 3 7 
 
 - b 5 c 6 - 4 f 1 5 - a 8 6 8 - c 4 4 7 1 9 3 9 2 
 
 4 c f ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b a 3 e 4 a 2 9 - 7 c 3 1 - 4 7 
 
 0 9 - 9 c 8 6 - 2 6 5 4 5 7 b 0 7 d 0 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 6 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ d 7 3 b 9 9 2 e c 
 
 f 9 8 4 0 9 8 b 3 0 8 5 8 3 5 5 1 6 3 6 c f f $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 2 8 1 a 5 8 3 7 
 
 - b 5 c 6 - 4 f 1 5 - a 8 6 8 - c 4 4 7 1 9 3 9 2 
 
 4 c f ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b a 3 e 4 a 2 9 - 7 c 3 1 - 4 7 
 
 0 9 - 9 c 8 6 - 2 6 5 4 5 7 b 0 7 d 0 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 6 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ d 7 3 b 9 9 2 e c f 9 8 4 0 9 
 
 8 b 3 0 8 5 8 3 5 5 1 6 3 6 c f f $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     o r i g i n a l :   e r r o r :   
 
 i n s e r t   o r   u p d a t e   o n   
 
 t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 2 8 1 a 5 8 3 7 
 
 - b 5 c 6 - 4 f 1 5 - a 8 6 8 - c 4 4 7 1 9 3 9 2 
 
 4 c f ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b a 3 e 4 a 2 9 - 7 c 3 1 - 4 7 
 
 0 9 - 9 c 8 6 - 2 6 5 4 5 7 b 0 7 d 0 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 6 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ d 7 3 b 9 9 2 e c 
 
 f 9 8 4 0 9 8 b 3 0 8 5 8 3 5 5 1 6 3 6 c f f $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 2 8 1 a 5 8 3 7 
 
 - b 5 c 6 - 4 f 1 5 - a 8 6 8 - c 4 4 7 1 9 3 9 2 
 
 4 c f ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b a 3 e 4 a 2 9 - 7 c 3 1 - 4 7 
 
 0 9 - 9 c 8 6 - 2 6 5 4 5 7 b 0 7 d 0 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 6 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ d 7 3 b 9 9 2 e c f 9 8 4 0 9 
 
 8 b 3 0 8 5 8 3 5 5 1 6 3 6 c f f $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ d 7 3 b 9 9 2 e c 
 
 f 9 8 4 0 9 8 b 3 0 8 5 8 3 5 5 1 6 3 6 c f f $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 2 8 1 a 5 8 3 7 
 
 - b 5 c 6 - 4 f 1 5 - a 8 6 8 - c 4 4 7 1 9 3 9 2 
 
 4 c f ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' b a 3 e 4 a 2 9 - 7 c 3 1 - 4 7 
 
 0 9 - 9 c 8 6 - 2 6 5 4 5 7 b 0 7 d 0 8 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 6 6 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 6 9   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ d 7 3 b 9 9 2 e c f 9 8 4 0 9 
 
 8 b 3 0 8 5 8 3 5 5 1 6 3 6 c f f $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
     p a r a m e t e r s :   { } , 
 
     t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
     f i e l d s :   n u l l , 
 
     v a l u e :   u n d e f i n e d , 
 
     i n d e x :   ' r e q u e s t _ p a r t i c i 
 
 p a n t s _ r e q u e s t I d _ f k e y ' , 
 
     r e l t y p e :   u n d e f i n e d 
 
 } 
 
 E r r o r   a d d i n g   p a r t i c i p a n t   
 
 7 6 c e 1 2 2 3 - 8 0 b 8 - 4 6 e 0 - a 7 4 c - 9 
 
 3 d e 8 c 4 c 5 0 e 2   t o   
 
 t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 a b c 
 
 - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d :   
 
 E r r o r 
 
         a t   Q u e r y . r u n   ( C : \ l a x m 
 
 a n \ D e a l e r _ O n b o a r d \ D e a l e r _ 
 
 O n b o a r d i n g _ B a c k e n d \ n o d e _ m 
 
 o d u l e s \ s e q u e l i z e \ s r c \ d i a l 
 
 e c t s \ p o s t g r e s \ q u e r y . j s : 7 6 
 
 : 2 5 ) 
 
         a t   < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ s e q u e l i z e \ s r c \ s e 
 
 q u e l i z e . j s : 6 5 0 : 2 8 ) 
 
         a t   p r o c e s s . p r o c e s s T i c 
 
 k s A n d R e j e c t i o n s   ( n o d e : i n t 
 
 e r n a l / p r o c e s s / t a s k _ q u e u e s 
 
 : 1 0 5 : 5 ) 
 
         a t   a s y n c   P o s t g r e s Q u e r 
 
 y I n t e r f a c e . i n s e r t   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ s e q u e l i z e \ s r c \ d i a 
 
 l e c t s \ a b s t r a c t \ q u e r y - i n t e 
 
 r f a c e . j s : 7 9 5 : 2 1 ) 
 
         a t   a s y n c   m o d e l . s a v e   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ n o d e _ m o d u l e s \ s e q u e l i z e \ s 
 
 r c \ m o d e l . j s : 4 1 5 4 : 3 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . c r e a t e   ( C : \ l a x m a 
 
 n \ D e a l e r _ O n b o a r d \ D e a l e r _ O 
 
 n b o a r d i n g _ B a c k e n d \ n o d e _ m o 
 
 d u l e s \ s e q u e l i z e \ s r c \ m o d e l 
 
 . j s : 2 3 0 5 : 1 2 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . f i n d O r C r e a t e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ s e q u e l i z e \ s r c 
 
 \ m o d e l . j s : 2 4 1 7 : 2 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . a d d P a r t i c i p a n t   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ s r c \ s e r v i c e s \ P a r t i c i p a n t 
 
 S e r v i c e . t s : 2 3 : 1 3 ) 
 
         a t   a s y n c   F u n c t i o n . a s s 
 
 i g n T e r m i n a t i o n P a r t i c i p a n t 
 
 s   ( C : \ l a x m a n \ D e a l e r _ O n b o a 
 
 r d \ D e a l e r _ O n b o a r d i n g _ B a c k 
 
 e n d \ s r c \ s e r v i c e s \ P a r t i c i p 
 
 a n t S e r v i c e . t s : 1 0 7 : 1 7 ) 
 
         a t   a s y n c   v e r i f y   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ v e r 
 
 i f y _ p a r t i c i p a n t s _ l o g i c . t s 
 
 : 1 2 : 1 3 )   { 
 
     n a m e :   ' S e q u e l i z e F o r e i g n 
 
 K e y C o n s t r a i n t E r r o r ' , 
 
     p a r e n t :   e r r o r :   i n s e r t   
 
 o r   u p d a t e   o n   t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' f 5 3 e e d 2 1 
 
 - d d 8 5 - 4 f 4 8 - a 7 c a - 4 d 5 8 0 2 2 6 c 
 
 7 0 3 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 7 6 c e 1 2 2 3 - 8 0 b 8 - 4 6 
 
 e 0 - a 7 4 c - 9 3 d e 8 c 4 c 5 0 e 2 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 8 1 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 3 f 3 a 4 5 5 9 f 
 
 7 2 0 4 4 7 7 9 e 6 9 7 b 3 6 4 d 5 3 d 1 9 b $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' f 5 3 e e d 2 1 
 
 - d d 8 5 - 4 f 4 8 - a 7 c a - 4 d 5 8 0 2 2 6 c 
 
 7 0 3 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 7 6 c e 1 2 2 3 - 8 0 b 8 - 4 6 
 
 e 0 - a 7 4 c - 9 3 d e 8 c 4 c 5 0 e 2 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 8 1 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 3 f 3 a 4 5 5 9 f 7 2 0 4 4 7 
 
 7 9 e 6 9 7 b 3 6 4 d 5 3 d 1 9 b $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     o r i g i n a l :   e r r o r :   
 
 i n s e r t   o r   u p d a t e   o n   
 
 t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' f 5 3 e e d 2 1 
 
 - d d 8 5 - 4 f 4 8 - a 7 c a - 4 d 5 8 0 2 2 6 c 
 
 7 0 3 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 7 6 c e 1 2 2 3 - 8 0 b 8 - 4 6 
 
 e 0 - a 7 4 c - 9 3 d e 8 c 4 c 5 0 e 2 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 8 1 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 3 f 3 a 4 5 5 9 f 
 
 7 2 0 4 4 7 7 9 e 6 9 7 b 3 6 4 d 5 3 d 1 9 b $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' f 5 3 e e d 2 1 
 
 - d d 8 5 - 4 f 4 8 - a 7 c a - 4 d 5 8 0 2 2 6 c 
 
 7 0 3 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 7 6 c e 1 2 2 3 - 8 0 b 8 - 4 6 
 
 e 0 - a 7 4 c - 9 3 d e 8 c 4 c 5 0 e 2 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 8 1 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 3 f 3 a 4 5 5 9 f 7 2 0 4 4 7 
 
 7 9 e 6 9 7 b 3 6 4 d 5 3 d 1 9 b $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 3 f 3 a 4 5 5 9 f 
 
 7 2 0 4 4 7 7 9 e 6 9 7 b 3 6 4 d 5 3 d 1 9 b $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' f 5 3 e e d 2 1 
 
 - d d 8 5 - 4 f 4 8 - a 7 c a - 4 d 5 8 0 2 2 6 c 
 
 7 0 3 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' 7 6 c e 1 2 2 3 - 8 0 b 8 - 4 6 
 
 e 0 - a 7 4 c - 9 3 d e 8 c 4 c 5 0 e 2 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 2 8 1 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 2 8 3   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 3 f 3 a 4 5 5 9 f 7 2 0 4 4 7 
 
 7 9 e 6 9 7 b 3 6 4 d 5 3 d 1 9 b $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
     p a r a m e t e r s :   { } , 
 
     t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
     f i e l d s :   n u l l , 
 
     v a l u e :   u n d e f i n e d , 
 
     i n d e x :   ' r e q u e s t _ p a r t i c i 
 
 p a n t s _ r e q u e s t I d _ f k e y ' , 
 
     r e l t y p e :   u n d e f i n e d 
 
 } 
 
 E r r o r   a d d i n g   p a r t i c i p a n t   
 
 a 5 2 e c f f c - 0 5 c e - 4 0 8 c - b 8 5 b - c 
 
 1 a c 5 a d 3 2 e 3 0   t o   
 
 t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 a b c 
 
 - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d :   
 
 E r r o r 
 
         a t   Q u e r y . r u n   ( C : \ l a x m 
 
 a n \ D e a l e r _ O n b o a r d \ D e a l e r _ 
 
 O n b o a r d i n g _ B a c k e n d \ n o d e _ m 
 
 o d u l e s \ s e q u e l i z e \ s r c \ d i a l 
 
 e c t s \ p o s t g r e s \ q u e r y . j s : 7 6 
 
 : 2 5 ) 
 
         a t   < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ s e q u e l i z e \ s r c \ s e 
 
 q u e l i z e . j s : 6 5 0 : 2 8 ) 
 
         a t   p r o c e s s . p r o c e s s T i c 
 
 k s A n d R e j e c t i o n s   ( n o d e : i n t 
 
 e r n a l / p r o c e s s / t a s k _ q u e u e s 
 
 : 1 0 5 : 5 ) 
 
         a t   a s y n c   P o s t g r e s Q u e r 
 
 y I n t e r f a c e . i n s e r t   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ s e q u e l i z e \ s r c \ d i a 
 
 l e c t s \ a b s t r a c t \ q u e r y - i n t e 
 
 r f a c e . j s : 7 9 5 : 2 1 ) 
 
         a t   a s y n c   m o d e l . s a v e   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ n o d e _ m o d u l e s \ s e q u e l i z e \ s 
 
 r c \ m o d e l . j s : 4 1 5 4 : 3 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . c r e a t e   ( C : \ l a x m a 
 
 n \ D e a l e r _ O n b o a r d \ D e a l e r _ O 
 
 n b o a r d i n g _ B a c k e n d \ n o d e _ m o 
 
 d u l e s \ s e q u e l i z e \ s r c \ m o d e l 
 
 . j s : 2 3 0 5 : 1 2 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . f i n d O r C r e a t e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ s e q u e l i z e \ s r c 
 
 \ m o d e l . j s : 2 4 1 7 : 2 5 ) 
 
         a t   a s y n c   
 
 F u n c t i o n . a d d P a r t i c i p a n t   ( 
 
 C : \ l a x m a n \ D e a l e r _ O n b o a r d \ 
 
 D e a l e r _ O n b o a r d i n g _ B a c k e n d 
 
 \ s r c \ s e r v i c e s \ P a r t i c i p a n t 
 
 S e r v i c e . t s : 2 3 : 1 3 ) 
 
         a t   a s y n c   F u n c t i o n . a s s 
 
 i g n T e r m i n a t i o n P a r t i c i p a n t 
 
 s   ( C : \ l a x m a n \ D e a l e r _ O n b o a 
 
 r d \ D e a l e r _ O n b o a r d i n g _ B a c k 
 
 e n d \ s r c \ s e r v i c e s \ P a r t i c i p 
 
 a n t S e r v i c e . t s : 1 0 7 : 1 7 ) 
 
         a t   a s y n c   v e r i f y   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ v e r 
 
 i f y _ p a r t i c i p a n t s _ l o g i c . t s 
 
 : 1 2 : 1 3 )   { 
 
     n a m e :   ' S e q u e l i z e F o r e i g n 
 
 K e y C o n s t r a i n t E r r o r ' , 
 
     p a r e n t :   e r r o r :   i n s e r t   
 
 o r   u p d a t e   o n   t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 e 6 6 8 b 8 a 
 
 - 5 3 c 5 - 4 6 4 c - b 8 3 b - 5 0 0 9 0 b 3 9 b 
 
 d 0 0 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' a 5 2 e c f f c - 0 5 c e - 4 0 
 
 8 c - b 8 5 b - c 1 a c 5 a d 3 2 e 3 0 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 3 0 2 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
 [ P a r t i c i p a n t S e r v i c e ]   A d d e d   8   p a r t i c i p a n t s   t o   t e r m i n a t i o n   4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d 
 
 T e r m i n a t i o n   P a r t i c i p a n t s   a d d e d :   0 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 9 9 7 f 4 0 b 0 7 
 
 2 4 e 4 c 8 7 b e 1 a 8 e 7 4 8 d 8 5 f 4 d 7 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 e 6 6 8 b 8 a 
 
 - 5 3 c 5 - 4 6 4 c - b 8 3 b - 5 0 0 9 0 b 3 9 b 
 
 d 0 0 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' a 5 2 e c f f c - 0 5 c e - 4 0 
 
 8 c - b 8 5 b - c 1 a c 5 a d 3 2 e 3 0 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 3 0 2 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 9 9 7 f 4 0 b 0 7 2 4 e 4 c 8 
 
 7 b e 1 a 8 e 7 4 8 d 8 5 f 4 d 7 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     o r i g i n a l :   e r r o r :   
 
 i n s e r t   o r   u p d a t e   o n   
 
 t a b l e   
 
 " r e q u e s t _ p a r t i c i p a n t s "   
 
 v i o l a t e s   f o r e i g n   k e y   
 
 c o n s t r a i n t   " r e q u e s t _ p a r t i 
 
 c i p a n t s _ r e q u e s t I d _ f k e y " 
 
             a t   
 
 p a r s e E r r o r M e s s a g e   ( C : \ l a x 
 
 m a n \ D e a l e r _ O n b o a r d \ D e a l e r 
 
 _ O n b o a r d i n g _ B a c k e n d \ n o d e _ 
 
 m o d u l e s \ p g - p r o t o c o l \ s r c \ p 
 
 a r s e r . t s : 3 9 4 : 9 ) 
 
             a t   
 
 P a r s e r . h a n d l e P a c k e t   ( C : \ l 
 
 a x m a n \ D e a l e r _ O n b o a r d \ D e a l 
 
 e r _ O n b o a r d i n g _ B a c k e n d \ n o d 
 
 e _ m o d u l e s \ p g - p r o t o c o l \ s r c 
 
 \ p a r s e r . t s : 2 1 2 : 1 9 ) 
 
             a t   P a r s e r . p a r s e   ( C : 
 
 \ l a x m a n \ D e a l e r _ O n b o a r d \ D e 
 
 a l e r _ O n b o a r d i n g _ B a c k e n d \ n 
 
 o d e _ m o d u l e s \ p g - p r o t o c o l \ s 
 
 r c \ p a r s e r . t s : 1 0 5 : 3 0 ) 
 
             a t   
 
 S o c k e t . < a n o n y m o u s >   ( C : \ l a 
 
 x m a n \ D e a l e r _ O n b o a r d \ D e a l e 
 
 r _ O n b o a r d i n g _ B a c k e n d \ n o d e 
 
 _ m o d u l e s \ p g - p r o t o c o l \ s r c \ 
 
 i n d e x . t s : 7 : 4 8 ) 
 
             a t   S o c k e t . e m i t   
 
 ( n o d e : e v e n t s : 5 1 8 : 2 8 ) 
 
             a t   a d d C h u n k   ( n o d e : i 
 
 n t e r n a l / s t r e a m s / r e a d a b l e : 
 
 5 6 1 : 1 2 ) 
 
             a t   r e a d a b l e A d d C h u n k 
 
 P u s h B y t e M o d e   ( n o d e : i n t e r n 
 
 a l / s t r e a m s / r e a d a b l e : 5 1 2 : 3 
 
 ) 
 
             a t   R e a d a b l e . p u s h   ( n 
 
 o d e : i n t e r n a l / s t r e a m s / r e a d 
 
 a b l e : 3 9 2 : 5 ) 
 
             a t   
 
 T C P . o n S t r e a m R e a d   ( n o d e : i n 
 
 t e r n a l / s t r e a m _ b a s e _ c o m m o n 
 
 s : 1 8 9 : 2 3 )   { 
 
         l e n g t h :   8 7 7 , 
 
         s e v e r i t y :   ' E R R O R ' , 
 
         c o d e :   ' 2 3 5 0 3 ' , 
 
         d e t a i l :   ' K e y   ( r e q u e s t 
 
 I d ) = ( 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 8 
 
 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d )   i s   n o t   
 
 p r e s e n t   i n   t a b l e   
 
 " a p p l i c a t i o n s " . ' , 
 
         h i n t :   u n d e f i n e d , 
 
         p o s i t i o n :   u n d e f i n e d , 
 
         i n t e r n a l P o s i t i o n :   
 
 u n d e f i n e d , 
 
         i n t e r n a l Q u e r y :   
 
 u n d e f i n e d , 
 
         w h e r e :   ` S Q L   
 
 s t a t e m e n t   " I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 e 6 6 8 b 8 a 
 
 - 5 3 c 5 - 4 6 4 c - b 8 3 b - 5 0 0 9 0 b 3 9 b 
 
 d 0 0 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' a 5 2 e c f f c - 0 5 c e - 4 0 
 
 8 c - b 8 5 b - c 1 a c 5 a d 3 2 e 3 0 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 3 0 2 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   * " \ n `   + 
 
             ' P L / p g S Q L   f u n c t i o n   
 
 p g _ t e m p _ 1 2 . t e s t f u n c ( )   
 
 l i n e   1   a t   S Q L   s t a t e m e n t ' , 
 
         s c h e m a :   ' p u b l i c ' , 
 
         t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
         c o l u m n :   u n d e f i n e d , 
 
         d a t a T y p e :   u n d e f i n e d , 
 
         c o n s t r a i n t :   ' r e q u e s t _ 
 
 p a r t i c i p a n t s _ r e q u e s t I d _ f k 
 
 e y ' , 
 
         f i l e :   
 
 ' r i _ t r i g g e r s . c ' , 
 
         l i n e :   ' 2 7 8 3 ' , 
 
         r o u t i n e :   
 
 ' r i _ R e p o r t V i o l a t i o n ' , 
 
         s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 9 9 7 f 4 0 b 0 7 
 
 2 4 e 4 c 8 7 b e 1 a 8 e 7 4 8 d 8 5 f 4 d 7 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 e 6 6 8 b 8 a 
 
 - 5 3 c 5 - 4 6 4 c - b 8 3 b - 5 0 0 9 0 b 3 9 b 
 
 d 0 0 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' a 5 2 e c f f c - 0 5 c e - 4 0 
 
 8 c - b 8 5 b - c 1 a c 5 a d 3 2 e 3 0 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 3 0 2 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 9 9 7 f 4 0 b 0 7 2 4 e 4 c 8 
 
 7 b e 1 a 8 e 7 4 8 d 8 5 f 4 d 7 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
         p a r a m e t e r s :   u n d e f i n e d 
 
     } , 
 
     s q l :   ` C R E A T E   O R   
 
 R E P L A C E   F U N C T I O N   
 
 p g _ t e m p . t e s t f u n c ( O U T   
 
 r e s p o n s e   
 
 " r e q u e s t _ p a r t i c i p a n t s " ,   
 
 O U T   s e q u e l i z e _ c a u g h t _ e x c e 
 
 p t i o n   t e x t )   R E T U R N S   
 
 R E C O R D   A S   $ f u n c _ 9 9 7 f 4 0 b 0 7 
 
 2 4 e 4 c 8 7 b e 1 a 8 e 7 4 8 d 8 5 f 4 d 7 $   
 
 B E G I N   I N S E R T   I N T O   
 
 " r e q u e s t _ p a r t i c i p a n t s "   ( " 
 
 i d " , " r e q u e s t I d " , " r e q u e s t T 
 
 y p e " , " u s e r I d " , " p a r t i c i p a n 
 
 t T y p e " , " j o i n e d M e t h o d " , " m e 
 
 t a d a t a " , " c r e a t e d A t " , " u p d a 
 
 t e d A t " )   V A L U E S   ( ' 4 e 6 6 8 b 8 a 
 
 - 5 3 c 5 - 4 6 4 c - b 8 3 b - 5 0 0 9 0 b 3 9 b 
 
 d 0 0 ' , ' 4 7 0 e f a 3 3 - 4 a b c - 4 b a 1 - 
 
 8 b 1 7 - 7 1 0 3 5 0 1 6 1 d e d ' , ' t e r m i 
 
 n a t i o n ' , ' a 5 2 e c f f c - 0 5 c e - 4 0 
 
 8 c - b 8 5 b - c 1 a c 5 a d 3 2 e 3 0 ' , ' c o 
 
 n t r i b u t o r ' , ' a u t o ' , ' { " a u t o 
 
 M a p p e d " : t r u e , " a s s i g n e d A t " 
 
 : " 2 0 2 6 - 0 4 - 0 9 T 1 8 : 3 1 : 0 2 . 3 0 2 
 
 Z " } ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   
 
 + 0 0 : 0 0 ' , ' 2 0 2 6 - 0 4 - 0 9   
 
 1 8 : 3 1 : 0 2 . 3 0 4   + 0 0 : 0 0 ' )   
 
 R E T U R N I N G   *   I N T O   
 
 r e s p o n s e ;   E X C E P T I O N   W H E N   
 
 u n i q u e _ v i o l a t i o n   T H E N   
 
 G E T   S T A C K E D   D I A G N O S T I C S   s 
 
 e q u e l i z e _ c a u g h t _ e x c e p t i o n 
 
   =   P G _ E X C E P T I O N _ D E T A I L ;   
 
 E N D   $ f u n c _ 9 9 7 f 4 0 b 0 7 2 4 e 4 c 8 
 
 7 b e 1 a 8 e 7 4 8 d 8 5 f 4 d 7 $   
 
 L A N G U A G E   p l p g s q l ;   S E L E C T   
 
 ( t e s t f u n c . r e s p o n s e ) . " i d " , 
 
   ( t e s t f u n c . r e s p o n s e ) . " r e q 
 
 u e s t I d " ,   ( t e s t f u n c . r e s p o n 
 
 s e ) . " r e q u e s t T y p e " ,   ( t e s t f 
 
 u n c . r e s p o n s e ) . " u s e r I d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " p a r t i 
 
 c i p a n t T y p e " ,   ( t e s t f u n c . r e 
 
 s p o n s e ) . " j o i n e d M e t h o d " ,   ( 
 
 t e s t f u n c . r e s p o n s e ) . " m e t a d 
 
 a t a " ,   ( t e s t f u n c . r e s p o n s e ) 
 
 . " c r e a t e d A t " ,   ( t e s t f u n c . r 
 
 e s p o n s e ) . " u p d a t e d A t " ,   t e s 
 
 t f u n c . s e q u e l i z e _ c a u g h t _ e x 
 
 c e p t i o n   F R O M   
 
 p g _ t e m p . t e s t f u n c ( ) ;   D R O P   
 
 F U N C T I O N   I F   E X I S T S   
 
 p g _ t e m p . t e s t f u n c ( ) ; ` , 
 
     p a r a m e t e r s :   { } , 
 
     t a b l e :   
 
 ' r e q u e s t _ p a r t i c i p a n t s ' , 
 
     f i e l d s :   n u l l , 
 
     v a l u e :   u n d e f i n e d , 
 
     i n d e x :   ' r e q u e s t _ p a r t i c i 
 
 p a n t s _ r e q u e s t I d _ f k e y ' , 
 
     r e l t y p e :   u n d e f i n e d 
 
 } 
 
 N o   c o n s t i t u t i o n a l   c h a n g e   r e c o r d s   f o u n d   t o   v e r i f y . 
 
 N o   r e s i g n a t i o n   r e c o r d s   f o u n d   t o   v e r i f y . 
 
 - - -   V e r i f i c a t i o n   C o m p l e t e d   - - - 
 
 