pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
(no subject)
4+ messages / 4 participants
[nested] [flat]

* (no subject)
@ 2022-06-16 14:08 Rama Krishnan <raghuldrag@gmail.com>
  2022-06-16 14:33 ` Re: Adrian Klaver <adrian.klaver@aklaver.com>
  2022-06-17 02:38 ` Re: Abdul Qoyyuum <aqoyyuum@cardaccess.com.au>
  0 siblings, 2 replies; 4+ messages in thread

From: Rama Krishnan @ 2022-06-16 14:08 UTC (permalink / raw)
  To: pgsql-general

Hi ,

What type of temp database should i use to maintain logs or export logs?

Thanks
Rama-krishnan

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re:
  2022-06-16 14:08 (no subject) Rama Krishnan <raghuldrag@gmail.com>
@ 2022-06-16 14:33 ` Adrian Klaver <adrian.klaver@aklaver.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Adrian Klaver @ 2022-06-16 14:33 UTC (permalink / raw)
  To: Rama Krishnan <raghuldrag@gmail.com>; pgsql-general

On 6/16/22 07:08, Rama Krishnan wrote:
> Hi ,
> 
> What type of temp database should i use to maintain logs or export logs?

There is no temp database. You will need to be more specific about what 
you want to achieve.

> 
> Thanks
> Rama-krishnan


-- 
Adrian Klaver
adrian.klaver@aklaver.com





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re:
  2022-06-16 14:08 (no subject) Rama Krishnan <raghuldrag@gmail.com>
@ 2022-06-17 02:38 ` Abdul Qoyyuum <aqoyyuum@cardaccess.com.au>
  2022-06-18 07:07   ` Re: Peter J. Holzer <hjp-pgsql@hjp.at>
  1 sibling, 1 reply; 4+ messages in thread

From: Abdul Qoyyuum @ 2022-06-17 02:38 UTC (permalink / raw)
  To: Rama Krishnan <raghuldrag@gmail.com>; +Cc: pgsql-general

Best if you just maintain the logs into a log file instead of a database
table.

On Thu, Jun 16, 2022 at 10:08 PM Rama Krishnan <raghuldrag@gmail.com> wrote:

> Hi ,
>
> What type of temp database should i use to maintain logs or export logs?
>
> Thanks
> Rama-krishnan
>


-- 
Abdul Qoyyuum Bin Haji Abdul Kadir
HP No: +673 720 8043

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re:
  2022-06-16 14:08 (no subject) Rama Krishnan <raghuldrag@gmail.com>
  2022-06-17 02:38 ` Re: Abdul Qoyyuum <aqoyyuum@cardaccess.com.au>
@ 2022-06-18 07:07   ` Peter J. Holzer <hjp-pgsql@hjp.at>
  0 siblings, 0 replies; 4+ messages in thread

From: Peter J. Holzer @ 2022-06-18 07:07 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

On 2022-06-17 10:38:57 +0800, Abdul Qoyyuum wrote:
> Best if you just maintain the logs into a log file instead of a database
> table. 

That depends on what you want to use those logs for.

If you just want to look at them when something goes wrong, I agree:
Logs files are simple, fast to write, take little space (and usually
compress well), can be trimmed with a text editor and attached to a
ticket or sent by mail ...

But if you want to process them further (generate statistics or other
reports, anonymize them, combine them with data from other sources,
...), it is useful to store them in some structured format (aka a
"database"). That doesn't necessarily mean a relational database, it
could be a nosql database (for example, ElasticSearch is very popular
for storing logs), but if you are already using PostgreSQL in your
project, using it for logs suggests itself.

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2022-06-18 07:07 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-06-16 14:08  Rama Krishnan <raghuldrag@gmail.com>
2022-06-16 14:33 ` Re: Adrian Klaver <adrian.klaver@aklaver.com>
2022-06-17 02:38 ` Re: Abdul Qoyyuum <aqoyyuum@cardaccess.com.au>
2022-06-18 07:07   ` Re: Peter J. Holzer <hjp-pgsql@hjp.at>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox