Skip to content

Update direct_path_load.mdx#7102

Merged
anjali-edb merged 2 commits intoEnterpriseDB:developfrom
yuki-tei:patch-17
Mar 24, 2026
Merged

Update direct_path_load.mdx#7102
anjali-edb merged 2 commits 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
yuki-tei and others added 2 commits March 23, 2026 10:09
Co-authored-by: gvasquezvargas <gaby.vasquez@enterprisedb.com>
Copy link
Contributor

@tusharahuja tusharahuja left a comment

Choose a reason for hiding this comment

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

The changes look good. We actually have an active Jira ticket for this (DB-2179), which is currently 'Ready for Committer.' Once that’s committed, users will receive a proper error message: '+edbldr error: ERROR: direct load is not possible with data encryption is enabled.'
If we add this warning to the documentation now, we’ll have to remove it shortly after the ticket is merged. We can either proceed with the doc update now or wait for DB-2179 to land (though I don’t have an ETA). I suggest we update the docs for now and revise them again once the ticket is committed.

Copy link
Contributor

@nidhibhammar nidhibhammar left a comment

Choose a reason for hiding this comment

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

Approved.

@anjali-edb, Create a DOCS JIRA to revert the doc changes when DB-2179 is committed and merged as suggested by Tushar.

@anjali-edb
Copy link
Contributor

Thanks for the approval!

Merging this now to ensure users have the current manual warning. I have created JIRA 3596 to track the removal of this note once DB-2179 is committed and the native error message is live.

@anjali-edb anjali-edb merged commit b1062a0 into EnterpriseDB:develop Mar 24, 2026
6 checks passed
@yuki-tei yuki-tei deleted the patch-17 branch March 26, 2026 00:00
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.

6 participants