Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

postgresql_user results in psycopg2.ProgrammingError when specifying privileges #967

Closed
mattupstate opened this issue Aug 29, 2012 · 4 comments
Labels
postgresql PostgreSQL community

Comments

@mattupstate
Copy link
Contributor

The following action:

- name: create a test database user
  action: postgresql_user user=vagrant password=password db=vagrant_ansible_tutorial priv=CONNECT/user:ALL

results in the following error:

fatal: [127.0.0.1] => failed to parse: Traceback (most recent call last):
  File "/tmp/ansible-1346283843.64-175065525346012/postgresql_user", line 520, in <module>
    main()
  File "/tmp/ansible-1346283843.64-175065525346012/postgresql_user", line 270, in main
    changed = grant_privileges(cursor, user, privs) or changed
  File "/tmp/ansible-1346283843.64-175065525346012/postgresql_user", line 174, in grant_privileges
    changed = grant_func(cursor, user, name, privilege)\
  File "/tmp/ansible-1346283843.64-175065525346012/postgresql_user", line 97, in grant_table_privilege
    cursor.execute(query)
psycopg2.ProgrammingError: syntax error at or near "user"
LINE 1: GRANT ALL ON TABLE user TO vagrant
@mpdehaan
Copy link
Contributor

want to try to fix it?

I don't maintain these so if not you may want to ask the list.

@mattupstate
Copy link
Contributor Author

Nevemermind, I think this is because it conflicts with the user table for postgres

@mattupstate
Copy link
Contributor Author

For that matter, then, the maintainer should be noted in the module or where their fork is located

@mpdehaan
Copy link
Contributor

We're kind of an autonomous collective. Ask the list.

@dagwieers dagwieers added the postgresql PostgreSQL community label Jan 28, 2019
@ansible ansible locked and limited conversation to collaborators Apr 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
postgresql PostgreSQL community
Projects
None yet
Development

No branches or pull requests

3 participants