Function( Function { head: Destructured( FunctionHeadDestructured { ellipsis: true, identifier: None, arguments: [ FunctionHeadDestructuredArgument { identifier: "config", default: None, }, FunctionHeadDestructuredArgument { identifier: "lib", default: None, }, FunctionHeadDestructuredArgument { identifier: "pkgs", default: None, }, ], }, ), body: With( With { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 3, column: 6, }, end: Position { line: 3, column: 9, }, }, }, ), target: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "receiverSubmodule", span: Span { start: Position { line: 6, column: 3, }, end: Position { line: 6, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 7, column: 5, }, end: Position { line: 7, column: 12, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "postgresqlPackage", span: Span { start: Position { line: 8, column: 7, }, end: Position { line: 8, column: 24, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 8, column: 27, }, end: Position { line: 8, column: 35, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 9, column: 9, }, end: Position { line: 9, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 9, column: 16, }, end: Position { line: 9, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "package", span: Span { start: Position { line: 9, column: 22, }, end: Position { line: 9, column: 29, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 10, column: 9, }, end: Position { line: 10, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 10, column: 19, }, end: Position { line: 10, column: 36, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "pkgs.postgresql_11", span: Span { start: Position { line: 10, column: 38, }, end: Position { line: 10, column: 56, }, }, }, ), ], span: Span { start: Position { line: 10, column: 37, }, end: Position { line: 10, column: 57, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 11, column: 9, }, end: Position { line: 11, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 11, column: 23, }, end: Position { line: 11, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 11, column: 27, }, end: Position { line: 11, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "PostgreSQL package to use.\n", span: Span { start: Position { line: 12, column: 1, }, end: Position { line: 13, column: 9, }, }, }, ), ], span: Span { start: Position { line: 11, column: 33, }, end: Position { line: 13, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 8, column: 36, }, end: Position { line: 14, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "directory", span: Span { start: Position { line: 16, column: 7, }, end: Position { line: 16, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 16, column: 19, }, end: Position { line: 16, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 17, column: 9, }, end: Position { line: 17, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 17, column: 16, }, end: Position { line: 17, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "path", span: Span { start: Position { line: 17, column: 22, }, end: Position { line: 17, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 18, column: 9, }, end: Position { line: 18, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 18, column: 19, }, end: Position { line: 18, column: 36, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "/mnt/pg_wal/main/", span: Span { start: Position { line: 18, column: 38, }, end: Position { line: 18, column: 55, }, }, }, ), ], span: Span { start: Position { line: 18, column: 37, }, end: Position { line: 18, column: 56, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 19, column: 9, }, end: Position { line: 19, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 19, column: 23, }, end: Position { line: 19, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 19, column: 27, }, end: Position { line: 19, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Directory to write the output to.\n", span: Span { start: Position { line: 20, column: 1, }, end: Position { line: 21, column: 9, }, }, }, ), ], span: Span { start: Position { line: 19, column: 33, }, end: Position { line: 21, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 16, column: 28, }, end: Position { line: 22, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "statusInterval", span: Span { start: Position { line: 24, column: 7, }, end: Position { line: 24, column: 21, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 24, column: 24, }, end: Position { line: 24, column: 32, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 25, column: 9, }, end: Position { line: 25, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 25, column: 16, }, end: Position { line: 25, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "int", span: Span { start: Position { line: 25, column: 22, }, end: Position { line: 25, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 26, column: 9, }, end: Position { line: 26, column: 16, }, }, }, ), ], to: Integer( Integer { value: "10", span: Span { start: Position { line: 26, column: 19, }, end: Position { line: 26, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 27, column: 9, }, end: Position { line: 27, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 27, column: 23, }, end: Position { line: 27, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 27, column: 27, }, end: Position { line: 27, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Specifies the number of seconds between status packets sent back to the server.\nThis allows for easier monitoring of the progress from server.\nA value of zero disables the periodic status updates completely,\nalthough an update will still be sent when requested by the server, to avoid timeout disconnect.\n", span: Span { start: Position { line: 28, column: 1, }, end: Position { line: 32, column: 9, }, }, }, ), ], span: Span { start: Position { line: 27, column: 33, }, end: Position { line: 32, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 24, column: 33, }, end: Position { line: 33, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "slot", span: Span { start: Position { line: 35, column: 7, }, end: Position { line: 35, column: 11, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 35, column: 14, }, end: Position { line: 35, column: 22, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 36, column: 9, }, end: Position { line: 36, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 36, column: 16, }, end: Position { line: 36, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 36, column: 22, }, end: Position { line: 36, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 37, column: 9, }, end: Position { line: 37, column: 16, }, }, }, ), ], to: String( String_ { parts: [], span: Span { start: Position { line: 37, column: 19, }, end: Position { line: 37, column: 21, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 38, column: 9, }, end: Position { line: 38, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "some_slot_name", span: Span { start: Position { line: 38, column: 20, }, end: Position { line: 38, column: 34, }, }, }, ), ], span: Span { start: Position { line: 38, column: 19, }, end: Position { line: 38, column: 35, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 39, column: 9, }, end: Position { line: 39, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 39, column: 23, }, end: Position { line: 39, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 39, column: 27, }, end: Position { line: 39, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Require {command}`pg_receivewal` to use an existing replication slot (see\n[Section 26.2.6 of the PostgreSQL manual](https://www.postgresql.org/docs/current/warm-standby.html#STREAMING-REPLICATION-SLOTS)).\nWhen this option is used, {command}`pg_receivewal` will report a flush position to the server,\nindicating when each segment has been synchronized to disk so that the server can remove that segment if it is not otherwise needed.\n\nWhen the replication client of {command}`pg_receivewal` is configured on the server as a synchronous standby,\nthen using a replication slot will report the flush position to the server, but only when a WAL file is closed.\nTherefore, that configuration will cause transactions on the primary to wait for a long time and effectively not work satisfactorily.\nThe option {option}`synchronous` must be specified in addition to make this work correctly.\n", span: Span { start: Position { line: 40, column: 1, }, end: Position { line: 49, column: 9, }, }, }, ), ], span: Span { start: Position { line: 39, column: 33, }, end: Position { line: 49, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 35, column: 23, }, end: Position { line: 50, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "synchronous", span: Span { start: Position { line: 52, column: 7, }, end: Position { line: 52, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 52, column: 21, }, end: Position { line: 52, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 53, column: 9, }, end: Position { line: 53, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 53, column: 16, }, end: Position { line: 53, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "bool", span: Span { start: Position { line: 53, column: 22, }, end: Position { line: 53, column: 26, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 54, column: 9, }, end: Position { line: 54, column: 16, }, }, }, ), ], to: Identifier( Identifier { id: "false", span: Span { start: Position { line: 54, column: 19, }, end: Position { line: 54, column: 24, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 55, column: 9, }, end: Position { line: 55, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 55, column: 23, }, end: Position { line: 55, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 55, column: 27, }, end: Position { line: 55, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Flush the WAL data to disk immediately after it has been received.\nAlso send a status packet back to the server immediately after flushing, regardless of {option}`statusInterval`.\n\nThis option should be specified if the replication client of {command}`pg_receivewal` is configured on the server as a synchronous standby,\nto ensure that timely feedback is sent to the server.\n", span: Span { start: Position { line: 56, column: 1, }, end: Position { line: 61, column: 9, }, }, }, ), ], span: Span { start: Position { line: 55, column: 33, }, end: Position { line: 61, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 52, column: 30, }, end: Position { line: 62, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "compress", span: Span { start: Position { line: 64, column: 7, }, end: Position { line: 64, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 64, column: 18, }, end: Position { line: 64, column: 26, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 65, column: 9, }, end: Position { line: 65, column: 13, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 65, column: 16, }, end: Position { line: 65, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ints", span: Span { start: Position { line: 65, column: 22, }, end: Position { line: 65, column: 26, }, }, }, ), Raw( PartRaw { content: "between", span: Span { start: Position { line: 65, column: 27, }, end: Position { line: 65, column: 34, }, }, }, ), ], default: None, }, ), arguments: [ Integer( Integer { value: "0", span: Span { start: Position { line: 65, column: 35, }, end: Position { line: 65, column: 36, }, }, }, ), Integer( Integer { value: "9", span: Span { start: Position { line: 65, column: 37, }, end: Position { line: 65, column: 38, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 66, column: 9, }, end: Position { line: 66, column: 16, }, }, }, ), ], to: Integer( Integer { value: "0", span: Span { start: Position { line: 66, column: 19, }, end: Position { line: 66, column: 20, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 67, column: 9, }, end: Position { line: 67, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 67, column: 23, }, end: Position { line: 67, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 67, column: 27, }, end: Position { line: 67, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Enables gzip compression of write-ahead logs, and specifies the compression level\n(`0` through `9`, `0` being no compression and `9` being best compression).\nThe suffix `.gz` will automatically be added to all filenames.\n\nThis option requires PostgreSQL >= 10.\n", span: Span { start: Position { line: 68, column: 1, }, end: Position { line: 73, column: 9, }, }, }, ), ], span: Span { start: Position { line: 67, column: 33, }, end: Position { line: 73, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 64, column: 27, }, end: Position { line: 74, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "connection", span: Span { start: Position { line: 76, column: 7, }, end: Position { line: 76, column: 17, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 76, column: 20, }, end: Position { line: 76, column: 28, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 77, column: 9, }, end: Position { line: 77, column: 13, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 77, column: 16, }, end: Position { line: 77, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "str", span: Span { start: Position { line: 77, column: 22, }, end: Position { line: 77, column: 25, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 78, column: 9, }, end: Position { line: 78, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "postgresql://user@somehost", span: Span { start: Position { line: 78, column: 20, }, end: Position { line: 78, column: 46, }, }, }, ), ], span: Span { start: Position { line: 78, column: 19, }, end: Position { line: 78, column: 47, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 79, column: 9, }, end: Position { line: 79, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 79, column: 23, }, end: Position { line: 79, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 79, column: 27, }, end: Position { line: 79, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Specifies parameters used to connect to the server, as a connection string.\nSee [Section 34.1.1 of the PostgreSQL manual](https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING) for more information.\n\nBecause {command}`pg_receivewal` doesn't connect to any particular database in the cluster,\ndatabase name in the connection string will be ignored.\n", span: Span { start: Position { line: 80, column: 1, }, end: Position { line: 85, column: 9, }, }, }, ), ], span: Span { start: Position { line: 79, column: 33, }, end: Position { line: 85, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 76, column: 29, }, end: Position { line: 86, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "extraArgs", span: Span { start: Position { line: 88, column: 7, }, end: Position { line: 88, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 88, column: 19, }, end: Position { line: 88, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 89, column: 9, }, end: Position { line: 89, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 89, column: 21, }, end: Position { line: 89, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "listOf", span: Span { start: Position { line: 89, column: 28, }, end: Position { line: 89, column: 34, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 89, column: 35, }, end: Position { line: 89, column: 38, }, }, }, ), ], }, ), span: Span { start: Position { line: 89, column: 16, }, end: Position { line: 89, column: 38, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 90, column: 9, }, end: Position { line: 90, column: 16, }, }, }, ), ], to: List( List { elements: [], span: Span { start: Position { line: 90, column: 19, }, end: Position { line: 90, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 91, column: 9, }, end: Position { line: 91, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 91, column: 19, }, end: Position { line: 91, column: 36, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "[\n \"--no-sync\"\n]\n", span: Span { start: Position { line: 92, column: 1, }, end: Position { line: 95, column: 9, }, }, }, ), ], span: Span { start: Position { line: 91, column: 37, }, end: Position { line: 95, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 96, column: 9, }, end: Position { line: 96, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 96, column: 23, }, end: Position { line: 96, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 96, column: 27, }, end: Position { line: 96, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "A list of extra arguments to pass to the {command}`pg_receivewal` command.\n", span: Span { start: Position { line: 97, column: 1, }, end: Position { line: 98, column: 9, }, }, }, ), ], span: Span { start: Position { line: 96, column: 33, }, end: Position { line: 98, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 88, column: 28, }, end: Position { line: 99, column: 8, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 101, column: 7, }, end: Position { line: 101, column: 18, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 101, column: 21, }, end: Position { line: 101, column: 29, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 102, column: 9, }, end: Position { line: 102, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 102, column: 21, }, end: Position { line: 102, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 102, column: 28, }, end: Position { line: 102, column: 35, }, }, }, ), arguments: [ Identifier( Identifier { id: "str", span: Span { start: Position { line: 102, column: 36, }, end: Position { line: 102, column: 39, }, }, }, ), ], }, ), span: Span { start: Position { line: 102, column: 16, }, end: Position { line: 102, column: 39, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 103, column: 9, }, end: Position { line: 103, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 103, column: 19, }, end: Position { line: 103, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 104, column: 9, }, end: Position { line: 104, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 104, column: 19, }, end: Position { line: 104, column: 36, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{\n PGPASSFILE = \"/private/passfile\";\n PGSSLMODE = \"require\";\n}\n", span: Span { start: Position { line: 105, column: 1, }, end: Position { line: 109, column: 9, }, }, }, ), ], span: Span { start: Position { line: 104, column: 37, }, end: Position { line: 109, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 110, column: 9, }, end: Position { line: 110, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 110, column: 23, }, end: Position { line: 110, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 110, column: 27, }, end: Position { line: 110, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "Environment variables passed to the service.\nUsable parameters are listed in [Section 34.14 of the PostgreSQL manual](https://www.postgresql.org/docs/current/libpq-envars.html).\n", span: Span { start: Position { line: 111, column: 1, }, end: Position { line: 113, column: 9, }, }, }, ), ], span: Span { start: Position { line: 110, column: 33, }, end: Position { line: 113, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 101, column: 30, }, end: Position { line: 114, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 7, column: 15, }, end: Position { line: 115, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 6, column: 23, }, end: Position { line: 116, column: 4, }, }, }, ), }, ), ], target: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "options", span: Span { start: Position { line: 119, column: 3, }, end: Position { line: 119, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 120, column: 5, }, end: Position { line: 120, column: 13, }, }, }, ), Raw( PartRaw { content: "postgresqlWalReceiver", span: Span { start: Position { line: 120, column: 14, }, end: Position { line: 120, column: 35, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "receivers", span: Span { start: Position { line: 121, column: 7, }, end: Position { line: 121, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkOption", span: Span { start: Position { line: 121, column: 19, }, end: Position { line: 121, column: 27, }, }, }, ), arguments: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "type", span: Span { start: Position { line: 122, column: 9, }, end: Position { line: 122, column: 13, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "types", span: Span { start: Position { line: 122, column: 21, }, end: Position { line: 122, column: 26, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "attrsOf", span: Span { start: Position { line: 122, column: 28, }, end: Position { line: 122, column: 35, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "submodule", span: Span { start: Position { line: 122, column: 37, }, end: Position { line: 122, column: 46, }, }, }, ), arguments: [ Identifier( Identifier { id: "receiverSubmodule", span: Span { start: Position { line: 122, column: 47, }, end: Position { line: 122, column: 64, }, }, }, ), ], }, ), ], }, ), span: Span { start: Position { line: 122, column: 16, }, end: Position { line: 122, column: 65, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "default", span: Span { start: Position { line: 123, column: 9, }, end: Position { line: 123, column: 16, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 123, column: 19, }, end: Position { line: 123, column: 22, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "example", span: Span { start: Position { line: 124, column: 9, }, end: Position { line: 124, column: 16, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "literalExpression", span: Span { start: Position { line: 124, column: 19, }, end: Position { line: 124, column: 36, }, }, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "{\n main = {\n postgresqlPackage = pkgs.postgresql_11;\n directory = /mnt/pg_wal/main/;\n slot = \"main_wal_receiver\";\n connection = \"postgresql://user@somehost\";\n };\n}\n", span: Span { start: Position { line: 125, column: 1, }, end: Position { line: 133, column: 9, }, }, }, ), ], span: Span { start: Position { line: 124, column: 37, }, end: Position { line: 133, column: 11, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 134, column: 9, }, end: Position { line: 134, column: 20, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "lib", span: Span { start: Position { line: 134, column: 23, }, end: Position { line: 134, column: 26, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mdDoc", span: Span { start: Position { line: 134, column: 27, }, end: Position { line: 134, column: 32, }, }, }, ), ], default: None, }, ), arguments: [ IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "PostgreSQL WAL receivers.\nStream write-ahead logs from a PostgreSQL server using {command}`pg_receivewal` (formerly {command}`pg_receivexlog`).\nSee [the man page](https://www.postgresql.org/docs/current/app-pgreceivewal.html) for more information.\n", span: Span { start: Position { line: 135, column: 1, }, end: Position { line: 138, column: 9, }, }, }, ), ], span: Span { start: Position { line: 134, column: 33, }, end: Position { line: 138, column: 11, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 121, column: 28, }, end: Position { line: 139, column: 8, }, }, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 120, column: 38, }, end: Position { line: 140, column: 6, }, }, }, ), }, ), ], span: Span { start: Position { line: 119, column: 13, }, end: Position { line: 141, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "config", span: Span { start: Position { line: 143, column: 3, }, end: Position { line: 143, column: 9, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "receivers", span: Span { start: Position { line: 144, column: 5, }, end: Position { line: 144, column: 14, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 144, column: 17, }, end: Position { line: 144, column: 23, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "services", span: Span { start: Position { line: 144, column: 24, }, end: Position { line: 144, column: 32, }, }, }, ), Raw( PartRaw { content: "postgresqlWalReceiver", span: Span { start: Position { line: 144, column: 33, }, end: Position { line: 144, column: 54, }, }, }, ), Raw( PartRaw { content: "receivers", span: Span { start: Position { line: 144, column: 55, }, end: Position { line: 144, column: 64, }, }, }, ), ], default: None, }, ), }, ), ], target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mkIf", span: Span { start: Position { line: 145, column: 6, }, end: Position { line: 145, column: 10, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: Identifier( Identifier { id: "receivers", span: Span { start: Position { line: 145, column: 12, }, end: Position { line: 145, column: 21, }, }, }, ), operator: NotEqualTo, right: Map( Map { recursive: false, bindings: [], span: Span { start: Position { line: 145, column: 25, }, end: Position { line: 145, column: 28, }, }, }, ), }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 146, column: 5, }, end: Position { line: 146, column: 10, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "users", span: Span { start: Position { line: 147, column: 7, }, end: Position { line: 147, column: 12, }, }, }, ), Raw( PartRaw { content: "postgres", span: Span { start: Position { line: 147, column: 13, }, end: Position { line: 147, column: 21, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "uid", span: Span { start: Position { line: 148, column: 9, }, end: Position { line: 148, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 148, column: 15, }, end: Position { line: 148, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ids", span: Span { start: Position { line: 148, column: 22, }, end: Position { line: 148, column: 25, }, }, }, ), Raw( PartRaw { content: "uids", span: Span { start: Position { line: 148, column: 26, }, end: Position { line: 148, column: 30, }, }, }, ), Raw( PartRaw { content: "postgres", span: Span { start: Position { line: 148, column: 31, }, end: Position { line: 148, column: 39, }, }, }, ), ], default: None, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "group", span: Span { start: Position { line: 149, column: 9, }, end: Position { line: 149, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "postgres", span: Span { start: Position { line: 149, column: 18, }, end: Position { line: 149, column: 26, }, }, }, ), ], span: Span { start: Position { line: 149, column: 17, }, end: Position { line: 149, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 150, column: 9, }, end: Position { line: 150, column: 20, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "PostgreSQL server user", span: Span { start: Position { line: 150, column: 24, }, end: Position { line: 150, column: 46, }, }, }, ), ], span: Span { start: Position { line: 150, column: 23, }, end: Position { line: 150, column: 47, }, }, }, ), }, ), ], span: Span { start: Position { line: 147, column: 24, }, end: Position { line: 151, column: 8, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "groups", span: Span { start: Position { line: 153, column: 7, }, end: Position { line: 153, column: 13, }, }, }, ), Raw( PartRaw { content: "postgres", span: Span { start: Position { line: 153, column: 14, }, end: Position { line: 153, column: 22, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "gid", span: Span { start: Position { line: 154, column: 9, }, end: Position { line: 154, column: 12, }, }, }, ), ], to: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 154, column: 15, }, end: Position { line: 154, column: 21, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "ids", span: Span { start: Position { line: 154, column: 22, }, end: Position { line: 154, column: 25, }, }, }, ), Raw( PartRaw { content: "gids", span: Span { start: Position { line: 154, column: 26, }, end: Position { line: 154, column: 30, }, }, }, ), Raw( PartRaw { content: "postgres", span: Span { start: Position { line: 154, column: 31, }, end: Position { line: 154, column: 39, }, }, }, ), ], default: None, }, ), }, ), ], span: Span { start: Position { line: 153, column: 25, }, end: Position { line: 155, column: 8, }, }, }, ), }, ), ], span: Span { start: Position { line: 146, column: 13, }, end: Position { line: 156, column: 6, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertions", span: Span { start: Position { line: 158, column: 5, }, end: Position { line: 158, column: 15, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatLists", span: Span { start: Position { line: 158, column: 18, }, end: Position { line: 158, column: 29, }, }, }, ), arguments: [ FunctionApplication( FunctionApplication { function: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "attrsets", span: Span { start: Position { line: 158, column: 31, }, end: Position { line: 158, column: 39, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "mapAttrsToList", span: Span { start: Position { line: 158, column: 40, }, end: Position { line: 158, column: 54, }, }, }, ), ], default: None, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "config", }, ), body: List( List { elements: [ Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "assertion", span: Span { start: Position { line: 160, column: 9, }, end: Position { line: 160, column: 18, }, }, }, ), ], to: BinaryOperation( BinaryOperation { left: BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 160, column: 21, }, end: Position { line: 160, column: 27, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "compress", span: Span { start: Position { line: 160, column: 28, }, end: Position { line: 160, column: 36, }, }, }, ), ], default: None, }, ), operator: GreaterThan, right: Integer( Integer { value: "0", span: Span { start: Position { line: 160, column: 39, }, end: Position { line: 160, column: 40, }, }, }, ), }, ), operator: Implication, right: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "versionAtLeast", span: Span { start: Position { line: 160, column: 44, }, end: Position { line: 160, column: 58, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 160, column: 59, }, end: Position { line: 160, column: 65, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "postgresqlPackage", span: Span { start: Position { line: 160, column: 66, }, end: Position { line: 160, column: 83, }, }, }, ), Raw( PartRaw { content: "version", span: Span { start: Position { line: 160, column: 84, }, end: Position { line: 160, column: 91, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Raw( PartRaw { content: "10", span: Span { start: Position { line: 160, column: 93, }, end: Position { line: 160, column: 95, }, }, }, ), ], span: Span { start: Position { line: 160, column: 92, }, end: Position { line: 160, column: 96, }, }, }, ), ], }, ), }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "message", span: Span { start: Position { line: 161, column: 9, }, end: Position { line: 161, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "Invalid configuration for WAL receiver \"", span: Span { start: Position { line: 161, column: 20, }, end: Position { line: 161, column: 68, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 161, column: 63, }, end: Position { line: 161, column: 67, }, }, }, ), }, ), Raw( PartRaw { content: "\": compress requires PostgreSQL version >= 10.", span: Span { start: Position { line: 161, column: 20, }, end: Position { line: 161, column: 115, }, }, }, ), ], span: Span { start: Position { line: 161, column: 19, }, end: Position { line: 161, column: 116, }, }, }, ), }, ), ], span: Span { start: Position { line: 159, column: 7, }, end: Position { line: 162, column: 8, }, }, }, ), ], span: Span { start: Position { line: 158, column: 70, }, end: Position { line: 163, column: 6, }, }, }, ), span: Span { start: Position { line: 158, column: 62, }, end: Position { line: 163, column: 6, }, }, }, ), span: Span { start: Position { line: 158, column: 56, }, end: Position { line: 163, column: 6, }, }, }, ), Identifier( Identifier { id: "receivers", span: Span { start: Position { line: 163, column: 8, }, end: Position { line: 163, column: 17, }, }, }, ), ], }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 165, column: 5, }, end: Position { line: 165, column: 12, }, }, }, ), Raw( PartRaw { content: "tmpfiles", span: Span { start: Position { line: 165, column: 13, }, end: Position { line: 165, column: 21, }, }, }, ), Raw( PartRaw { content: "rules", span: Span { start: Position { line: 165, column: 22, }, end: Position { line: 165, column: 27, }, }, }, ), ], to: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrsToList", span: Span { start: Position { line: 165, column: 30, }, end: Position { line: 165, column: 44, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "config", }, ), body: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "d ", span: Span { start: Position { line: 166, column: 1, }, end: Position { line: 166, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "escapeShellArg", span: Span { start: Position { line: 166, column: 11, }, end: Position { line: 166, column: 25, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 166, column: 26, }, end: Position { line: 166, column: 32, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "directory", span: Span { start: Position { line: 166, column: 33, }, end: Position { line: 166, column: 42, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " 0750 postgres postgres - -\n", span: Span { start: Position { line: 166, column: 1, }, end: Position { line: 167, column: 5, }, }, }, ), ], span: Span { start: Position { line: 165, column: 60, }, end: Position { line: 167, column: 7, }, }, }, ), span: Span { start: Position { line: 165, column: 52, }, end: Position { line: 167, column: 7, }, }, }, ), span: Span { start: Position { line: 165, column: 46, }, end: Position { line: 167, column: 7, }, }, }, ), Identifier( Identifier { id: "receivers", span: Span { start: Position { line: 167, column: 9, }, end: Position { line: 167, column: 18, }, }, }, ), ], }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "systemd", span: Span { start: Position { line: 169, column: 5, }, end: Position { line: 169, column: 12, }, }, }, ), Raw( PartRaw { content: "services", span: Span { start: Position { line: 169, column: 13, }, end: Position { line: 169, column: 21, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "attrsets", span: Span { start: Position { line: 169, column: 29, }, end: Position { line: 169, column: 37, }, }, }, ), target: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "mapAttrs'", span: Span { start: Position { line: 169, column: 39, }, end: Position { line: 169, column: 48, }, }, }, ), arguments: [ Function( Function { head: Simple( FunctionHeadSimple { identifier: "name", }, ), body: Function( Function { head: Simple( FunctionHeadSimple { identifier: "config", }, ), body: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "nameValuePair", span: Span { start: Position { line: 169, column: 64, }, end: Position { line: 169, column: 77, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: "postgresql-wal-receiver-", span: Span { start: Position { line: 169, column: 79, }, end: Position { line: 169, column: 110, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 169, column: 105, }, end: Position { line: 169, column: 109, }, }, }, ), }, ), ], span: Span { start: Position { line: 169, column: 78, }, end: Position { line: 169, column: 111, }, }, }, ), Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "description", span: Span { start: Position { line: 170, column: 7, }, end: Position { line: 170, column: 18, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "PostgreSQL WAL receiver (", span: Span { start: Position { line: 170, column: 22, }, end: Position { line: 170, column: 54, }, }, }, ), Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "name", span: Span { start: Position { line: 170, column: 49, }, end: Position { line: 170, column: 53, }, }, }, ), }, ), Raw( PartRaw { content: ")", span: Span { start: Position { line: 170, column: 22, }, end: Position { line: 170, column: 55, }, }, }, ), ], span: Span { start: Position { line: 170, column: 21, }, end: Position { line: 170, column: 56, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "wantedBy", span: Span { start: Position { line: 171, column: 7, }, end: Position { line: 171, column: 15, }, }, }, ), ], to: List( List { elements: [ String( String_ { parts: [ Raw( PartRaw { content: "multi-user.target", span: Span { start: Position { line: 171, column: 21, }, end: Position { line: 171, column: 38, }, }, }, ), ], span: Span { start: Position { line: 171, column: 20, }, end: Position { line: 171, column: 39, }, }, }, ), ], span: Span { start: Position { line: 171, column: 18, }, end: Position { line: 171, column: 41, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "startLimitIntervalSec", span: Span { start: Position { line: 172, column: 7, }, end: Position { line: 172, column: 28, }, }, }, ), ], to: Integer( Integer { value: "0", span: Span { start: Position { line: 172, column: 31, }, end: Position { line: 172, column: 32, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "serviceConfig", span: Span { start: Position { line: 174, column: 7, }, end: Position { line: 174, column: 20, }, }, }, ), ], to: Map( Map { recursive: false, bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "User", span: Span { start: Position { line: 175, column: 9, }, end: Position { line: 175, column: 13, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "postgres", span: Span { start: Position { line: 175, column: 17, }, end: Position { line: 175, column: 25, }, }, }, ), ], span: Span { start: Position { line: 175, column: 16, }, end: Position { line: 175, column: 26, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Group", span: Span { start: Position { line: 176, column: 9, }, end: Position { line: 176, column: 14, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "postgres", span: Span { start: Position { line: 176, column: 18, }, end: Position { line: 176, column: 26, }, }, }, ), ], span: Span { start: Position { line: 176, column: 17, }, end: Position { line: 176, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "KillSignal", span: Span { start: Position { line: 177, column: 9, }, end: Position { line: 177, column: 19, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "SIGINT", span: Span { start: Position { line: 177, column: 23, }, end: Position { line: 177, column: 29, }, }, }, ), ], span: Span { start: Position { line: 177, column: 22, }, end: Position { line: 177, column: 30, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "Restart", span: Span { start: Position { line: 178, column: 9, }, end: Position { line: 178, column: 16, }, }, }, ), ], to: String( String_ { parts: [ Raw( PartRaw { content: "always", span: Span { start: Position { line: 178, column: 20, }, end: Position { line: 178, column: 26, }, }, }, ), ], span: Span { start: Position { line: 178, column: 19, }, end: Position { line: 178, column: 27, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "RestartSec", span: Span { start: Position { line: 179, column: 9, }, end: Position { line: 179, column: 19, }, }, }, ), ], to: Integer( Integer { value: "60", span: Span { start: Position { line: 179, column: 22, }, end: Position { line: 179, column: 24, }, }, }, ), }, ), ], span: Span { start: Position { line: 174, column: 23, }, end: Position { line: 180, column: 8, }, }, }, ), }, ), Inherit( BindingInherit { from: Some( Identifier( Identifier { id: "config", span: Span { start: Position { line: 182, column: 16, }, end: Position { line: 182, column: 22, }, }, }, ), ), attributes: [ Raw( PartRaw { content: "environment", span: Span { start: Position { line: 182, column: 24, }, end: Position { line: 182, column: 35, }, }, }, ), ], span: Span { start: Position { line: 169, column: 113, }, end: Position { line: 182, column: 36, }, }, }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "script", span: Span { start: Position { line: 184, column: 7, }, end: Position { line: 184, column: 13, }, }, }, ), ], to: LetIn( LetIn { bindings: [ KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "receiverCommand", span: Span { start: Position { line: 185, column: 9, }, end: Position { line: 185, column: 24, }, }, }, ), ], to: Function( Function { head: Simple( FunctionHeadSimple { identifier: "postgresqlPackage", }, ), body: IfThenElse( IfThenElse { predicate: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "versionAtLeast", span: Span { start: Position { line: 186, column: 14, }, end: Position { line: 186, column: 28, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "postgresqlPackage", span: Span { start: Position { line: 186, column: 29, }, end: Position { line: 186, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "version", span: Span { start: Position { line: 186, column: 47, }, end: Position { line: 186, column: 54, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Raw( PartRaw { content: "10", span: Span { start: Position { line: 186, column: 56, }, end: Position { line: 186, column: 58, }, }, }, ), ], span: Span { start: Position { line: 186, column: 55, }, end: Position { line: 186, column: 59, }, }, }, ), ], }, ), then: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "postgresqlPackage", span: Span { start: Position { line: 187, column: 20, }, end: Position { line: 187, column: 37, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/pg_receivewal", span: Span { start: Position { line: 187, column: 18, }, end: Position { line: 187, column: 56, }, }, }, ), ], span: Span { start: Position { line: 187, column: 17, }, end: Position { line: 187, column: 57, }, }, }, ), else_: String( String_ { parts: [ Interpolation( PartInterpolation { expression: Identifier( Identifier { id: "postgresqlPackage", span: Span { start: Position { line: 188, column: 20, }, end: Position { line: 188, column: 37, }, }, }, ), }, ), Raw( PartRaw { content: "/bin/pg_receivexlog", span: Span { start: Position { line: 188, column: 18, }, end: Position { line: 188, column: 57, }, }, }, ), ], span: Span { start: Position { line: 188, column: 17, }, end: Position { line: 188, column: 58, }, }, }, ), span: Span { start: Position { line: 186, column: 10, }, end: Position { line: 188, column: 58, }, }, }, ), span: Span { start: Position { line: 185, column: 27, }, end: Position { line: 188, column: 58, }, }, }, ), }, ), ], target: IndentedString( IndentedString { parts: [ Raw( PartRaw { content: "", span: Span { start: Position { line: 190, column: 1, }, end: Position { line: 190, column: 9, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "receiverCommand", span: Span { start: Position { line: 190, column: 11, }, end: Position { line: 190, column: 26, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 190, column: 27, }, end: Position { line: 190, column: 33, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "postgresqlPackage", span: Span { start: Position { line: 190, column: 34, }, end: Position { line: 190, column: 51, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n --no-password \\\n --directory=", span: Span { start: Position { line: 190, column: 1, }, end: Position { line: 192, column: 23, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "escapeShellArg", span: Span { start: Position { line: 192, column: 25, }, end: Position { line: 192, column: 39, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 192, column: 40, }, end: Position { line: 192, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "directory", span: Span { start: Position { line: 192, column: 47, }, end: Position { line: 192, column: 56, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n --status-interval=", span: Span { start: Position { line: 190, column: 1, }, end: Position { line: 193, column: 29, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 193, column: 31, }, end: Position { line: 193, column: 39, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 193, column: 40, }, end: Position { line: 193, column: 46, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "statusInterval", span: Span { start: Position { line: 193, column: 47, }, end: Position { line: 193, column: 61, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n --dbname=", span: Span { start: Position { line: 190, column: 1, }, end: Position { line: 194, column: 20, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "escapeShellArg", span: Span { start: Position { line: 194, column: 22, }, end: Position { line: 194, column: 36, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 194, column: 37, }, end: Position { line: 194, column: 43, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "connection", span: Span { start: Position { line: 194, column: 44, }, end: Position { line: 194, column: 54, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n ", span: Span { start: Position { line: 190, column: 1, }, end: Position { line: 195, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 195, column: 13, }, end: Position { line: 195, column: 27, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 195, column: 29, }, end: Position { line: 195, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "compress", span: Span { start: Position { line: 195, column: 36, }, end: Position { line: 195, column: 44, }, }, }, ), ], default: None, }, ), operator: GreaterThan, right: Integer( Integer { value: "0", span: Span { start: Position { line: 195, column: 47, }, end: Position { line: 195, column: 48, }, }, }, ), }, ), String( String_ { parts: [ Raw( PartRaw { content: "--compress=", span: Span { start: Position { line: 195, column: 51, }, end: Position { line: 195, column: 89, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "toString", span: Span { start: Position { line: 195, column: 64, }, end: Position { line: 195, column: 72, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 195, column: 73, }, end: Position { line: 195, column: 79, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "compress", span: Span { start: Position { line: 195, column: 80, }, end: Position { line: 195, column: 88, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 195, column: 50, }, end: Position { line: 195, column: 90, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n ", span: Span { start: Position { line: 190, column: 1, }, end: Position { line: 196, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 196, column: 13, }, end: Position { line: 196, column: 27, }, }, }, ), arguments: [ BinaryOperation( BinaryOperation { left: PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 196, column: 29, }, end: Position { line: 196, column: 35, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "slot", span: Span { start: Position { line: 196, column: 36, }, end: Position { line: 196, column: 40, }, }, }, ), ], default: None, }, ), operator: NotEqualTo, right: String( String_ { parts: [], span: Span { start: Position { line: 196, column: 44, }, end: Position { line: 196, column: 46, }, }, }, ), }, ), String( String_ { parts: [ Raw( PartRaw { content: "--slot=", span: Span { start: Position { line: 196, column: 49, }, end: Position { line: 196, column: 85, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "escapeShellArg", span: Span { start: Position { line: 196, column: 58, }, end: Position { line: 196, column: 72, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 196, column: 73, }, end: Position { line: 196, column: 79, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "slot", span: Span { start: Position { line: 196, column: 80, }, end: Position { line: 196, column: 84, }, }, }, ), ], default: None, }, ), ], }, ), }, ), ], span: Span { start: Position { line: 196, column: 48, }, end: Position { line: 196, column: 86, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n ", span: Span { start: Position { line: 190, column: 1, }, end: Position { line: 197, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "optionalString", span: Span { start: Position { line: 197, column: 13, }, end: Position { line: 197, column: 27, }, }, }, ), arguments: [ PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 197, column: 28, }, end: Position { line: 197, column: 34, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "synchronous", span: Span { start: Position { line: 197, column: 35, }, end: Position { line: 197, column: 46, }, }, }, ), ], default: None, }, ), String( String_ { parts: [ Raw( PartRaw { content: "--synchronous", span: Span { start: Position { line: 197, column: 48, }, end: Position { line: 197, column: 61, }, }, }, ), ], span: Span { start: Position { line: 197, column: 47, }, end: Position { line: 197, column: 62, }, }, }, ), ], }, ), }, ), Raw( PartRaw { content: " \\\n ", span: Span { start: Position { line: 190, column: 1, }, end: Position { line: 198, column: 11, }, }, }, ), Interpolation( PartInterpolation { expression: FunctionApplication( FunctionApplication { function: Identifier( Identifier { id: "concatStringsSep", span: Span { start: Position { line: 198, column: 13, }, end: Position { line: 198, column: 29, }, }, }, ), arguments: [ String( String_ { parts: [ Raw( PartRaw { content: " ", span: Span { start: Position { line: 198, column: 31, }, end: Position { line: 198, column: 32, }, }, }, ), ], span: Span { start: Position { line: 198, column: 30, }, end: Position { line: 198, column: 33, }, }, }, ), PropertyAccess( PropertyAccess { expression: Identifier( Identifier { id: "config", span: Span { start: Position { line: 198, column: 34, }, end: Position { line: 198, column: 40, }, }, }, ), attribute_path: [ Raw( PartRaw { content: "extraArgs", span: Span { start: Position { line: 198, column: 41, }, end: Position { line: 198, column: 50, }, }, }, ), ], default: None, }, ), ], }, ), }, ), Raw( PartRaw { content: "\n", span: Span { start: Position { line: 190, column: 1, }, end: Position { line: 199, column: 7, }, }, }, ), ], span: Span { start: Position { line: 189, column: 10, }, end: Position { line: 199, column: 9, }, }, }, ), span: Span { start: Position { line: 184, column: 16, }, end: Position { line: 199, column: 9, }, }, }, ), }, ), ], span: Span { start: Position { line: 169, column: 112, }, end: Position { line: 200, column: 6, }, }, }, ), ], }, ), span: Span { start: Position { line: 169, column: 56, }, end: Position { line: 200, column: 6, }, }, }, ), span: Span { start: Position { line: 169, column: 50, }, end: Position { line: 200, column: 6, }, }, }, ), Identifier( Identifier { id: "receivers", span: Span { start: Position { line: 200, column: 8, }, end: Position { line: 200, column: 17, }, }, }, ), ], }, ), span: Span { start: Position { line: 169, column: 24, }, end: Position { line: 200, column: 17, }, }, }, ), }, ), ], span: Span { start: Position { line: 145, column: 30, }, end: Position { line: 201, column: 4, }, }, }, ), ], }, ), span: Span { start: Position { line: 143, column: 12, }, end: Position { line: 201, column: 4, }, }, }, ), }, ), KeyValue( BindingKeyValue { from: [ Raw( PartRaw { content: "meta", span: Span { start: Position { line: 203, column: 3, }, end: Position { line: 203, column: 7, }, }, }, ), Raw( PartRaw { content: "maintainers", span: Span { start: Position { line: 203, column: 8, }, end: Position { line: 203, column: 19, }, }, }, ), ], to: With( With { expression: Identifier( Identifier { id: "maintainers", span: Span { start: Position { line: 203, column: 27, }, end: Position { line: 203, column: 38, }, }, }, ), target: List( List { elements: [ Identifier( Identifier { id: "pacien", span: Span { start: Position { line: 203, column: 42, }, end: Position { line: 203, column: 48, }, }, }, ), ], span: Span { start: Position { line: 203, column: 40, }, end: Position { line: 203, column: 50, }, }, }, ), span: Span { start: Position { line: 203, column: 22, }, end: Position { line: 203, column: 50, }, }, }, ), }, ), ], span: Span { start: Position { line: 118, column: 4, }, end: Position { line: 204, column: 2, }, }, }, ), span: Span { start: Position { line: 5, column: 1, }, end: Position { line: 204, column: 2, }, }, }, ), span: Span { start: Position { line: 3, column: 1, }, end: Position { line: 204, column: 2, }, }, }, ), span: Span { start: Position { line: 1, column: 1, }, end: Position { line: 204, column: 2, }, }, }, )