Update postgresql_user.py (#45777)

<!--- Your description here -->
Add expires example.
+label: docsite_pr
This commit is contained in:
Tom Paine 2018-09-19 19:46:26 +01:00 committed by John R Barker
parent f964277628
commit 61f2791d95

View file

@ -160,6 +160,7 @@ EXAMPLES = '''
name: django name: django
password: ceec4eif7ya password: ceec4eif7ya
priv: "CONNECT/products:ALL" priv: "CONNECT/products:ALL"
expires: "Jan 31 2020"
# Create rails user, set its password (MD5-hashed) and grant privilege to create other # Create rails user, set its password (MD5-hashed) and grant privilege to create other
# databases and demote rails from super user status # databases and demote rails from super user status
@ -189,7 +190,7 @@ EXAMPLES = '''
name: django name: django
password: mysupersecretword password: mysupersecretword
priv: "CONNECT/products:ALL" priv: "CONNECT/products:ALL"
expire: infinity expires: infinity
# Example privileges string format # Example privileges string format
# INSERT,UPDATE/table:SELECT/anothertable:ALL # INSERT,UPDATE/table:SELECT/anothertable:ALL