Skip to content

Update direct_path_load.mdx#7102

Open
yuki-tei wants to merge 1 commit intoEnterpriseDB:developfrom
yuki-tei:patch-17
Open

Update direct_path_load.mdx#7102
yuki-tei wants to merge 1 commit intoEnterpriseDB:developfrom
yuki-tei:patch-17

Conversation

@yuki-tei
Copy link
Contributor

@yuki-tei yuki-tei commented Mar 6, 2026

Hi,
Greetings. Hope you are doing well and healthy.

What Changed?

This same issue is found initially in EPAS15 but still exists in EPAS18.
Since its impact is huge, note shall be described in this page. Also, this change should be reflected into all affected versions:
15~18

[enterprisedb@edbsup04 ~]$ psql -p 5446
psql (18.3.0)
Type "help" for help.

edb=# SELECT version()
edb-# ;
                                                                     version
-------------------------------------------------------------------------------------------------------------------------------------------------
 PostgreSQL 18.3 (EnterpriseDB Advanced Server 18.3.0) on x86_64-pc-linux-gnu, compiled by gcc (GCC) 11.5.0 20240719 (Red Hat 11.5.0-11), 64-bit
(1 row)

edb=# CREATE TABLE test(col1 int);
CREATE TABLE
edb=#
\q
[enterprisedb@edbsup04 ~]$ for i in $(seq 1 10)
do
  echo $i
done >> test.txt
[enterprisedb@edbsup04 ~]$ cat test.txt
1
2
3
4
5
6
7
8
9
10

[enterprisedb@edbsup04 ~]$ cat test.ctl
LOAD DATA
  INFILE 'test.txt'
  BADFILE 'test.bad'
APPEND
INTO TABLE test
  FIELDS TERMINATED BY ','
    OPTIONALLY ENCLOSED BY '"'
  TRAILING NULLCOLS
(
  col1
)
[enterprisedb@edbsup04 ~]$ edbldr -p 5446 USERID=enterprisedb/edb CONTROL=test.ctl DIRECT=TRUE
EDB*Loader: Copyright (c) 2007-2025, EnterpriseDB Corporation.

WARNING:  bulk load will not be WAL-logged
HINT:  Continuous archive will not include the loaded data. You must take a new base backup after the load is finished
Successfully processed (10) records
[enterprisedb@edbsup04 ~]$ psql
psql (18.3.0)
Type "help" for help.

edb=#
\q
[enterprisedb@edbsup04 ~]$ psql -p 5446
psql (18.3.0)
Type "help" for help.

edb=# SELECT * FROM test;
ERROR:  invalid page in block 0 of relation "base/14362/16384"

Hope you can take a look.

Kind Regards,
Yuki Tei

@yuki-tei yuki-tei requested a review from a team as a code owner March 6, 2026 01:04
- The `FREEZE` option isn't supported for direct path loading.

!!! Warning
Currently, a direct path load toward TDE database shall not be performed, because it will cause permanent and unrecoverable damage to the relation files in data-block level.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too, let's see if we can add the subject of this action:

Suggested change
Currently, a direct path load toward TDE database shall not be performed, because it will cause permanent and unrecoverable damage to the relation files in data-block level.
Don't use a direct path to load data into the TDE database. This will cause permanent and unrecoverable damage to the relation files at the data-block level.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
Since I am not sure if I'm authorized to commit directly, let me leave a comment instead.
Yes, I agree to your change. Please go ahead to commit your change, as long as your team think it's ok.

Kind Regards,
Yuki Tei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants