• Home
  • Projects
  • Blog
  • About
  • Contact

Category: PostgreSQL

Projects Posts Search

PostgreSQL - Get the serial ID of a newly created record

When you assign an Id to an inserted record things are great! When PostgreSQL assigns the Id, things get a little complex, especially if you want to immediately...

Mícéal Gallagher in Store procedure 2 minutes

Postgres - Get the current time in milliseconds

To get the current time in milliseconds you can use the following:

Mícéal Gallagher in P/sql 1 minutes

Postgres - Multiple attempts to get current time return the same time value

I was trying to profile a store procedure that builds a temporary table before returning it to the caller. Multiple inserts, updates and transformations are performed on the...

Mícéal Gallagher in Postgresql 1 minutes

Postgres - Return result set as JSON

This indispensable library has brought me a great deal of joy when it comes to json-ifying objects and primitives.

Mícéal Gallagher in Sql 1 minutes

Postgres - Batch file to drop and recreate database

For the complete script scroll to the bottom of the page for the GitHub link Nothing kills the soul faster than repetition. Rather than repeating a task, it...

Mícéal Gallagher in Postgresql 4 minutes

Postgres - Add/Create object if it doesn't already exist

The creation of database objects is fairly simple but the conditional creation of objects when they don’t exist can be a little convoluted with PostgreSQL.

Mícéal Gallagher in P/sql 2 minutes

About Mícéal Gallagher