PostgreSQL: Difference between revisions

From annawiki
No edit summary
Line 29: Line 29:
*https://www.tutorialspoint.com/postgresql/index.htm
*https://www.tutorialspoint.com/postgresql/index.htm
*http://www.postgresqltutorial.com/
*http://www.postgresqltutorial.com/
==Documentation==
===curious cross===
https://www.postgresql.org/docs/12/functions-matching.html#FUNCTIONS-SIMILARTO-REGEXP
"The SIMILAR TO operator returns true or false depending on whether its pattern matches the given string. It is similar to LIKE, except that it interprets the pattern using the SQL standard's definition of a regular expression. SQL regular expressions are a curious cross between LIKE notation and common regular expression notation."

Revision as of 2022-09-28T13:05:19

Name

  1. postgresql / PostgreSQL
    1. postgresql.org
  2. pgsql - PL/pgSQL
    1. mod_pgsql
    2. pdo_pgsql
  3. postgres
    1. https://wiki.postgresql.org/wiki/Postgres
  4. psql
    1. https://www.postgresql.org/docs/10/static/app-psql.html
  5. pg
    1. pgloader
    2. https://www.pgadmin.org/

Creating cluster

https://www.postgresql.org/docs/10/static/creating-cluster.html

"/usr/local/pgsql/data or /var/lib/pgsql/data are popular"

  • in Ubuntu 'apt-get install postgresql' creates /var/lib/postgresql/

initdb not found

Command line

psql -e db < example.sql

Link

Documentation

curious cross

https://www.postgresql.org/docs/12/functions-matching.html#FUNCTIONS-SIMILARTO-REGEXP "The SIMILAR TO operator returns true or false depending on whether its pattern matches the given string. It is similar to LIKE, except that it interprets the pattern using the SQL standard's definition of a regular expression. SQL regular expressions are a curious cross between LIKE notation and common regular expression notation."