automatic scan a table, report on data formats in columns

From: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
To: pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: automatic scan a table, report on data formats in columns
Date: 2022-02-21 10:06:20
Message-ID: CA+i5JwZOouL=egphkgziHL4R=_18J=9mw4aTQahiXgn+wT3y4g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Is it possible to do the following?

automatically scan a table of all text columns
produce a report on data formats in columns as indicated in the following:

Column A Column B Column C
alphabetic words/phrases digits like xxxxx.xx alphanumeric
identifiers
City of London 5 digits followed by a iso12345
decimal point and 2
digits indicating precision

It is a bit like detecting regular expression patterns automatically.

Is automatically detecting something like regular expression patterns
possible?

Regards,

David

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jian He 2022-02-21 12:45:23 Re: automatic scan a table, report on data formats in columns
Previous Message Karsten Hilbert 2022-02-20 09:07:28 Aw: Re: Turn a json column into a table