Giter Site home page Giter Site logo

Comments (6)

 avatar commented on July 17, 2024

Interestingly that if the table name is not quoted at creation time it all works fine.

CREATE TABLE CHECK_ROW_LEVEL_LOCKS
(
  id serial NOT NULL,
  msg text,
  CONSTRAINT "CHECK_ROW_LEVEL_LOCKS_pkey" PRIMARY KEY (id)
)
WITH (
  OIDS=FALSE
);
ALTER TABLE CHECK_ROW_LEVEL_LOCKS
  OWNER TO postgres;

from audit-trigger.

nineinchnick avatar nineinchnick commented on July 17, 2024

When you don't quote it it's the same as if you would use lower case. Unquoted object names are case insensitive. Citing the manual:

Quoting an identifier also makes it case-sensitive, whereas unquoted names are always folded to lower case.

from audit-trigger.

nineinchnick avatar nineinchnick commented on July 17, 2024

I've checked the code and suprisingly it uses quote_literal for some parts but not quote_ident for table names.

from audit-trigger.

 avatar commented on July 17, 2024

Thanks for your comments and for the manual.
A question on quote_literal and checking the code: which code did you check? I had a look at https://github.com/2ndQuadrant/audit-trigger/blob/master/audit.sql and there are no references of quote_literal.

from audit-trigger.

nineinchnick avatar nineinchnick commented on July 17, 2024

I found a few:
https://github.com/2ndQuadrant/audit-trigger/blob/master/audit.sql#L194
https://github.com/2ndQuadrant/audit-trigger/blob/master/audit.sql#L199
https://github.com/2ndQuadrant/audit-trigger/blob/master/audit.sql#L209

from audit-trigger.

 avatar commented on July 17, 2024

Indeed. :) Wonder how I managed to miss it with CTRl+F.

from audit-trigger.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.