@@ -330,7 +330,7 @@ func DropOwned(ctx context.Context, conn *pgx.Conn, user string) error {
330330 return nil
331331}
332332
333- func SetConfigurationSetting (ctx context.Context , conn * pgx.Conn , key string , value interface {} ) error {
333+ func SetConfigurationSetting (ctx context.Context , conn * pgx.Conn , key string , value any ) error {
334334 sql := fmt .Sprintf ("SET %s to %s" , key , value )
335335 _ , err := conn .Exec (ctx , sql )
336336 return err
@@ -400,7 +400,7 @@ func GetSetting(ctx context.Context, pg *pgx.Conn, setting string) (*PGSetting,
400400 return & out , nil
401401}
402402
403- func ValidatePGSettings (ctx context.Context , conn * pgx.Conn , requested map [string ]interface {} ) error {
403+ func ValidatePGSettings (ctx context.Context , conn * pgx.Conn , requested map [string ]any ) error {
404404 for k , v := range requested {
405405 exists , err := SettingExists (ctx , conn , k )
406406 if err != nil {
@@ -413,8 +413,8 @@ func ValidatePGSettings(ctx context.Context, conn *pgx.Conn, requested map[strin
413413 // Verify specified extensions are installed
414414 if k == "shared_preload_libraries" {
415415 extensions := strings .Trim (v .(string ), "'" )
416- extSlice := strings .Split (extensions , "," )
417- for _ , e := range extSlice {
416+ extSlice := strings .SplitSeq (extensions , "," )
417+ for e := range extSlice {
418418 available , err := ExtensionAvailable (ctx , conn , e )
419419 if err != nil {
420420 return fmt .Errorf ("failed to verify pg extension %s: %s" , e , err )
0 commit comments