Postgres: How do you create a USER MAPPING for a user whose name includes a period character ('.')

Wes Gamble

Postgresql 9.6:

Trying to run this SQL:

CREATE USER MAPPING FOR wes.gamble
            SERVER fdw_server
            OPTIONS (user 'username', password 'password')

It fails because of the period. But 'wes.gamble' is a valid Postgres user.

I tried escaping the period with a backslash (wes.gamble).

I tried using single quotes ('wes.gamble').

I cannot get this CREATE USER MAPPING command to run with any name that contains a period.

Any ideas on how I can get such a command to work?

Tupteq

You need to use a quoted identifier. In this particular case "wes.gamble" should do the job (note double quotes).

Here's some more information about identifiers in PostgreSQL documentation.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

In Oracle, How do I alter a user that have a special character in the name?

From Dev

How do I know if user input includes all character or numbers in python

From Dev

How do you delete a certain node based on a name inputted by the user

From Dev

How do you group around a time period in active record, but only count one occurrance per user?

From Dev

Can you create Directories whose name contains a period in windows MSI/Orca.exe?

From

How do you create a read-only user in PostgreSQL?

From Dev

How do you create a meteorJS package with build options for the user?

From Dev

How do you create a custom user role in Azure AD?

From Dev

How do you create variables based on user input? (Python)

From Dev

How do I create an output dataframe that uses user input in the name?

From Dev

Firebase: How do you create a user then use the user ID in Firestore database?

From Dev

How do you load a file whose file name is stored in an array?

From

How to create User/Database in script for Docker Postgres

From Dev

Postgres No permission to create user

From Dev

Create user postgres on Ubuntu

From Dev

How do you create a subscription with a trial period with the Paypal Javascript SDK?

From Dev

How can you programmatically create a user in a Cognito User Pool?

From Dev

Why can you create an array whose size is determined by user input without malloc()?

From Dev

How do you source User envvars in PowerShell?

From Dev

How do you change a user in PostgreSQL?

From Dev

How do you use the user keyword "list"?

From Dev

How do you turn a user into staff?

From Dev

How to create a file with the user input name?

From Dev

How to check if a user exists and create the user if the name is free?

From Dev

Xcode/ios: How do you get name of image after letting user select one and displaying it?

From Dev

How do you get the User Profile name in a Batch File without the complete path?

From Dev

how do you get the first letter of a name from user input and put it into a if loop?

From Dev

How do you filter by passing a string as a column name in a user-defined function?

From Dev

dynamically create user name

Related Related

  1. 1

    In Oracle, How do I alter a user that have a special character in the name?

  2. 2

    How do I know if user input includes all character or numbers in python

  3. 3

    How do you delete a certain node based on a name inputted by the user

  4. 4

    How do you group around a time period in active record, but only count one occurrance per user?

  5. 5

    Can you create Directories whose name contains a period in windows MSI/Orca.exe?

  6. 6

    How do you create a read-only user in PostgreSQL?

  7. 7

    How do you create a meteorJS package with build options for the user?

  8. 8

    How do you create a custom user role in Azure AD?

  9. 9

    How do you create variables based on user input? (Python)

  10. 10

    How do I create an output dataframe that uses user input in the name?

  11. 11

    Firebase: How do you create a user then use the user ID in Firestore database?

  12. 12

    How do you load a file whose file name is stored in an array?

  13. 13

    How to create User/Database in script for Docker Postgres

  14. 14

    Postgres No permission to create user

  15. 15

    Create user postgres on Ubuntu

  16. 16

    How do you create a subscription with a trial period with the Paypal Javascript SDK?

  17. 17

    How can you programmatically create a user in a Cognito User Pool?

  18. 18

    Why can you create an array whose size is determined by user input without malloc()?

  19. 19

    How do you source User envvars in PowerShell?

  20. 20

    How do you change a user in PostgreSQL?

  21. 21

    How do you use the user keyword "list"?

  22. 22

    How do you turn a user into staff?

  23. 23

    How to create a file with the user input name?

  24. 24

    How to check if a user exists and create the user if the name is free?

  25. 25

    Xcode/ios: How do you get name of image after letting user select one and displaying it?

  26. 26

    How do you get the User Profile name in a Batch File without the complete path?

  27. 27

    how do you get the first letter of a name from user input and put it into a if loop?

  28. 28

    How do you filter by passing a string as a column name in a user-defined function?

  29. 29

    dynamically create user name

HotTag

Archive