Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBrk8-0005bM-Mo for pgsql-general@arkaria.postgresql.org; Fri, 06 Aug 2021 04:46:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mBrk6-0007Ve-64 for pgsql-general@arkaria.postgresql.org; Fri, 06 Aug 2021 04:45:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBrk5-0007VV-OZ for pgsql-general@lists.postgresql.org; Fri, 06 Aug 2021 04:45:57 +0000 Received: from mail-hk2apc01olkn082f.outbound.protection.outlook.com ([2a01:111:f400:febc::82f] helo=APC01-HK2-obe.outbound.protection.outlook.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mBrk1-0000ZF-Fi for pgsql-general@lists.postgresql.org; Fri, 06 Aug 2021 04:45:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eO7QAeJz6qkTSRvQ6oyVNYtmJoVmDA+8GHRknqUvMpQJmmYDAfEzUBp3j0UosLhtfYWwGQKY88KdstErbETF8mFWosYKSqRfrM50WpOhNUyptPYQLsDhAV1wrS+FiE2Va6L55Ka+77uOqZ+9xOQIvKAb02trIbhdnnvWnbMtr15UY5bQGCk8dj7Xto58xijtD+NXCQDLB8awhyycSYhVzO11F1szrdVE1AHLq7Zl+OjSMDnOZBQGC2vOZsG5srUCsoAl9ffdDCc8DjxE5B4tlUa/pj1OcUqTh1tDWYvJww7KE0j/3EHR1b8LHNKvaTdpRh11B81ufus5MW1R9nTCzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KvR0fCQbX2j5i5IahnMZ1mlj1vo2s9qCf0G8cT+aLbw=; b=LkFA+/IIzKtuMjC1b9MBY791tpbOZmmF6HgqRY8STRvOX8PHDKX6iTpoQ0AinhJKhZTA8jThJJzxJz/ZPDMbYFn6ZvRgbIu8gFoTROurd1gapPsQhx34ThvT5kI4yozUQAUHEUdnWl1Mn3NGDlq8wTjqU/3YKLdPC/2pbRV2Kad4MG5FVzSjfPUsu477MmKOOLzkIIB7RqHT5XHMq3/GDGLyvPpGfLM6Pn7vt3vGwffM3AuncdBvyT1p5rFHDInlW2e33afN0JBAC1Yyf8UEmInnWf6Nv7Gkfs331KfXxdpz21x8yqDxDWGZqmfrj7RvNoxUph1JwFTZw1112Okftw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from PS2PR04CA0008.apcprd04.prod.outlook.com (2603:1096:300:55::20) by PUZPR04MB4782.apcprd04.prod.outlook.com (2603:1096:301:a5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Fri, 6 Aug 2021 04:45:49 +0000 Received: from PU1APC01FT113.eop-APC01.prod.protection.outlook.com (2603:1096:300:55:cafe::d5) by PS2PR04CA0008.outlook.office365.com (2603:1096:300:55::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15 via Frontend Transport; Fri, 6 Aug 2021 04:45:49 +0000 Received: from PSXP216MB0085.KORP216.PROD.OUTLOOK.COM (10.152.252.52) by PU1APC01FT113.mail.protection.outlook.com (10.152.252.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.16 via Frontend Transport; Fri, 6 Aug 2021 04:45:49 +0000 Received: from PSXP216MB0085.KORP216.PROD.OUTLOOK.COM ([fe80::3483:6441:ad5f:540a]) by PSXP216MB0085.KORP216.PROD.OUTLOOK.COM ([fe80::3483:6441:ad5f:540a%7]) with mapi id 15.20.4394.019; Fri, 6 Aug 2021 04:45:49 +0000 From: A Z To: "pgsql-general@lists.postgresql.org" Subject: Series of 10 questions about the use of postgresql, generally. Thread-Topic: Series of 10 questions about the use of postgresql, generally. Thread-Index: AQHXin2fVQWbesGvu0mai4T0JZYkrA== Importance: high X-Priority: 1 Date: Fri, 6 Aug 2021 04:45:49 +0000 Message-ID: Accept-Language: en-AU, en-US Content-Language: en-AU X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:706529ABCC0F6379802A5DE80AD7ADD298E454814B13CF29D57F2A3D1D8AFBBD;UpperCasedChecksum:B9CE126B4B79879184EB79E068747BE777153202A78016068BB0CE4DB6E0DDA9;SizeAsReceived:6753;Count:44 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [vN6Y5lnw/ZfaYZq2cJ+79b7Om5MwNkLH] x-ms-publictraffictype: Email x-incomingheadercount: 44 x-eopattributedmessage: 0 x-ms-office365-filtering-correlation-id: 6d238261-1587-4372-6286-08d95895101c x-ms-traffictypediagnostic: PUZPR04MB4782: x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /cq4DDWFYqOTbddRZDW9RI6zwCNe8e015md7R9mv205U/W2SlVLl0LkKzmj3tk7f1xGB2L1PexPSND3/fpVg5J4Z4HKfgJpB9nJzeINJIANoor2knRftKpV25Mazam0Fd2d9koSgL5ztEa7dO09YahZAdw04imMYPhWbZmLXBzSHgTDyplitoReFQLsKqhPmwo+QTirg585syltVtuQuJv8HWO/kaFZoe89PFT/LimxZSbYu+1VU+8/h+PVQ44eYQPC8XetY/CBZUx4lIQtVvueMbie7IJ+jJu42BnWdNun4R+11WwJD7gjX0486UwCIFTKAVWNbRdV6MidIajgDrV87RJtJFAg19aSWzw43TxgAhqdeqbt4NxvfFulzQEUDJ+5HjR6lUlmNfMpihqVc8snqUWstNe8BE6fVvG93nrbCVeXhb8z+OxghdJUiobHN x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: S9OqbBd4696q+c+ynEeQK5vqKvjqDxayZK86psD7T5eSs8cohykwOcKRzqF9CM8Ticnon71d336gNB/F7fDWROK402uAvl2nQRMnEPBaR1KLHLdsCMhCBowSYTHFeX/23DTlj4V92btbwB8qZnkWVg== x-ms-exchange-transport-forked: True Content-Type: multipart/alternative; boundary="_000_PSXP216MB00854C98D36D84775CB686079AF39PSXP216MB0085KORP_" MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-3174-20-msonline-outlook-99b28.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-AuthSource: PU1APC01FT113.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 6d238261-1587-4372-6286-08d95895101c X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2021 04:45:49.2883 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR04MB4782 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --_000_PSXP216MB00854C98D36D84775CB686079AF39PSXP216MB0085KORP_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I have been going through the free online book LEARNING postgresql book, th= at has been compiled by Stack Overflow contributors. I have gotten to the p= oint where I have the following series of unanswered questions: 1. Are there free script for CREATE TYPE (native type) or types out ther= e, online, free for commercial use? With function support, too? Can someone= reply with a link or a suggestion? 1. If I am using the COPY command for input and output around *.csv file= s, how may I specify internal tuple delimiters of ',', but at the same time= also specify an end of line delimeter of ';' ? 1. How may I get postgresql to output the create table statement(s) for = one or more tables of one database? 1. I know that I can use COPY to import or export one database table bet= ween it and a *.csv file. Can I use it to do this with multiple TABLES and = *.csv files specified in one COPY COMMAND, or not? How may I use COPY, or a= nother default native postgresql function, to export or import create table= commands to and from a *.csv file? 1. In the absence of OS command line instructions, is there an internal = postgresql way, via COPY or another function for example, to backup an enti= re database, with all its create table statements and all insert statements= , and any other associated object, in one hit? Or is this ill advised? 1. -How exactly do Intervals work, via themselves and in relation to the= other provided native datatypes? What are Intervals used for? 1. When setting up communication to remote databases on remote machines,= I need to use the OPTIONS() function. It seems to require as its first fun= ction parameter, the schema of the table (the second parameter) that it wan= ts to access. Can I supply a null schema, and still be able to reference th= e remote table, or must I also make use of IMPORT FOREIGN SCHEMA? 1. When I am using INHERITS to setup inheritance between two tables, wil= l this mean that all data inserted into the Parent table is automatically u= pdated into the Child table(s), or not? 1. What does the VARYING keyword do to an applicable type in a create ta= ble statement? CHARACTER VARYING becomes entirely equivalent to VARCHAR. St= atic, limited types become more dynamic and are unlimited. 1. How may I access the log for the details of a normal table, or simila= r? --_000_PSXP216MB00854C98D36D84775CB686079AF39PSXP216MB0085KORP_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have been going through the free online book LEARNING postgresql book, th= at has been compiled by Stack Overflow contributors. I have gotten to the p= oint where I have the following series of unanswered questions:

  1. Are there free script for CREATE TYPE (native type) or types out = there, online, free for commercial use? With function support, too? Can som= eone reply with a link or a suggestion?
  1. If I am using the COPY command for input and output around *.csv files,= how may I specify internal tuple delimiters of ',', but at the same time a= lso specify an end of line delimeter of ';' ?
  1. How may I get postgresql to output the create table statement(s) for on= e or more tables of one database?
  1. I know that I can use COPY to import or export one database table betwe= en it and a *.csv file. Can I use it to do this with multiple TABLES and *.= csv files specified in one COPY COMMAND, or not? How may I use COPY, or ano= ther default native postgresql function, to export or import create table commands to and from a *.csv file?
    1. In the absence of OS command line instructions, is there an internal po= stgresql way, via COPY or another function for example, to backup an entire= database, with all its create table statements and all insert statements, = and any other associated object, in one hit? Or is this ill advised?
    1. -How exactly do Intervals work, via themselves and in relation to the o= ther provided native datatypes? What are Intervals used for?
    1. When setting up communication to remote databases on remote machines, I= need to use the OPTIONS() function. It seems to require as its first funct= ion parameter, the schema of the table (the second parameter) that it wants= to access. Can I supply a null schema, and still be able to reference the remote table, or must I also ma= ke use of IMPORT FOREIGN SCHEMA?
    1. When I am using INHERITS to setup inheritance between two tables, will = this mean that all data inserted into the Parent table is automatically upd= ated into the Child table(s), or not?
    1. What does the VARYING keyword do to an applicable type in a create tabl= e statement? CHARACTER VARYING becomes entirely equivalent to VARCHAR. Stat= ic, limited types become more dynamic and are unlimited.
  1. How may I access the log for the details of a normal table, or similar?
--_000_PSXP216MB00854C98D36D84775CB686079AF39PSXP216MB0085KORP_--