Skip to content

Commit fc353f8

Browse files
rename timeout to backoffdelay in documentation
Co-authored-by: Bertrand Paquet <bertrand.paquet@gmail.com>
1 parent 3f3e83f commit fc353f8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

website/docs/r/postgresql_script.html.markdown

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: |-
1010

1111
The ``postgresql_script`` execute a script given as parameter. This script will be executed each time it changes.
1212

13+
If one command of the batch fails, the provider will send a `ROLLBACK` command to the database, and retry, according to the tries / backoff_delay configuration.
14+
1315
## Usage
1416

1517
```hcl
@@ -19,15 +21,15 @@ resource "postgresql_script" "foo" {
1921
"command 2"
2022
]
2123
tries = 1
22-
timeout = 1
24+
backoff_delay = 1
2325
}
2426
```
2527

2628
## Argument Reference
2729

2830
* `commands` - (Required) An array of commands to execute, one by one.
2931
* `tries` - (Optional) Number of tries of a command before raising an error.
30-
* `timeout` - (Optional) Time in second between two failing commands.
32+
* `backoff_delay` - (Optional) In case of failure, time in second to wait before a retry.
3133

3234
## Examples
3335

@@ -41,6 +43,6 @@ resource "postgresql_script" "foo" {
4143
"COMMIT"
4244
]
4345
tries = 3
44-
timeout = 1
46+
backoff_delay = 1
4547
}
4648
```

0 commit comments

Comments
 (0)