Experts in Postgres and Open Source Infrastructure

24x7, 365 Enterprise services since 1997

Education

Professional Postgres and Open Source support

Command Prompt, Inc., is the oldest Postgres Company in North America and one of the oldest Open Source firms still operating today. We serve our clients with best in class expertise and professionalism. You can read more about support and services here:


You have landed at the largest single source of Postgres education blogs in the world. At Command Prompt, we believe deeply that the education of the community is critical to the continued success of Postgres and related technologies. We hope you find content you are looking for and don't hesitate to Contact us today for all your Postgres and Open Source consulting and support needs.

What Does PostgreSQL regexp_matches() Function Do?

regexp_matches() function takes in the string and the regular expression to be matched as an argument along with an optional flag and returns the first matched substring from the main string.

PostgreSQL regexp_split_to_array() Function

In Postgresql, the regexp_split_to_array() function is used to split the specified string into an array using the specified POSIX regular expressions

What Do make_date() and make_time() Functions do in PostgreSQL?

The make_date () function takes arguments, then creates and returns a date with them. The make_time() function takes arguments, then creates and returns a time without a time zone.

PostgreSQL array_position() Vs. array_positions() - What's the Difference

Array_position() function gives the first occurrence of an element while the Array_positions() function gives all the occurrences of an element in an array.

How to Enable a Trigger in PostgreSQL

To enable a trigger in PostgreSQL, the “ALTER TABLE” statement is used with the “DISABLE TRIGGER” clause. We need to specify the name of the trigger associated with a particular table in case of enabling one trigger.

How to List Triggers in PostgreSQL Database

In PostgreSQL, different methods are used to list all the triggers associated with a database, such as "pg_trigger catalog", "psql" command, and SQL queries.

How to Drop a Trigger in PostgreSQL

In PostgreSQL, a trigger can be dropped from the table by specifying the name of the trigger and the name of the table to which it is associated.

How to Disable a Trigger in PostgreSQL

In PostgreSQL, the "ALTER TABLE" with the "DISABLE TRIGGER" clause is used to disable a trigger. We need to specify the name of the trigger associated with a particular table in case of disabling one trigger.

What Do make_timestamp() and make_timestamptz() Functions do in PostgreSQL?

In PostgreSQL, we use the make_timestamp() and make_timestamptz() functions to show the timestamps. Both functions give errors when the input parameters have some issue maybe due to the wrong data type, etc.

How to Create a Trigger in PostgreSQL

Triggers are useful in many ways such as keeping an audit for changes and transactions, applying the business rules, and validating the user input data.